[olug] Mounting Flash Drives as a user
Don E. Kauffman
dekauff at cox.net
Mon Oct 24 03:00:23 UTC 2005
Thanks Bill,
SUID was set already. However, When I try to unmount it by clicking on
the unmount volume in the context menu I get the following message.
umount: only root can unmount /dev/sda1 from /media/USB20FD
Which is the same message I get from the CLI.
Don
On Sun, 2005-10-23 at 21:39 -0500, Bill Brush wrote:
> 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 . . . . :-)
> >
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
More information about the OLUG
mailing list