On Sun, Apr 23, 2006 at 10:41:22AM -0700, Allen Brown wrote:
> Mr O wrote:
> >The trouble is root can do it all. I'm not looking to add an
> >entry to fstab unless neccessary. I tend to mount different
> >devices to different directories. For instance, if only one
> >device is plugged in it is /dev/sdb. So I may mount it to
> >/mnt/camera or /mnt/usb. Now, what if I plug in a second USB
> >device? Naturally it will be /dev/sdc so I'd mount it somewhere.
> >Is there an "easy" (non-GUI) way to give permission for the user
> >to write to those devices? I've tried to chown the folder to the
> >username but once the device is mounted permissions are changed
> >to root:root. Any other tips or tricks?
> >
> >That be all,
> >Mr O.
> 
> Why are you avoiding /etc/fstab?  That seems to me like it
> would be the best solution.
> 
> The only alternative I can think of is sudo.  No wait, there
> is another.  You could suid /bin/mount to root.  I recommend
> against this since it would be a security hole.

could be tightened considerably by only allowing a certain trusted
group (maybe operator?) permission to execute /bin/mount.  this is
how shutdown(8) is set up on OpenBSD:

$ ls -l `which shutdown`
-r-sr-x---  1 root  operator  191824 Apr  3 15:45 /sbin/shutdown
$ 

-- 
<[EMAIL PROTECTED]>
_______________________________________________
EUGLUG mailing list
[email protected]
http://www.euglug.org/mailman/listinfo/euglug

Reply via email to