DragonFly BSD
DragonFly users List (threaded) for 2011-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: user mountable filesystem


From: Pierre Abbat <phma@xxxxxxxxxxxxx>
Date: Thu, 13 Jan 2011 18:23:32 -0500

On Thursday 13 January 2011 17:02:54 Thomas Nikolajsen wrote:
> Either you can login as root to do the mount / umount,
> or you can set sysctl vfs.usermount to a non-zero value.
>
> This is described in mount.2 manual page;
> 'mount -a mount' also shows mount options (mount.8);
> we don't have 'user', as you found.
>
> Please be aware of security consequences if you allow all users to mount.

That would allow all users to mount *anything*, which is not what I want. I 
want any user to mount the thumb drive, but I certainly don't want any user 
but root to mount the hard disk. Linux doesn't have vfs.usermount; 
instead /bin/mount is suid root and checks whether the device and mount point 
are listed in /etc/fstab as user-mountable.

What I actually did (I had a visitor who brought a thumb drive) was mount it 
as root and then copy files.

Pierre
-- 
Don't buy a French car in Holland. It may be a citroen.



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]