Permission question
Hi folks,
BLFS 6.1 "alsamixer" can only be evoked as root. bash-3.00$ which alsamixer Code:
/usr/bin/alsamixer # chmod u+s /usr/bin/alsamixer it can be started by all users but a grey window only without colour. How to only authenticate "satimis" to start it in colour window not all users and how to make it? TIA BR satimis |
You could try creating a special group, with only one member: Satimis. Then change the group owner to that special group 'chown root:<newgroup> /usr/bin/alsamixer'. Remove the user permission you just created, and give the new group permission 'chmod g+x /usr/bin/alsamixer'. Or something along those lines, at any rate.
|
Hi bigrigdriver,
Tks for your advice. Quote:
Code:
root:x:0: # ls -l /usr/bin/alsamixer Code:
-rwxrwxr-x 1 root root 61555 Sep 20 06:59 /usr/bin/alsamixer # chown root:audio /usr/bin/alsamixer Code:
chown: `root:audio': invalid group Others noted with tks BR satimis |
You modified the /etc/group file, and audio is no longer a valid group:
Code:
#audio:!:11:satimis Code:
audio:x:11:satimis After you fix /etc/group, run the chown command again. Then, as a user satimis, execute groups and make sure audio is listed. If it isn't, you need to log out of the system completely. Opening a new xterm won't work. In fact, I would suggest you reboot if the audio group is not listed. Then run the command again to verify satimis is part of the audio group, and do any other permission restrictions on alsamixer or other commands. |
Hi Dark_Helme,
Tks for your advice. Performed following steps; # nano /etc/group deleted: # audio:!:11:satimis: added; audio:x:11:satimis # ls -l /usr/bin/alsamixer Code:
-rwxrwxr-x 1 root root 61555 Sep 20 06:59 /usr/bin/alsamixer # ls -l /usr/bin/alsamixer Code:
-rwxrwxr-x 1 root audio 61555 Sep 20 06:59 /usr/bin/alsamixer Rebooted BLFS 6.1 Now "alsamixer" can start as "user/satimis" but only a black/white screen displayed similar to running; # chmod u+x /usr/bin/alsamixer not colour screen. Any advice. TIA BR satimis |
If you only want only user satimis (and root) to have execute permissions, you need to run a different chmod command. I would suggest:
Code:
# chmod 660 /usr/bin/alsamixer I'm afraid I don't understand your second comparison. You say you get a black and white screen. Does it display vertical volume controls? If it does, then alsamixer is working. I wouldn't be concerned with it not having color. If you don't see the volume controls, then something else is wrong. Check the man page for alsamixer, see what files it writes to (if any) and make sure user satimis has write access to the necessary directories and/or files. If alsamixer wants to write to a file and can't, it may just kill itself without doing anything. |
Hi Dark_Helmet,
Quote:
Code:
mode of `/usr/bin/alsamixer' changed to 0660 (rw-rw----) exit $ alsamixer Code:
bash: /usr/bin/alsamixer: Permission denied Password: # chmod -c 770 /usr/bin/alsamixer Code:
mode of `/usr/bin/alsamixer' changed to 0770 (rwxrwx---) exit $ alsamixer Alsamixer started. Quote:
satimis |
Quote:
As for the color, if root has a colored display and satimis doesn't, then I'd compare root's environment settings to satimis. Check the home directories of root and satimis to see if there are dot files present in one and not the other. Also check the contents of the files for differences that might explain it. |
All times are GMT -5. The time now is 03:06 AM. |