View previous topic :: View next topic |
Author |
Message |
xsilentmurmurx Apprentice
Joined: 23 Oct 2009 Posts: 233
|
Posted: Sat Feb 20, 2010 5:38 am Post subject: how can we get nonroot users to be able to mount the cdrom ? |
|
|
Hey everyone
is there a way that I can configure fstab to allow non-root users to mount cdroms? All help will be greatly appreciated! |
|
Back to top |
|
|
desultory Bodhisattva
Joined: 04 Nov 2005 Posts: 9410
|
Posted: Sat Feb 20, 2010 5:54 am Post subject: |
|
|
Adding "user" or "users" to the fourth field should suffice in the general case, the former allowing any sufficiently privileged single user to mount and unmount that filesystem while the latter allows any sufficiently privileged user to mount or unmount the filesystem. Using "owner" in conjunction with udev, or any suitable analog, allows for a single specific user to be allowed to mount or unmount the filesystem. None of the aforementioned options would be used with the quotes as presented, all are documented further in man 8 mount. |
|
Back to top |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Sat Feb 20, 2010 11:34 am Post subject: |
|
|
Or leave fstab alone and use sudo?
Will |
|
Back to top |
|
|
wqawasmi n00b
Joined: 17 Feb 2010 Posts: 10
|
Posted: Sat Feb 20, 2010 6:12 pm Post subject: |
|
|
I haven't done this on Gentoo yet, but you can try to:
|
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3925 Location: Hamburg
|
Posted: Sat Feb 20, 2010 6:18 pm Post subject: Re: how can we get nonroot users to be able to mount the cdr |
|
|
xsilentmurmurx wrote: | is there a way that I can configure fstab to allow non-root users to mount cdroms? All help will be greatly appreciated! | With this in fstab : Code: | /dev/sr0 /mnt/cdrom iso9660 noauto,ro,user 0 0
| You should be able to mount it as long as your id is in group cdrom, isn't it ? |
|
Back to top |
|
|
|