LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   chmod doesn't work (https://www.linuxquestions.org/questions/linux-newbie-8/chmod-doesnt-work-295396/)

stonecrest 02-27-2005 03:12 AM

chmod doesn't work
 
Code:

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

No matter what I do, I can't get /dev/dsp to have write permissions. Someone please put me out of my misery, what is going on?

acid_kewpie 02-27-2005 04:22 AM

/dev/dsp is a symlink, you will need to modify the permissions on the actual device it's pointing to.

if this is a system using udev, then you can modify the creation rules for it, rather than manually updating it.

stonecrest 02-27-2005 04:25 AM

Thanks for your reply. My system is not using udev afaik.

I also do have /dev/sound chmoded to 666. But Rhythmbox keeps telling me that it can't write to /dev/dsp, which is why I'm trying to change the permissions for it..

Code:

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

320mb 02-27-2005 04:31 AM

you can't write to /dev/dsp
another device/program actually accesses it and manipulates it's output..........

dinges 02-27-2005 04:43 AM

When you chmod a symlink (as you do) you're really chmodding the file it points to. Try chmod -v 666 /dev/dsp. The -verbose parameter will give you feedback. The symlink mod will remain the same but /dev/sound will have changed.


All times are GMT -5. The time now is 01:01 AM.