📄 passwd.5yp
字号:
.\" SCCSID: @(#)passwd.5yp 8.1 9/11/90.TH passwd 5yp.SH Namepasswd \- password file description with the Yellow Pages service implemented.SH Description.NXR "passwd file (YP)" "format"The .PN passwdfile stores initial login information, including passwordsfor each user in the system.Regardless of whether or not the system has the Yellow Pages serviceimplemented, the.PN passwdfile contains thefollowing information:.HP 10Name (login name, contains no uppercase).br.ns.HP 10Encrypted password.br.ns.HP 10Numerical user ID.br.ns.HP 10Numerical group ID.br.ns.HP 10User's real name, office, extension, home phone..br.ns.HP 10Initial working directory.br.ns.HP 10Program to use as Shell.PPThe name can contain an ampersand (&), meaning insert the login name.This information is set by the.MS chfn 1command and used by the.MS finger 1command..PPThis is an ASCII file. Each field within each user's entryis separated from the next by a colon.Each user is separated from the next by a new line.If the password field is null, no password is demanded;if the shell field is null, the system defaults to the .PN /bin/shshell..PPThis file resides in the .PN /etcdirectory.Because of the encryptedpasswords, it can and does have general readpermission and can be used, for example,to map numerical user IDs to names..PPAppropriate precautions must be taken to lock the.PN /etc/passwdfile against simultaneous changes if it is tobe edited with a text editor.The.PN vipwcommand does the necessary locking..PPIn a Yellow Pages environment, the.PN passwdfile can also have a line beginning with a plus (+),which means to incorporate entries from the Yellow Pages data base.There are three styles of + entries:by itself, + means to insert the entire contentsof the Yellow Pages password file at that point;.I +namemeans to insert the entry (if any) for.I namefrom the Yellow Pages at that point;.I +@namemeans to insert the entries for all members of the network group.I nameat that point.If a + entry has a nonnull password, directory, gecos, or shell field,it will override what is contained in the Yellow Pages.The numerical user ID and group ID fields cannot be overridden..SH Examples.PPHere is a sample .PN /etc/passwdfile:.EXroot:q.mJzTnu8icF.:0:10:Privileged Account:/:/bin/cshjcj:6k/7KCFRPNVXg:508:10:JC Javert:/usr2/jcj:/bin/csh+john:+@documentation:no-login:+:::Guest.EE.PPIn this example, there are specific entries for users.I rootand.I jcj,in case the Yellow Pages are temporarily out of service.Alternatively, a user may need specific login information on a givensystem that differs from the information contained in the Yellow Pagesmap for that user.The user, john,will have his password entry in the Yellow Pagesincorporated without change.Anyone in the netgroup.I documentationwill have their password field disabled,and anyone else will be able to log in with their usual password,shell, and home directory, but with a gecos field of.I Guest..SH Files.PN /etc/passwd.SH See Alsochfn(1), finger(1), login(1), passwd(1), crypt(3),getpwent(3), group(5), adduser(8), vipw(8)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -