02.07.2013 Views

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

passwd(4) passwd(4)<br />

a non-null string of characters from the above alphabet. (S uch a<br />

string must be introduced in the first instance by the superuser.)<br />

The first character of the age, M say, denotes the maximum<br />

number of weeks for which a password is valid. A user who attempts<br />

to login after his password has expired will be forced to<br />

supply a new one. The next character, m say, denotes the<br />

minimum period in weeks which must expire before the password<br />

may be changed. The remaining characters define the week<br />

(counted from the beginning of 1970) when the password was last<br />

changed. (A null string is equivalent to zero.) M and m have numerical<br />

values in the range (}-63 that correspond to the 64character<br />

alphabet shown above (Le., / = 1 week; z = 63 weeks).<br />

If m = M = 0 (derived from the string. or .. ) the user will be<br />

forced to change his password the next time he logs in (and the<br />

"age" will disappear from his entry in the password file). If m ><br />

M (signified, e.g., by the string . /) only the superuser will be able<br />

to change the password.<br />

The passwd file can also have line beginning with a plus (+),<br />

which means to incorporate entries from the yellow pages. There<br />

are three styles of + entries: all by itself, + means to insert the entire<br />

contents of the yellow pages password file at that point;<br />

+name means to insert the entry (if any) for name from the yellow<br />

pages at that point; +@name means to insert the entries for all<br />

members of the network group name at that point If a + entry has<br />

a nonnull password, directory, GeOS, or shell field, they will<br />

overide what is contained in the yellow pages. The numeric user<br />

ID and group ID fields cannot be overridden.<br />

EXAMPLES<br />

Here is a sample / etc/passwd file:<br />

root:q.mJzTnu8icF.:O:10:God:/:/bin/csh<br />

ja:6k/7KCFRPNVXg:508:10:Jerry Asher:/usr2/ja:/bin/csh<br />

+melissa:<br />

+@documentation:no-login:<br />

+:: :Guest<br />

In this example, there are specific entries for users root and ja,<br />

in case the yellow pages are out of order. The user me 1 iss a will<br />

have her password entry in the yellow pages incorporated without<br />

change; anyone in the netgroup documentation will have their<br />

password field disabled, and anyone else will be able to log in<br />

with their usual password, shell, and home directory, but with a<br />

GeOS field of Gue st.<br />

February, 1990<br />

Revision C<br />

2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!