LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-27-2005, 04:12 AM   #1
stonecrest
Member
 
Registered: Sep 2004
Distribution: Arch :D
Posts: 66

Rep: Reputation: 15
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?
 
Old 02-27-2005, 05:22 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
/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.
 
Old 02-27-2005, 05:25 AM   #3
stonecrest
Member
 
Registered: Sep 2004
Distribution: Arch :D
Posts: 66

Original Poster
Rep: Reputation: 15
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
 
Old 02-27-2005, 05:31 AM   #4
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
you can't write to /dev/dsp
another device/program actually accesses it and manipulates it's output..........
 
Old 02-27-2005, 05:43 AM   #5
dinges
LQ Newbie
 
Registered: Nov 2004
Location: Netherlands
Distribution: Centos 4, Ubuntu
Posts: 26

Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Will this command work? chmod -R 644 *.php abefroman Programming 3 10-22-2005 09:26 AM
did chmod 666 on a directory but it doesn't work r3dhatter Linux - Newbie 6 06-10-2005 11:06 AM
How do I change my windows partition permissions. chmod won't work. brandonloserkid Slackware 2 12-03-2004 06:39 PM
How can I change the permissions of /dev/ptyp* (chmod does not work) gderou Mandriva 0 08-24-2004 11:37 AM
mount doesn't work as non su even after chmod 777 dokterneo Slackware 5 08-08-2003 11:48 PM


All times are GMT -5. The time now is 04:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration