user permissions and policies
dear all,
I want to know how we can give special privileges to a particular user, like admin power............please help in it............ thanks........ |
you can change the usergroup by looking the file /etc/groups
|
Quote:
|
Adding that particular user to the sudoers list is one possibility. Adding the user to certain groups (depending on what has to be allowed) would be another way. In the second case only files that are group-writeable can be chnaged by the user.
Linux Archive |
Quote:
THANKS......... |
You can add yourself to the "wheel" group; edit /etc/soduers as root using the "visudo" program to uncomment the line that allows %wheel group members to use sudo; run your root commands with "sudo" in front of them.
Fedora, by default, configures the sudoers file so that when you use sudo you enter your regular password. This allows you to allow wheel group members to run root commands without needing to give them the root password. Sudo can be configured to only allow commands that you specify. If you had it configured to require the root password, a person knowing the root password could use "su" instead and have full root powers. If you are the only user, and know the root password, you can run "su -" to become the root user. This may be handier in some situations where you will be running multiple root commands back to back. For example, using "less" to read through a number of logs in /var/logs/. Many are owned by root and don't allow regular users to read them. Another situation is where the commands you will be entering will be using redirection. Compare echo 0 >/proc/sys/net/ipv4/ip_forward with sudo sh -c "echo 0 >/proc/sys/net/ipv4/ip_forward". |
All times are GMT -5. The time now is 10:51 PM. |