Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how can we get nonroot users to be able to mount the cdrom ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
xsilentmurmurx
Apprentice
Apprentice


Joined: 23 Oct 2009
Posts: 233

PostPosted: Sat Feb 20, 2010 5:38 am    Post subject: how can we get nonroot users to be able to mount the cdrom ? Reply with quote

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
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Sat Feb 20, 2010 5:54 am    Post subject: Reply with quote

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
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Sat Feb 20, 2010 11:34 am    Post subject: Reply with quote

Or leave fstab alone and use sudo?

Will
Back to top
View user's profile Send private message
wqawasmi
n00b
n00b


Joined: 17 Feb 2010
Posts: 10

PostPosted: Sat Feb 20, 2010 6:12 pm    Post subject: Reply with quote

I haven't done this on Gentoo yet, but you can try to:

Code:

emerge sudo
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3925
Location: Hamburg

PostPosted: Sat Feb 20, 2010 6:18 pm    Post subject: Re: how can we get nonroot users to be able to mount the cdr Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum