Link to home
Start Free TrialLog in
Avatar of fcgsupport
fcgsupport

asked on

Red Hat Enterprise Linux 5 - How to grant another user root permission (without having to use su -)

I need to know how to give another general user, root permissions so that I don't need to type su - in order to get root privileges. I want the user to login using their username, but have full root access as if they were logging in as root.

For example, I don't want this user to be prompted every time an administrative function needs to be performed.
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Hi,
use 'sudo'
It's perfect for your purposes.

http://www.courtesan.com/sudo/

wmp
Avatar of fcgsupport
fcgsupport

ASKER

I said I need this to happen without using SU, SUDO, SU - or any variation of SU.

Thanks!
You only said 'su'
Seems you don't understand sudo, or haven't even looked at it.
Can you explain your reasons for not wanting to use su or sudo.  It doesn't make sense to me.
why are you not puttying that user in root groups

or create a groups call admin, give this groups full permission of the system

now put user in that groups, so as a part of that groups that user would get all the permission as root user
ASKER CERTIFIED SOLUTION
Avatar of Tintin
Tintin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
"sudo" is the cleanest alternative, providing not only fine control over what root rights are given, but also providing an audit trail. If you want to make it transparent, define aliases for the functions you allow. For example,,

alias route="sudo /sbin/route"

coupled with an entry in the /etc/sudoers file with the NOPASSWD option will allow the user to use the standard route command.
Thanks Tintin,

I read about using the '0' uid method. I tried this, but during login, there are some strange /home/username access issues. I have also tried to create a new user using useradd -u 0 -o -p password username, but it will not accept my password at login.

if you have specific command to run as root, then you give that user permission to run it as root with the set uid priv.

chmod u+s command

and this command (the file) should be owned by root.

If you can give a specific need then it might be easier to give you solution
if its typing sudo for each command  that u don't like, then sudo su - once will make ur user as good as a root user. its a one time command and you are like root for the rest of the time...