[olug] Mounting Flash Drives as a user

Bill Brush bbrush at gmail.com
Mon Oct 24 02:39:12 UTC 2005


One way (which in a production system would have security issues)
would be to set the SUID bit on mount and umount.  To do this, as
root, do chmod 4770 mount, and chmod 4770 on umount.  Now anyone
(literally anyone on the system) can mount and unmount as Joe User.

Bill

On 10/23/05, Don E. Kauffman <dekauff at cox.net> wrote:
> Hi,
>
> I'd like to know if there is a way to mount flash devices as a user --
> not as root. Failing that I'd like to know if there is a way that one
> can mount and unmount without having to be root. I'm using Suse 9.3.
>
> I've tried unmounting it and remounting as my user but then it's not
> accessible to write. Do I need to chown and chmod that directory? I
> don't want to make changes with out at least bouncing it off this list.
>
> It's a pain having to be root just to enter a simple command. (yes, I
> know there are reasons but . .. .) I can use and am using sudo to do
> this.
>
> Now ubuntu allows me to mount and unmount it as a regular user which
> makes me think that something isn't setup right in my SUSe system. Or
> maybe something is wrong in my Ubuntu system . . . . :-)
>



More information about the OLUG mailing list