You are not logged in.

#1 2005-02-27 09:53:59

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

chmod won't work??

I swear that I have an uncanny ability to come up with problems that nobody else can.

# chmod 666 /dev/dsp
# ls -al /dev/dsp
lr-xr-xr-x  1 root audio 10 2005-02-27 02:04 /dev/dsp -> /dev/sound

I can't play songs in Rhythmbox because /dev/dsp needs write access. I am root and, as you can see, I'm trying to give /dev/dsp write permissions. I've tried chmod 777 as well.

What the heck is going on?


I am a gated community.

Offline

#2 2005-02-27 10:02:32

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: chmod won't work??

might be due to it being a link. Did you try chmodding the other end of the link?..
/dev/sound


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2005-02-27 10:06:47

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: chmod won't work??

yup I did, and that worked fine..

drw-rw-rw-   1 root audio       0 1969-12-31 17:00 sound

I can get /dev/sound to be 666 but not the link to it?


I am a gated community.

Offline

#4 2005-02-27 10:10:55

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: chmod won't work??

No clue. Maybe someone knowing a bit more about this can chime in.
I probably know enough about inodes and file handlers to make myself sound stupid. So, attempting to resist tempation for tasting my foot, I await someone more knowledgeable on this subject.

EDIT: You using udev perchance?


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#5 2005-02-27 10:12:56

SG-3
Member
Registered: 2005-02-01
Posts: 28

Re: chmod won't work??

Like I'm having the same problem ... changed dsp to audio & sound but after boot goes back to root ....

Is it a udev thing ?

 more udev.permissions | grep dsp  
dsp*:root:audio:0660
adsp*:root:audio:0660

:?


"just below me"

Offline

#6 2005-02-27 10:19:05

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: chmod won't work??

I don't think I have udev, although I'm not positive. How does one find out for sure?

And it's not getting switched back after I boot, the permissions aren't happening at all. My ls statement was right after my chmod statement.

Edit: Okay, I'm definitely not using udev.


I am a gated community.

Offline

#7 2005-02-27 13:09:46

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: chmod won't work??

Permissions of links are totally ignored, they have no meaning at all. Only what matters are the permissions of the file the symlink points to.

Offline

#8 2005-02-27 13:58:34

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,487

Re: chmod won't work??

But weather you use devfs or udev, permissions will be restored every boot, following devfs or udev rules. If you want to have enduring permissions, change the config files of devfs / udev.


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

#9 2005-02-27 17:31:24

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: chmod won't work??

SG-3 wrote:

Like I'm having the same problem ... changed dsp to audio & sound but after boot goes back to root ....

Is it a udev thing ?

 more udev.permissions | grep dsp  
dsp*:root:audio:0660
adsp*:root:audio:0660

:?

Yes it is. But latest udev doesn't use udev.permissions at all (you can delete it). Everything is now in .rules files.
Look into /etc/udev/rules.d/udev.rules. If you want to change something I would suggest copying this file to 00.udev.rules and delete everything except the lines between "# sound devices" and "# input devices". Then modify first rule like this

SUBSYSTEM="sound",  GROUP="audio", MODE="0666"

or dsp rule like this:

KERNEL="dsp*",       NAME="sound/%k", MODE="0666", SYMLINK="%k"

You can of course customize or add/change other things too (for example change audio to users if you prefer).

Offline

#10 2005-03-09 17:37:37

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: chmod won't work??

Emmm

Now I am confused lol

Thank you lanrat ... I guess I have some reading up to do....


Mr Green

Offline

Board footer

Powered by FluxBB