pwdadm -c 有什么作用?

pwdadm -c 有什么作用?

如果您针对用户帐户运行 pwdadm -c 并且它会清除 /etc/passwd 中的标志;这些清除的标志会阻止什么情况发生?

答案1

根据手册页,以下是可能会删除的标志pwdadm -c

NOCHECK
    Signifies that new passwords need not follow the guidelines 
    established in the /etc/security/user file for password composition. 
ADMIN
    Specifies that password information may be changed only by the
    root user. Only the root user can enable or disable this attribute. 
ADMCHG
    Resets the ADMCHG attribute without changing the user's password.
    This forces the user to change passwords the next time a login
    command or an su command is given for the user. The attribute is 
    cleared when the user specified by the User parameter resets the 
    password. 

相关内容