Archive for category Aix

Change user settings and password attributes in AIX

To change some user and password settings in AIX, you should use the command "chuser". Follow some available parameters:

- loginretries -> number of login failures before lock the account.
- maxage -> maximum age of a password (in weeks)
- gecos -> general information about the user.
- groups
- home
- minlen -> minimum password length
- pgrp -> primary group

Example:
# chuser loginretries='0' maxage='0' gecos='User Foo Bar' groups='group1,group2,group3' home='/home/foobar' minlen='7' pgrp='groupX' <username>

 

, ,

No Comments

Unlock user account in AIX

To unlock an user account in AIX, you should use the following command:

# chuser account_locked='true' <username>

,

No Comments

Lock user account in AIX

To lock an user account in AIX, you should use the following command:

# chuser account_locked='false' <username>

,

No Comments

Physical memory in AIX

To check the amount of physical RAM that a AIX Server has, you can use the following commands:


# lsattr -El sys0 | grep realmem
realmem 16121856 Amount of usable physical memory in Kbytes


or

# lsattr -El mem0
goodsize 15744 Amount of usable physical memory in Mbytes False
size 15744 Total amount of physical memory in Mbytes False

or

# prtconf|grep "Memory Size"
Memory Size: 15744 MB Good Memory Size: 15744 MB

 

, ,

No Comments

Disable file size limit in AIX

By default, if you try do copy/create a file larger than 2Gb in AIX, you will get a “file too large” message. That happen because AIX have a default limit of 2Gb for files.

To disable (or increase) this limit, edit /etc/security/limits and change the parameter fsize to “-1” or whatever value you want.

You can change it in “default” to apply to all users or change it to a specific user.

Remember that the file system should be JFS2.

, ,

No Comments

Creating an user on AIX

Creating an user on AIX

On AIX, you can use the following commands to create an user
# mkuser pgrp='primary group' groups='other groups' home='home directory' shell='/usr/bin/ksh' gecos='GECOS' USERNAME

 

, ,

No Comments

Forcing an user changing the password on AIX

Forcing an user changing the password on AIX

On AIX, you can use the following commands to unlock na user and force it to change it’s password on first logon:
# pwdadm -f ADMCHG USER

 

, ,

No Comments