LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   user permissions and policies (https://www.linuxquestions.org/questions/linux-newbie-8/user-permissions-and-policies-645512/)

Subin 05-29-2008 01:24 AM

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........

smus 05-29-2008 02:19 AM

you can change the usergroup by looking the file /etc/groups

Tinkster 05-29-2008 04:52 AM

Quote:

Originally Posted by Subin (Post 3167808)
dear all,
I want to know how we can give special privileges to a particular user, like admin power............please help in it............

thanks........

Can you be more specific?

seraphim172 05-29-2008 11:11 AM

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

Subin 05-30-2008 01:09 AM

Quote:

Originally Posted by Tinkster (Post 3167946)
Can you be more specific?

Let it be like this, I am a common user with less privileges that is i can't change others account and their permission, so what should i do in order to get "root" like privileges i the server...............

THANKS.........

jschiwal 05-30-2008 01:30 AM

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.