Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
I was just trying to work out howto give all my users (ie: me) the permissions to use my sound card, so that when i startx i dont get some dsp errors. and i came across something like this quite a bit:
Also you will want to chmod 666 /dev/dsp* /dev/mixer* so other users have permissions for sound besides root.
this is really stupid, but i have to find out somehow, why 666 ??? I have read a bit about, but its a bit confusing and vague! i realise that 666 is derived from adding up the permissions ie:read write and so on (400, 200 etc)
but can anyone explain exaclty what permissions are given here? and their corresponding numeric values?
also why is numeric form used here rather than symbolic? is there a general rule of thumb of when to use either symbolic or numeric?
let us assume that the user for this system is "najm" - with this in mind we will go through three steps.
1. open an xterm window
2. type the letters "su" and then hit the enter key. you will get a prompt for the root password. type in your root password and hit the enter key.
3. type this:
Well there is no rule of choosing octal or "symbolic" form of setting permissions, well, I use octal b/c it makes easier for me to get perms right, I don't know maybe a+r u-w isn't appealing to my eye, and I really struggle sometimes to get the idea when I see that sort of chmod directive.
If you search here there was quite a discussion with explanation of different sets of permissions, basically there are three access rights within three groups, these are owner, group, and others and the actual permissions are read, write and execute, also there are special sets of permissions like sticky bit, set uid (user id), and set gid (group id), the former is used on your /tmp directory where all the users are have read/write access, but only the owner and root only have rights to delete their own stuff; the later two are used when you usually as a sysadmin'd like to give users more air but limit them from use of su which gives up root's password, or you have different groups on your system and you need to have some way to give rights to members to have access to certain files that belong to different group/user but not in its turn to give everything away, so you set up set uid and set gid bits. Example of it is /bin/su.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.