Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 67536 - Wrong perms on some devs, udevstart after login fixes them
Summary: Wrong perms on some devs, udevstart after login fixes them
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-14 05:31 UTC by Rafal Peisert
Modified: 2004-10-15 14:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafal Peisert 2004-10-14 05:31:28 UTC
I've initially thought it refers to the same issue as bug 66730 but after some research I found it different.
After bootup owners and perms for some devices are setup incorrectly, e.g.:
crw-------  1 rav tty    5,  1 Oct 14 14:07 console
or
crw-------  1 rav audio
for /dev/audio/* devices.
When I su to root and run /sbin/udevstart ownership and permissions get set to their proper values, e.g.:
crw-------  1 root tty    5,  1 pa? 14 14:07 console
or
crw-rw----  1 root audio 14
for audio devices.
Reproductible: Always
Steps to Reproduce:
1. log in
2. run udevstart
Starting /sbin/udevstart from rc.local doesn't fix it, it works only after login.
Tried this with udev 0.30 and 0.34 on kernels 2.6.7-gentoo-r11 and 2.6.8-gentoo-r7.
Comment 1 Peter Johanson (RETIRED) gentoo-dev 2004-10-14 06:57:37 UTC
Sounds like pam stuff, but I could be wrong. Greg?
Comment 2 Rafal Peisert 2004-10-14 23:19:52 UTC
well commenting out lines wih pam_console.so in /etc/pam.d/* seems to fix the ownership issue.
There still were bad access rights for /dev/sound/* (crw-------), changing
<console>  0600 <sound>      0600 root.audio
to
<console>  0660 <sound>      0660 root.audio
in /etc/security/console.perms fixed this.
I don't know much about pam, maybe there's a better way to do it - just hacked around until it worked.
Comment 3 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-10-15 14:04:10 UTC
Good, so this isn't a udev issue.