Posts Tagged ‘Security’

Finding password rules in AIX

Posted: February 4, 2016 in HowTo
Tags: , , ,

In AIX 5.2, following file holds the password configuration

/etc/security/user
Advertisements

How to setup an user in AIX

Posted: November 30, 2015 in HowTo
Tags: , , ,

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

Getting list users and groups in AIX

Posted: August 31, 2015 in HowTo
Tags: , , ,

Run the following command to get the list of users and associated groups in AIX environment

$ lsuser ALL

Unlock User ID in IBM AIX

Posted: December 17, 2011 in HowTo
Tags: , , ,

AIX Version: 5.3.0.0

Note: Required root or sudo access to perform this function.
To unlock an user that’s locked from several unsuccessful login attempts, follow the steps below. Replace <userid> with userid that needs to be unlocked in below.

If the user remembers the old password, skip this step and go to next. Else, execute the following command to reset the password and will be asked to enter the new password twice to confirm.
# passwd <userid>
or
$ sudo passwd <userid>

Execute the following command to reset unsuccessful login attempts count
# chsec -f /etc/security/lastlog -a unsuccessful_login_count=0 -s <userid>
or
$ sudo chsec -f /etc/security/lastlog -a unsuccessful_login_count=0 -s <userid>

Execute the below command to reset the lock switch
# chuser account_locked=false <userid>
or
$ sudo chuser account_locked=false <userid>