You are not logged in.

#1 2006-08-07 09:20:18

IsSuE
Member
Registered: 2006-04-29
Posts: 309

How to use the DVD drive as normal user?

I got 2 Dvd drives inside my rig. But how can i access them as a normal user? Everytime i want to mount a dvd i have to do this as root. How can i change the permission of the drive to a normal user?

greetz

Offline

#2 2006-08-07 09:33:55

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: How to use the DVD drive as normal user?

Do you have "user" option next to /dev/dvd (or however you have those entries of yours called there) in /etc/fstab?

Additionally, are you in optical group (run "groups" as user)?

Offline

#3 2006-08-07 09:53:18

IsSuE
Member
Registered: 2006-04-29
Posts: 309

Re: How to use the DVD drive as normal user?

yep i got user in fstab, but i am not in group optical
gonna add myself and try again

still no go: i added myself to the goup loged out and in again an tried:

[issue@kiwi ~]$ mount /dev/hdc /mnt/dvd/
mount: Only "Root" can do this

thats what my entries in fstab look like:

/dev/hdd            /mnt/cd   iso9660   ro,user,noauto,unhide   0      0
/dev/hdc               /mnt/dvd  udf       ro,user,noauto,unhide   0      0

Offline

#4 2006-08-07 10:00:59

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: How to use the DVD drive as normal user?

The trick, my dear friend, is to pass only one argument to mount (like mount /dev/hdc). It takes the rest from fstab.

Additionally, you'd better set "auto" or "udf,iso9660" in the dvd line.

Offline

#5 2006-08-07 10:06:41

IsSuE
Member
Registered: 2006-04-29
Posts: 309

Re: How to use the DVD drive as normal user?

well now it works, strange thing. big thanks to you.

Offline

#6 2006-08-07 21:15:09

jaboua
Member
Registered: 2005-11-05
Posts: 634

Re: How to use the DVD drive as normal user?

IsSuE wrote:

well now it works, strange thing. big thanks to you.

It's not that strange, only root is allowed to mount devices with custom options for the sake of security - when you give additional arguments, in this case where to mount, mount understands it as if you want to mount the device with other options than those set in fstab.

Offline

Board footer

Powered by FluxBB