View previous topic :: View next topic |
Author |
Message |
MathFreak Apprentice
Joined: 07 Jul 2002 Posts: 217 Location: Bethlehem, PA
|
Posted: Wed May 10, 2006 4:41 pm Post subject: CDROM group permissions not begin set when mounted |
|
|
For a while, everything was working fine with my cdrom. But now whenever I mount it, the group permissions are never set. I don't recall changing anything, though. Here's my fstab entry for the cd:
Code: | /dev/hdc /mnt/cdrom iso9660 noauto,ro,user 0 0 |
I can mount just fine as a user, but the permissions are all wonky:
Code: | chris@mathfreak ~ % ls -ld /mnt/cdrom
drwx------ 2 400 401 2048 2006-03-30 16:44 /mnt/cdrom
|
I'm not even certain where user 400 and group 401 came from. I had no idea what happened and so I decided to try using ivman. I went through the HOWTO on the wiki and removed the cdrom line from my fstab. But now when I put in a cd, the group permissions still aren't set:
Code: | chris@mathfreak ~ % ls -ld /media/hdc
drwx------ 2 ivman plugdev 2048 2006-03-30 16:44 /media/hdc |
I set the umask to 002 in IvmConfigBase.xml but the permissions are still the same. Finally, here are the groups I'm in:
Code: | chris@mathfreak ~ % groups
disk wheel audio cdrom video games users portage vmware qemu plugdev |
_________________ "You probably wouldn't worry about what people think of you if you could know how seldom they do."
-Olin Miller |
|
Back to top |
|
|
PaulSorensen Tux's lil' helper
Joined: 15 Apr 2004 Posts: 80 Location: Chicago, USA
|
Posted: Wed May 10, 2006 8:36 pm Post subject: using udev? |
|
|
If you're using udev, then look in the files that are in: /etc/udev/permissions.d/
- look for a line that looks something like: cdrom*:root:cdrom:0660
the files in this directory usually start with a number - and if two files have a similar line (say one starts with "cd*" and the other "cdrom*" then the one with the lower number takes precedence.
So in the line above "root" is the user that will be assigned as the owner of /dev/cdrom, "cdrom" is the group and "0660" is the permission. |
|
Back to top |
|
|
MathFreak Apprentice
Joined: 07 Jul 2002 Posts: 217 Location: Bethlehem, PA
|
Posted: Wed May 10, 2006 9:02 pm Post subject: Re: using udev? |
|
|
PaulSorensen wrote: | If you're using udev, then look in the files that are in: /etc/udev/permissions.d/
- look for a line that looks something like: cdrom*:root:cdrom:0660
the files in this directory usually start with a number - and if two files have a similar line (say one starts with "cd*" and the other "cdrom*" then the one with the lower number takes precedence.
So in the line above "root" is the user that will be assigned as the owner of /dev/cdrom, "cdrom" is the group and "0660" is the permission. |
Unfortunately, I don't have that directory. I checked in all the files under /etc/udev and didn't see any files that had that kind of format. What files are supposed to go in there? _________________ "You probably wouldn't worry about what people think of you if you could know how seldom they do."
-Olin Miller |
|
Back to top |
|
|
runningwithscissors Guru
Joined: 21 Apr 2006 Posts: 454 Location: the third world
|
Posted: Thu May 11, 2006 3:23 am Post subject: |
|
|
Try adding the groupd id option to the fstab options on your cdrom. (gid=<group id>), and then setting the appropriate umask/fmask/dmask. |
|
Back to top |
|
|
MathFreak Apprentice
Joined: 07 Jul 2002 Posts: 217 Location: Bethlehem, PA
|
Posted: Fri May 12, 2006 5:45 pm Post subject: |
|
|
runningwithscissors wrote: | Try adding the groupd id option to the fstab options on your cdrom. (gid=<group id>), and then setting the appropriate umask/fmask/dmask. |
Adding gid=19 (that's my cdrom group) to the options in fstab does set the group to cdrom, but not the permissions. Putting anything in umask, fmask, or dmask gives
Code: | chris@mathfreak ~ % mount /mnt/cdrom
mount: wrong fs type, bad option, bad superblock on /dev/hdc,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
|
And dmesg doesn't give me anything.
Code: | chris@mathfreak ~ % dmesg | tail
Buffer I/O error on device sda1, logical block 4883747
Buffer I/O error on device sda1, logical block 4883747
Buffer I/O error on device sda1, logical block 4883746
Buffer I/O error on device sda1, logical block 4883746
Buffer I/O error on device sda1, logical block 4883746
usb 2-1: USB disconnect, address 3
ISO 9660 Extensions: Microsoft Joliet Level 3
ISO 9660 Extensions: RRIP_1991A
ISO 9660 Extensions: Microsoft Joliet Level 3
ISO 9660 Extensions: RRIP_1991A
|
The Buffer I/O errors are not from my mp3 player, not my cdrom. And just to be certain, the permissions on the device itself seem fine
Code: | chris@mathfreak ~ % ls -l /dev/hdc
brw-rw---- 1 root cdrom 22, 0 2006-05-10 16:56 /dev/hdc
|
_________________ "You probably wouldn't worry about what people think of you if you could know how seldom they do."
-Olin Miller |
|
Back to top |
|
|
runningwithscissors Guru
Joined: 21 Apr 2006 Posts: 454 Location: the third world
|
Posted: Sat May 13, 2006 4:21 pm Post subject: |
|
|
I have my fstab entries without fmsk/dmask options on the cd drives. Owner and group members get read and write permissions on the directory.
Code: |
/dev/hdc /mnt/cdrom iso9660 noauto,ro,users,gid=19 0 0
|
The only problem is that it also gives r+x permissions to users who are not part of the group.
If you find a way to disable that, let me know. |
|
Back to top |
|
|
jerry arns Tux's lil' helper
Joined: 13 Dec 2003 Posts: 95 Location: France
|
Posted: Wed Jun 07, 2006 3:23 am Post subject: |
|
|
Hi, I have the same problem.
Mounting the CD from the fstab entry sets permissions to an unknown user and group, with only read permissions.
Even mounting as root.
But if I specify "iso9660" as the filesystem instead of "auto" in fstab, everything works fine and the permissions are set according to the udev rules.
So, it seems the filesystem autodetection is broken.
Hope this helps. _________________ Left handed, right minded. |
|
Back to top |
|
|
lodgey n00b
Joined: 27 Oct 2004 Posts: 19 Location: Adelaide, South Australia
|
Posted: Sat Aug 12, 2006 12:40 am Post subject: |
|
|
I have noticed this problem with one DVD. It's the Dreamfall DVD from Funcom, and I'm not sure it will run under wine anyway, so it's not incredibly urgent.
Any other CD or DVD works without any problems, but whenever I mount this one the permissions get set exactly as MathFreak described.
I normally use autofs, but I have tried mounting it manually through the mount command and disabling autofs and putting the DVD drive back into fstab and mounting it again, but no luck. |
|
Back to top |
|
|
przeuj Tux's lil' helper
Joined: 11 May 2004 Posts: 94 Location: Krakow
|
Posted: Sat Aug 12, 2006 1:15 pm Post subject: Re: using udev? |
|
|
MathFreak wrote: |
Unfortunately, I don't have that directory. I checked in all the files under /etc/udev and didn't see any files that had that kind of format. What files are supposed to go in there? |
I believe that it has been changed to /etc/rules.d
I have recently installed gentoo on my new server and the only thing that is in /etc/udev/ is rules.d dir and udev.conf.
so if you need tweaking anything than it should be changed in rules.d dir
Bartek _________________ [img]http://www.openwengo.org/static/eng_eng/images/banners/wengophone.png[/img] |
|
Back to top |
|
|
XenoTerraCide Veteran
Joined: 18 Jan 2004 Posts: 1418 Location: MI, USA
|
Posted: Fri Oct 27, 2006 2:58 pm Post subject: |
|
|
anyone find a concrete solution to this for ivman? _________________ I don't hang out here anymore, try asking on http://unix.stackexchange.com/ if you want my help. |
|
Back to top |
|
|
|