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.
fcgsupportAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

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

wmp
0
fcgsupportAuthor Commented:
I said I need this to happen without using SU, SUDO, SU - or any variation of SU.

Thanks!
0
Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

woolmilkporcCommented:
You only said 'su'
0
woolmilkporcCommented:
Seems you don't understand sudo, or haven't even looked at it.
0
TintinCommented:
Can you explain your reasons for not wanting to use su or sudo.  It doesn't make sense to me.
0
fosiul01Commented:
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
0
TintinCommented:
In answer to your original question, you can just change the uid of the user to 0, but as has been pointed out in many threads on similar topics, this is certainly NOT recommended.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Hugh FraserConsultantCommented:
"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.
0
fcgsupportAuthor Commented:
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.

0
omarfaridCommented:
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
0
nabeelmoiduCommented:
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...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.