Install and configure sudo in AIX
Sudo command allows normal user to run command as root users.
Steps to install sudo is as shown below
1. Download the sudo package. It will be in tar.gz format.
# gunzip sudo
# tar xvf sudo
2. Compile the source code and install sudo
# ./configure
# make
# make install
3. Next step is to configure sudo
To use sudo login as an root user
# su – root
4. Edit the suod file
# visudo
This will edit the sudo file
for example
Suppose you want to give user mike , ability to run scripts type the following
# visudo
mike ALL=/hangup,/dialup
save it
Also you can add personal user to run all command as root, suppose the user is bryan
# visudo
Bryan ALL=(root) ALL
save and quit
5. Now use the sudo command
6 . If you are login using mike
# sudo /dialup
The command will prompt for password , after giving password it will work
7. Suppose you login as wayne and type the command it will prompt error
# sudo /dialup
Sorry user wayne is not allowed

Leave a Reply