Get the App
SLTechnology News&Howtos  ›  Servers  › 

How does AIX add users and groups

Shulou Source: shulou.com Published: 2022-05-31 15:16:10 09月21日 Update

AIX is how to increase users and groups, I believe that many inexperienced people do not know what to do, so this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

Increase users

# useradd-d / home/wasuser-m wasuser or smitty user

Set password

# passwd wasuser

Add group

# mkgroup wasgrp

Add users to a group

# chuser pgrp=wasgrp wasuser

View the group to which the user belongs

# groups wasuser

Wasuser: wasgrp staff

Security reinforcement of user names and groups

/ etc/security/passwd

The ADMCHG entry in the flags entry indicates that the password needs to be changed when logging in for the first time. It is worth noting that if the user has root permission, it is not the user's password but the password of the root account that is changed for the first time, so be very careful.

Wasuser:

Password = Ie3Mxk0R8TCuw

Lastupdate = 1384161772

Flags = ADMCHG

/ etc/security/user

There are many items in this file, of which the most commonly used are as follows:

Admin = whether this is the administrator or not

Login = whether this represents whether you can log in as ssh or telnet, and if it is only a user of ftp, this can be set to false

Rlogin = whether you can rlogin

Umask = user's permission to create files after login

Maxexpired = user password expiration time in weeks

Loginretries = the number of passwords that the user can try

There are many items, you can check the / etc/security/user file, which has a very detailed explanation.

After reading the above, have you mastered how AIX can increase users and groups? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Tags: User password file login representative content method more permission first time problem security helpless for this unit reason this belonging skill way Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Shulou Technology macOS Apple Docker