- 论坛徽章:
- 0
|
不用直接编辑吧?那么麻烦?\r\n\r\n\r\nman passwd\r\n\r\n -n min Sets minimum field for name. The min\r\n field contains the minimum number of\r\n days between password changes for name.\r\n If min is greater than max, the user can\r\n not change the password. Always use this\r\n option with the -x option, unless max is\r\n set to -1 (aging turned off). In that\r\n case, min need not be set.\r\n\r\n -u Unlocks a locked password for entry\r\n name. See the -d option for removing the\r\n locked password, or to set a password to\r\n allow logins.\r\n\r\n -w warn Sets warn field for name. The warn field\r\n contains the number of days before the\r\n password expires and the user is warned.\r\n This option is not valid if password\r\n aging is disabled.\r\n\r\n -x max Sets maximum field for name. The max\r\n field contains the number of days that\r\n the password is valid for name. The\r\n aging for name is turned off immediately\r\n if max is set to -1.\r\n\r\n\r\n#passwd -w 30 -x 31 user1 用来30天就通知更改。 |
|