How to setup an user in AIX

Follow the below steps to create a user in AIX and assign to a group.

Step 1: Create a user

mkuser user-name

 
Step 2: Create a group

mkgroup group-name

 
Step 3: Create a home directory

mkdir /home/users/user-name

 
Step 4: Provide permissions to home directory

chown user-name:group-name /home/users/user-name

 
Step 5: Assign home directory to user

chuser home=/home/users/user-name user-name

 
Step 6: Add user to the group

chuser group=group-name user-name
0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
10 AIX Commands to Add to Your Toolbox
Viewed 4297 times since Sat, May 19, 2018
To do a quick check on the number of path present (does not mean all are Enabled] using for loop
Viewed 3793 times since Fri, Jun 8, 2018
View mksysb content & restore individual files
Viewed 1825 times since Tue, Jul 17, 2018
How to build a NIM Server on AIX 6.1 from the Scratch :: Part 1
Viewed 4924 times since Thu, Nov 29, 2018
How To Mirror VG and Root VG
Viewed 3092 times since Mon, May 21, 2018
AIX TCP connection status
Viewed 16674 times since Mon, Jul 29, 2019
Script to reset NIM state and deallocate resources
Viewed 2347 times since Thu, Feb 21, 2019
Troubleshooting Starts With Understanding Your Physical Disks’ Attributes
Viewed 3737 times since Sat, May 19, 2018
Oslevel shows wrong AIX’s level. Why
Viewed 4702 times since Thu, Feb 21, 2019
Create a mksysb + SPOT using NIM (CLI)
Viewed 5533 times since Tue, Jul 17, 2018