PASSWD(1) COMMAND REFERENCE PASSWD(1) NAME passwd - change login password SYNOPSIS passwd [ -f filename ] [ userid] DESCRIPTION This command changes (or installs) a password associated with the user userid (your own user name by default). The program prompts for the old password and then prompts for the new password; the caller must supply both. The new password must be typed twice, to forestall mistakes. New passwords must be at least four characters long if they use a sufficiently rich alphabet and at least six characters long if monocase; at least one non-numeric character is required. These rules are relaxed if you are insistent enough. Only the owner of the name or the superuser may change a password; the owner must prove he or she knows the old password. Use yppasswd to change your password in the network Yellow Pages; this will not affect your local password, or your password on any remote machines on which you have accounts. OPTIONS -ffilename Treat file as the password file. EXAMPLES To change your own password, execute the command passwd with no arguments. You will be prompted for all required information. passwd Changing old password for username Old password: New password: Retype new password: FILES /etc/passwd System user account information file /etc/yp/passwd Yellow Pages user account information file Printed 5/12/88 1
PASSWD(1) COMMAND REFERENCE PASSWD(1) RETURN VALUE [NO_ERRS] Command completed without error. [USAGE] Incorrect command line syntax. Execution terminated. [NP_WARN] An error warranting a warning message occurred. Execution continues. [P_WARN] A system error occurred. Execution continues. See intro(2) for more information on system errors. [NP_ERR] An error occurred that was not a system error. Execution terminated. [P_ERR] A system error occurred. Execution terminated. See intro(2) for more information on system errors. SEE ALSO login(1), crypt(3c), passwd(5), and yppasswd(1). CAVEATS The passwd command changes a local password, but does not change a password in the network Yellow Pages. Refer to yppasswd(1) for information on how to change a Yellow Pages password. Printed 5/12/88 2
%%index%% na:288,82; sy:370,236; de:606,1056; op:1662,181; ex:1843,452; fi:2295,245; rv:2900,836; ca:3928,385; se:3736,192; %%index%%000000000147