Sunday, 17 March 2013

Cheat Sheet for AIX User-related Commands


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. 
Here's a list of the most common UNIX user commands and their AIX equivalents:
FunctionUNIX CommandAIX Command
Create a useruseraddmkuser
Change a userusermodchuser
Delete a useruserdelrmuser
Change user's shellusermod -schsh or passwd -s
Lock a user's accountpasswd -lchuser login=false





Other user-oriented commands are nearly the same on AIX as its UNIX brethren:
FunctionAIX Command
Change passwordpasswd
Display current user detailswhoami
List users currently logged inwho 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:
FunctionAIX Command
List user account detailslsuser <username>
List all userslsuser ALL
Print a table of specific user attrbuteslsuser -a ALL
Check integrity of user accountsusrck -t ALL
Add or delete user in /etc/ftpusers fileruser -a -f or ruser -d -f
Add or delete user in /etc/host.lpd fileruser -a -p or ruser -d -p
Add or delete user in /etc/hosts.equiv fileruser -a -c or ruser -d -c
Show all users in /etc/ftpusers fileruser -s -F (note upper-case)
Show all users in /etc/host.lpd fileruser -s -P (note upper-case)
Show all users in /etc/hosts.equiv fileruser -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!

16 comments:

  1. An iOS development bootcamp online provides intensive mobile training.It focuses on rapid skill building.This iOS development bootcamp online boosts confidence.It is effective.

    ReplyDelete
  2. Android developer online course offers flexible professional training. It explains advanced mobile development topics clearly. This android developer online course improves coding efficiency. Learners work on real-world projects. API integration is included. UI responsiveness is covered. Deployment guidance is explained. It builds confident professionals.

    ReplyDelete
  3. Our Dell dell boomi training cost
    simplifies integration learning. Hands-on projects, API workflows, and deployment exercises prepare learners for real-world scenarios.

    ReplyDelete
  4. Fantastic overview! Upgrade your integration skills with our dell boomi training and placement
    comprehensive, hands-on Dell Boomi course.

    ReplyDelete
  5. This MuleSoft developer course looks like a solid option for anyone interested in integration development.mulesoft developer course

    ReplyDelete
  6. mule soft certification details are clearly explained and easy to follow.
    mule soft certification

    ReplyDelete
  7. ServiceNow trainings provide practical knowledge and industry-relevant skills needed to succeed in IT operations roles.service now trainings

    ReplyDelete
  8. ServiceNow trainings are in high demand. Appreciate the clarity in this blog.
    service now trainings

    ReplyDelete
  9. ServiceNow admin courses are becoming increasingly popular as companies rely more on automation and digital workflows.servicenow administrator course

    ReplyDelete
  10. ServiceNow online training allows you to learn at your own pace with access to real-time projects.servicenow online training

    ReplyDelete
  11. A detailed ServiceNow administrator course with practical exercises.servicenow administrator course

    ReplyDelete
  12. Great post! dell boomi training and placement
    makes integration seamless with its low-code platform, enabling faster development and scalable solutions for modern enterprises.

    ReplyDelete
  13. A useful course for becoming a certified ServiceNow administrator.servicenow administrator course

    ReplyDelete
  14. service now admin course – ServiceNow admin course is great for beginners who want to start a career in ITSM administration.service now admin course

    ReplyDelete
  15. MuleSoft training in India is growing fast, and this resource looks valuable.MuleSoft Training India

    ReplyDelete
  16. Professional training program focused on Salesforce CPQ configuration, pricing rules, and quote management processes.salesforce cpq training

    ReplyDelete