Connect With Us

Cheat Sheet for AIX User-related Commands

AIX handles user activities differently than other UNIXes [Infographic]

This infographic cheat sheet gives you a quick guide to the differences between user administration commands on AIX and other UNIX-derived operating systems, so that you can exploit user administration tools and techniques you find in user forums and elsewhere on the web. 

Many administration activities that work on other UNIX-derived operating systems, such as Linux and Solaris, work without change on AIX. But user administration commands are an exception. IBM has its own unique commands that operate similarly to legacy UNIX, but you have to know the equivalents. For example, rather than the UNIX standard "adduser" command, AIX has "mkuser." This cheat sheet gives you a quick guide to the differences so that you can exploit user administration tools and techniques you find in user forums and elsewhere on the web. 

Download AIX User-Related Commands (Infographic) today!

This quick guide highlights differences between user administration commands on AIX and other UNIX-derived operating systems.


Here's a list of the most common UNIX user commands and their AIX equivalents:

Function UNIX Command AIX Command
Create a user useradd mkuser
Change a user usermod chuser
Delete a user userdel rmuser
Change user's shell usermod -s chsh or passwd -s
Lock a user's account passwd -l chuser login=false

 

 

 

 

 

Other user-oriented commands are nearly the same on AIX as its UNIX brethren:

Function AIX Command
Change password passwd
Display current user details whoami
List users currently logged in who or w

One thing AIX is famous for is giving administrators powerful commands that other UNIX variants lack. For user admin, AIX has the following unique yet useful commands. For example, to list all the users on the system, UNIX admins can only dump the /etc/passwd file. And to add or remove a users from a privilege control file, such as /etc/ftpusers, standard UNIX calls for directly editing the file—introducing the possiblity of devastating syntax errors. AIX has dedicated commands for these actions. Here's a summary of AIX "power" user commands:

Function AIX Command
List user account details lsuser <username>
List all users lsuser ALL
Print a table of specific user attrbutes lsuser -a ALL
Check integrity of user accounts usrck -t ALL
Add or delete user in /etc/ftpusers file ruser -a -f or ruser -d -f
Add or delete user in /etc/host.lpd file ruser -a -p or ruser -d -p
Add or delete user in /etc/hosts.equiv file ruser -a -c or ruser -d -c
Show all users in /etc/ftpusers file ruser -s -F (note upper-case)
Show all users in /etc/host.lpd file ruser -s -P (note upper-case)
Show all users in /etc/hosts.equiv file ruser -s -R (note upper-case)

Armed with this cheat sheet, you're ready to begin adapting scripts and tricks from other UNIXes for your own AIX edification!

 

Please or Register to post comments.

AIX User-Related Commands

Download AIX User-Related Commands (Infographic) today! This quick guide highlights differences between user administration commands on AIX and other UNIX-derived operating systems.


POWER IT Pro Blogs
LPI Exam Objective 101.3: Runlevels, Shutdown, and Reboot
May 13, 2013
blog

LPI Exam Objective 101.3: Runlevels, Shutdown, and Reboot

This entry in the LPI certification exam blog series discusses the third objective in the System Architecture topic of the exam: Linux runlevels, and shutdown and reboot procedures....More
May 13, 2013
blog

Feedback Loop

I had more feedback from readers to my article, "The Forgotten", than practically anything I have written before. If you missed it, it told the story of a conversation I had with the financial director a mid-sized British food retailer....More
May 13, 2013
blog

COMMON Europe Cancels Flagship Conference

COMMON Europe has cancelled its flagship annual conference, due to be held next month in Annecy, south-eastern France....More
eBooks & Training
Secrets of an AIX Administrator by Christian Pruett
Dec. 13, 2012
Datasheet

Secrets of an AIX Administrator  

Download this Tech Advisor from POWER IT Pro and learn practical, real-world information about AIX administration. Christian Pruett shares all the things he wishes he had known about AIX before becoming an admin in his ebook Secrets of an AIX Administrator....More
Dec. 3, 2012
Datasheet

AIX Security  

IBM i has extremely robust intrinsic security, and Linux, although much less secure than either AIX or IBM i, has many more eyes watching for problems. But AIX has some significant corner cases where security can be breached if you're not careful....More