Skip site navigation (1)Skip section navigation (2)
Date:      29 Aug 2003 15:00:39 -0400
From:      Lowell Gilbert <freebsd-questions-local@be-well.no-ip.com>
To:        Desmond Lee <desmond.lee@shaw.ca>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: allowing non root users to mount
Message-ID:  <44smnkp9uw.fsf@be-well.ilk.org>
In-Reply-To: <000201c36dfe$8a163da0$6501a8c0@croydon>
References:  <000201c36dfe$8a163da0$6501a8c0@croydon>

next in thread | previous in thread | raw e-mail | index | archive | help
Desmond Lee <desmond.lee@shaw.ca> writes:

> I followed the instructions on the FAQ section about making non-root
> users able to mount file systems and that worked fine, but it only works
> if the target of the mounting point is accessible by that user.

Right.  You want that for security reasons.

> So, 'mount -t msdos /dev/fd0 ~/myFloppy'
> 
> would only work if ~/myFloppy was a directory that was accessible by the
> user who executed the mount command. Thus, if you were a non-root user
> the stuff in the /etc/fstab would not be useful since the target of the
> mount commands were only accessible by the root.

Make the common mount point accessible to the console user.  fbtab(5)
(or xdm's 'GiveConsole' script, etc.) will help here.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44smnkp9uw.fsf>