Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Setting udev permissions for user accounts
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
RaymondBeautrix
n00b
n00b


Joined: 03 Jul 2005
Posts: 32

PostPosted: Sat Aug 13, 2005 5:15 pm    Post subject: Setting udev permissions for user accounts Reply with quote

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


Joined: 25 Apr 2004
Posts: 119

PostPosted: Sat Aug 13, 2005 5:19 pm    Post subject: Reply with quote

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


Joined: 03 Jul 2005
Posts: 32

PostPosted: Sat Aug 13, 2005 7:10 pm    Post subject: Reply with quote

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


Joined: 25 Apr 2004
Posts: 119

PostPosted: Sun Aug 14, 2005 7:25 pm    Post subject: Reply with quote

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