1PASSMASS(1) General Commands Manual PASSMASS(1)
2
3
4
6 passmass - change password on multiple machines
7
9 passmass [ host1 host2 host3 ... ]
10
12 Passmass changes a password on multiple machines. If you have accounts
13 on several machines that do not share password databases, Passmass can
14 help you keep them all in sync. This, in turn, will make it easier to
15 change them more frequently.
16
17 When Passmass runs, it asks you for the old and new passwords. (If you
18 are changing root passwords and have equivalencing, the old password is
19 not used and may be omitted.)
20
21 Passmass understands the "usual" conventions. Additional arguments may
22 be used for tuning. They affect all hosts which follow until another
23 argument overrides it. For example, if you are known as "libes" on
24 host1 and host2, but "don" on host3, you would say:
25
26 passmass host1 host2 -user don host3
27
28 Arguments are:
29
30 -user
31 User whose password will be changed. By default, the cur‐
32 rent user is used.
33
34
35 -rlogin
36 Use rlogin to access host. (default)
37
38
39 -slogin
40 Use slogin to access host.
41
42
43 -telnet
44 Use telnet to access host.
45
46
47 -program
48
49 Next argument is a program to run to set the password.
50 Default is "passwd". Other common choices are "yppasswd"
51 and "set passwd" (e.g., VMS hosts). A program name such as
52 "password fred" can be used to create entries for new
53 accounts (when run as root).
54
55
56 -prompt
57 Next argument is a prompt suffix pattern. This allows the
58 script to know when the shell is prompting. The default is
59 "# " for root and "% " for non-root accounts.
60
61
62 -timeout
63 Next argument is the number of seconds to wait for
64 responses. Default is 30 but some systems can be much
65 slower logging in.
66
67
68 -su
69
70 Next argument is 1 or 0. If 1, you are additionally
71 prompted for a root password which is used to su after log‐
72 ging in. root's password is changed rather than the user's.
73 This is useful for hosts which do not allow root to log in.
74
75
77 The best way to run Passmass is to put the command in a one-line shell
78 script or alias. Whenever you get a new account on a new machine, add
79 the appropriate arguments to the command. Then run it whenever you
80 want to change your passwords on all the hosts.
81
82
84 Using the same password on multiple hosts carries risks. In particu‐
85 lar, if the password can be stolen, then all of your accounts are at
86 risk. Thus, you should not use Passmass in situations where your pass‐
87 word is visible, such as across a network which hackers are known to
88 eavesdrop.
89
90 On the other hand, if you have enough accounts with different pass‐
91 words, you may end up writing them down somewhere - and that can be a
92 security problem. Funny story: my college roommate had an 11"x13"
93 piece of paper on which he had listed accounts and passwords all across
94 the Internet. This was several years worth of careful work and he car‐
95 ried it with him everywhere he went. Well one day, he forgot to remove
96 it from his jeans, and we found a perfectly blank sheet of paper when
97 we took out the wash the following day!
98
100 "Exploring Expect: A Tcl-Based Toolkit for Automating Interactive Pro‐
101 grams" by Don Libes, O'Reilly and Associates, January 1995.
102
104 Don Libes, National Institute of Standards and Technology
105
106
107
108 7 October 1993 PASSMASS(1)