Date: Sat, 30 Aug 2003 13:12:37 +0930 From: Malcolm Kay <malcolm.kay@internode.on.net> To: Desmond Lee <desmond.lee@shaw.ca>, "'Lowell Gilbert'" <freebsd-questions-local@be-well.no-ip.com> Cc: freebsd-questions@freebsd.org Subject: Re: allowing non root users to mount Message-ID: <200308301312.37322.malcolm.kay@internode.on.net> In-Reply-To: <000801c36e78$fda8e0e0$6501a8c0@croydon> References: <000801c36e78$fda8e0e0$6501a8c0@croydon>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 30 Aug 2003 07:30, Desmond Lee wrote: > Hello > > Thank you for your reply. > > I don't understand how editing /etc/fbtab will help me provide a > mounting point that is accessible to everyone. I believe that fbtab wil= l > just set the permissions of the device to whatever is specified in that > file. > > For example, if I have the following in the /etc/fbtab file: > > /dev/ttyV0=09=090700=09=09/dev/fd0 > > then upon login, the floppy device (/dev/fd0) will have the permission: > rwx------ > > So, how does this relate to making a common mounting point? I want to > make the common mounting point /floppy and set the permissions to > rwxrwxrwx by doing a 'chmod 777 /floppy' but for some reason I still > cannot mount the floppy as a regular user. It keeps on telling me that > 'operation not permitted' and I have to su as root to get this to work. > Why is this so? Shouldn't it be okay since I've set the permission of > /floppy to be accessible to anyone? Apart from everthing else you need=20 # sysctl vfs.usermount=3D1 or add=20 vfs.usermount=3D1 to /etc/sysctl.conf Malcolm=20 > > Thanks > > Desmond > > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Lowell Gilber= t > Sent: Friday, August 29, 2003 12:01 PM > To: Desmond Lee > Cc: freebsd-questions@freebsd.org > Subject: Re: allowing non root users to mount > > 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 use= r > > 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?200308301312.37322.malcolm.kay>