We help IT Professionals succeed at work.

This is Linux/AIX ..My  usreid on server is odabec23

aixtutorial asked
Last Modified: 2013-12-06
This is Linux/AIX ..My  usreid on server is odabec23 and I have a root access.There is one more id odabec28 and one more id with name oadacr58 ...On  oadacr58  we have scripts..I odabec23  have root access I want to make this  user odabec28  to switch to  odabec28 without passwd
to make it more clear:
odabec28  >;$su -  odabec28  when this command is issued it should not ask for password,
how to make it possible provide me with all the steps ,, commands
Watch Question

Most Valuable Expert 2013
Top Expert 2013


I fear this will not be possible with su - only root can use su without password.

But there is a good alternative - use sudo.

You can get it from the toolbox, as always - http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html

Download it and install using rpm -ivh sudo-1.6.9p15-2.aix5.2.ppc.rpm

Once installed, use "visudo" to configure it. The configuration file ("sudoers") contains may comments to assist you.

To achieve what you want you would add

odabec28           ALL=(odacr58) NOPASSWD:ALL

This would give odabec28 the possibility to execute all commands odacr58 is allowed to run, without restrictions or the need for a password. It is also possible to allow only certain commands/scripts/programs. Please tell me if you need such a restriction.

In your case odabec28 would issue

sudo -u odacr58 /some/command

Sorry if I messed up the different userids, your Q is not quite clear in that aspect.


Most Valuable Expert 2013
Top Expert 2013
This one is on us!
(Get your first solution completely free - no credit card required)
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.