when i try to play a sound file with mpg123 or mpg321 i get an error
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
"c"? I don't think I've seen that before. Huh, anyhow, try doing "chmod 0666 /dev/snd/pcmC0D0p" as root. That should give r/w permissions to everyone for that device (as well as summon the dark lord ;-)).
Octal code works like this:
4=Read
2=Write
1=Execute
The reason it works this way has to do with binary theory, but I won't get into that. Anyhow, basically, it's easy to remember it this way, and therefore 0-7 is:
0=No Perms
1=Execute
2=Write
3=(2+1) Write & Execute
4=Read
5=(4+1) Read & Execute
6=(4+2) Read & Write
7=(4+2+1) Read, Write, Execute
Then in order from left to right it's Sticky Bit, User, Group, Others. So apparently, since the device was being used by a user (or process) which came into the "others" category, it needed to both read & write to not get the perms error. I bet if you had set it to 667, for instance, you wouldn't get the error message either, but you really don't need to execute the device (and may cause probs down the road).
Oh yeah, and the reason I suggested that, was because you listed your perms as "rw-rw--w-". The third column is for others, and it's only listing write access. So those perms would be equivalent to 662.
yes, i know all of that already. and 667 or 777 or 767 also works, but i left those off for the obvious reasons you stated.
I just wondered why the permissions were set like they were by default if something else that came packaged in the OS was going to need different permissions.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.