|
|
1.1 ! root 1: .TH PASSWD 1 ! 2: .CT 1 comm_term sa_mortals secur ! 3: .SH NAME ! 4: passwd \(mi change login password ! 5: .SH SYNOPSIS ! 6: .B passwd ! 7: [ ! 8: .B -an ! 9: ] ! 10: [ ! 11: .I name ! 12: ] ! 13: .SH DESCRIPTION ! 14: This command changes a password ! 15: associated with the user ! 16: .IR name ! 17: (your own name by default). ! 18: .PP ! 19: The program prompts for the old password and then for the new one. ! 20: The caller must supply both. ! 21: The new password must be typed twice, to forestall mistakes. ! 22: .PP ! 23: New passwords must be at least four characters long if they use ! 24: a sufficiently rich alphabet and at least six characters long ! 25: if monocase. ! 26: These rules are relaxed if you are insistent enough. ! 27: .PP ! 28: Only the owner of the name or the super-user may change a password; ! 29: the owner must prove he knows the old password. ! 30: .PP ! 31: If the ! 32: .B -a ! 33: option is given, ! 34: .I passwd ! 35: prompts for new values of certain fields of the ! 36: password file entry. ! 37: .PP ! 38: The super-user may use the ! 39: .B -n ! 40: option to install new users. ! 41: The prompts are self-explanatory, ! 42: and most of the defaults obvious. ! 43: A null response to the ! 44: .L UID: ! 45: prompt ! 46: assigns a numeric userid one greater than the ! 47: largest one previously in ! 48: .FR /etc/passwd . ! 49: A null response to ! 50: .L Directory: ! 51: assigns a home directory in ! 52: .FR /usr . ! 53: If the first character of the response to this ! 54: prompt is an asterisk, the remaining characters ! 55: are taken as the name of the new user's home ! 56: directory, and a symbolic link to this directory ! 57: is placed in ! 58: .FR /usr . ! 59: .PP ! 60: If ! 61: .F /etc/stdprofile ! 62: exists, each new user's home directory starts with a file name ! 63: .FR .profile , ! 64: which is a copy of ! 65: .F /etc/stdprofile ! 66: with ! 67: .B \eN ! 68: replaced by the user's name, and ! 69: .B \eD ! 70: replaced by the name of the home directory. ! 71: .SH FILES ! 72: .F /etc/passwd ! 73: .br ! 74: .F /etc/stdprofile ! 75: .SH "SEE ALSO" ! 76: .IR crypt (3) ! 77: .IR passwd (5) ! 78: .br ! 79: Robert Morris and Ken Thompson, ! 80: `UNIX password security,' ! 81: .I AT&T Bell Laboratories Technical Journal ! 82: 63 (1984) 1649-1672 ! 83: .SH BUGS ! 84: The password file information should be kept in a different data structure ! 85: allowing indexed access.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.