Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CDROM group permissions not begin set when mounted
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
MathFreak
Apprentice
Apprentice


Joined: 07 Jul 2002
Posts: 217
Location: Bethlehem, PA

PostPosted: Wed May 10, 2006 4:41 pm    Post subject: CDROM group permissions not begin set when mounted Reply with quote

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
View user's profile Send private message
PaulSorensen
Tux's lil' helper
Tux's lil' helper


Joined: 15 Apr 2004
Posts: 80
Location: Chicago, USA

PostPosted: Wed May 10, 2006 8:36 pm    Post subject: using udev? Reply with quote

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


Joined: 07 Jul 2002
Posts: 217
Location: Bethlehem, PA

PostPosted: Wed May 10, 2006 9:02 pm    Post subject: Re: using udev? Reply with quote

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


Joined: 21 Apr 2006
Posts: 454
Location: the third world

PostPosted: Thu May 11, 2006 3:23 am    Post subject: Reply with quote

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


Joined: 07 Jul 2002
Posts: 217
Location: Bethlehem, PA

PostPosted: Fri May 12, 2006 5:45 pm    Post subject: Reply with quote

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


Joined: 21 Apr 2006
Posts: 454
Location: the third world

PostPosted: Sat May 13, 2006 4:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
jerry arns
Tux's lil' helper
Tux's lil' helper


Joined: 13 Dec 2003
Posts: 95
Location: France

PostPosted: Wed Jun 07, 2006 3:23 am    Post subject: Reply with quote

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


Joined: 27 Oct 2004
Posts: 19
Location: Adelaide, South Australia

PostPosted: Sat Aug 12, 2006 12:40 am    Post subject: Reply with quote

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
View user's profile Send private message
przeuj
Tux's lil' helper
Tux's lil' helper


Joined: 11 May 2004
Posts: 94
Location: Krakow

PostPosted: Sat Aug 12, 2006 1:15 pm    Post subject: Re: using udev? Reply with quote

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


Joined: 18 Jan 2004
Posts: 1418
Location: MI, USA

PostPosted: Fri Oct 27, 2006 2:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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