View previous topic :: View next topic |
Author |
Message |
RaymondBeautrix n00b
Joined: 03 Jul 2005 Posts: 32
|
Posted: Sat Aug 13, 2005 5:15 pm Post subject: Setting udev permissions for user accounts |
|
|
Hello Everyone,
I have a simple question about setting udev permissions for my user account. Audio for me doesn't work unless I chmod /dev/dsp and /dev/sound/*. Also, kde doesn't seem to boot unless I chmod /dev/null. Konsole (for kde) also doesn't work if I'm not root and I'm wondering if this is also related to device permissions.
I've tried to modify /etc/group (adding my user name to audio group, etc) and /etc/udev without success. I've also tried the adduser command, which says I am part of these groups. Because udev restarts my /dev permissions each time I reboot, I have to chmod at every new session. Any suggestions would be greatly appreciated.
Thanks,
Ray |
|
Back to top |
|
|
UgolinoII Tux's lil' helper
Joined: 25 Apr 2004 Posts: 119
|
Posted: Sat Aug 13, 2005 5:19 pm Post subject: |
|
|
what are the permissions on /dev/sound/* ?
it should belong to root/audio and be crw-rw----
if so then begin in the audio group should work. |
|
Back to top |
|
|
RaymondBeautrix n00b
Joined: 03 Jul 2005 Posts: 32
|
Posted: Sat Aug 13, 2005 7:10 pm Post subject: |
|
|
Permissions of /dev/sound/* are root:root. Does this mean I should change ownership to root:audio? If so, would I do it like this: "chown -R root:audio /dev/sound"? Should I do the same for /dev/dsp? I think I also need permission for /dev/null for kde to start up. All files in /dev/ are owned by root:root.
Because udev restarts all permissions after reboot, isn't there was a way to set these in a udev config file?
Thanks,
Ray |
|
Back to top |
|
|
UgolinoII Tux's lil' helper
Joined: 25 Apr 2004 Posts: 119
|
Posted: Sun Aug 14, 2005 7:25 pm Post subject: |
|
|
in /etc/conf.d/rc i have
Code: | RC_DEVICE_TARBALL="yes" |
which i think keeps my device permissions steady. (i havn't messed with udev much - i think this is just the default config in the ebuild)
/dev/dsp is symlink on my machine (to /dev/sound/dsp) so, if its the same on yours, then as long as you change the group of the /dev/sound files everything should just work (the command you suggested looks good to me!)
as for /dev/null im fairly sure it should be world readable and writable
Code: | ls -l /dev/null
crw-rw-rw- 1 root root 1, 3 Aug 7 14:58 /dev/null |
|
|
Back to top |
|
|
|