Permissions and DVD drives

I'm running Fedora Core 1 got the latest and greatest loaded, but I can't get the permissions to allow a user to read and execute on the dvd itself, root is allowed, but user isn't and no matter what I do I can't get the user the permissions he needs.

Linux Software 434 This topic was started by ,



data/avatar/default/avatar22.webp

1 Posts
Location -
Joined 2004-09-01
I'm running Fedora Core 1 got the latest and greatest loaded, but I can't get the permissions to allow a user to read and execute on the dvd itself, root is allowed, but user isn't and no matter what I do I can't get the user the permissions he needs. Anyone run into this problem, or any suggestions?
 
Thanks in advance

Participate on our website and join the conversation

You have already an account on our website? Use the link below to login.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic



data/avatar/default/avatar01.webp

120 Posts
Location -
Joined 2004-03-23
gidday cewillis
 
My first guess would be that some options in your /etc/fstab have gone amiss. Open the above file and check for some line like ...
 

Code:
/dev/dvd /mnt/dvd iso9660 noauto,user,ro 0 0
 
In brief: you can control access to a filesystem that gets statically mounted via the /etc/fstab file with a series of options. Commonly used are ...
 
user (filesystem can be mounted by non-root users)
uid=xxx (users-id (number) can mount the fs.)
gid=xxx (group-id (number) that can can mount the fs.)
 
Also an all-time favorite is the so called umask-option. "umask" appears in an fstab-line as this ...
 

Code:
/dev/dvd /mnt/dvd iso9660 noauto,umask=xxx,ro 0 0
 
... and as you can see, it takes a numeric value as parameter (the "xxx" part). This number has to be specified in octal format (permittable digits range from "0" to "7").
 
The tricky bit is that umask is in fact the inverse of what you usually would use to give permissions with the "chmod" command. So where a ...
 

Code:
chmod 777 anyfile"
 
... would give all permissions to anybody for the file "anyfile" the umask section that does the same would look like that in /etc/fstab ...
 

Code:
/dev/dvd /mnt/dvd iso9660 noauto,umask=000,ro 0 0
 
But I won't go too much into detail. If you're keen to find out about all these fancy fstab- and mount-options just type "man mount" or "man fstab" and you will get more than you'd ever hoped for
 
In the meantime just give it a go with a mount-lineup for the DVD in your /etc/fstab that looks like this ...
 
/dev/dvd /mnt/dvd iso9660 noauto,user,ro 0 0
 
and you should be fine to go. If this fails add a "umask=000" after "users".
 
hope this helps