From owner-freebsd-questions@FreeBSD.ORG Thu Jan 3 19:03:19 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A71A9810 for ; Thu, 3 Jan 2013 19:03:19 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from mail-pb0-f42.google.com (mail-pb0-f42.google.com [209.85.160.42]) by mx1.freebsd.org (Postfix) with ESMTP id 87765BF7 for ; Thu, 3 Jan 2013 19:03:19 +0000 (UTC) Received: by mail-pb0-f42.google.com with SMTP id rp2so8693521pbb.15 for ; Thu, 03 Jan 2013 11:03:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=lBbR/nvX8ztJtCT//7GK9GYEP3O9jq+MlJ+m6ohAuEA=; b=WmCfeERtVeS6zGs3n3658M+5KjOJyeFArju6dke4Herkd65EXFLNnpMlNryOTlSz3Q NXoG/q+W8sGNNhaUhtw9gyanFNJXk+rv4DSbLmZ0+llZKIXt0pt/DjIWpJgeJUEVfQT0 Nj01xA8VEacTbl+Q8bcffVcFNWif9wujZUvrzla6x0aXpXKBcXZDL8CzkPdc1MtQgFlP sqI4Xo+VAZDblRXNa7vRyDmEPm/aQlN7WK/j8BElqnIZ8tSYNuctUsVbEuOYhF5RNGU1 yDoR2d5xTrIH58mUzj07M9oeWVHZhuiLZ95UsbhK1SiEF5vRoEjLt0UkBqz3Px0XrJov Cecw== MIME-Version: 1.0 Received: by 10.68.138.195 with SMTP id qs3mr155198016pbb.62.1357239793402; Thu, 03 Jan 2013 11:03:13 -0800 (PST) Received: by 10.68.10.194 with HTTP; Thu, 3 Jan 2013 11:03:13 -0800 (PST) X-Originating-IP: [93.221.179.72] In-Reply-To: <50E46078.9010407@eskk.nu> References: <50E46078.9010407@eskk.nu> Date: Thu, 3 Jan 2013 20:03:13 +0100 Message-ID: Subject: Re: Trying to find out how to mount as user From: "C. P. Ghost" To: Leslie Jensen Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQmAM/Mmls/0rczH44HmPAEIcBCtF0lWyYuerhoTAOrHCqNmIsNigsNfbD0fw305rOQmMlAD Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 19:03:19 -0000 On Wed, Jan 2, 2013 at 5:29 PM, Leslie Jensen wrote: > Hello. > > I want to write a script, where I as a normal user, can back up my files > with rsync to another machine (pc01), which shares a directory via NFS. > > I have an entry in the local machines /etc/fstab > > pc01:/backup /mnt/backup nfs rw,noauto 0 0 > > > The command: > mount /mnt/backup works as root. > > If I do sudo mount /mnt/backup I get > [tcp] pc01:/backup: Permission denied > > I'm a member of the local wheel group and at the remote machine as > well(pc01) > > pc01:/backup has > drwxrwxr-x 28 root wheel 1024 1 Jan 14:44 backup/ > > > The local mount point /mnt/backup has > drwxr-xr-x 5 root wheel 512 1 Jan 17:18 mnt/ > > drwxr-xr-x 2 root wheel 512 1 Jan 11:38 backup/ > > I've tried to ad write permissions to the group, but it did not help me. > > I understand that I have a permission problem but I can't figure it out. Try setting vfs.usermount to 1: # sysctl vfs.usermount=1 -cpghost. -- Cordula's Web. http://www.cordula.ws/