在 Oracle® Solaris 11.2 中管理用户帐户和用户环境

退出打印视图

更新时间: 2014 年 9 月
 
 

缺省的 passwd 文件

缺省的 passwd 文件包含标准守护进程的项。守护进程是通常在引导时启动的进程,用来执行某些系统范围的任务(如打印、网络管理或端口监视)。

以下屏幕显示了示例 passwd 文件的内容。


注 -  如果在系统中添加或删除包,则会创建和删除其他用户和组。passwd 文件中反映了这些正在进行的更改。管理员无需清理此文件。
root:x:0:0:Super-User:/root:/usr/bin/bash
daemon:x:1:1::/:
bin:x:2:2::/usr/bin:
sys:x:3:3::/:
adm:x:4:4:Admin:/var/adm:
lp:x:71:8:Line Printer Admin:/:
uucp:x:5:5:uucp Admin:/usr/lib/uucp:
nuucp:x:9:9:uucp Admin:/var/spool/uucppublic:/usr/lib/uucp/uucico
dladm:x:15:65:Datalink Admin:/:
netadm:x:16:65:Network Admin:/:
netcfg:x:17:65:Network Configuration Admin:/:
smmsp:x:25:25:SendMail Message Submission Program:/:
gdm:x:50:50:GDM Reserved UID:/var/lib/gdm:
zfssnap:x:51:12:ZFS Automatic Snapshots Reserved UID:/:/usr/bin/pfsh
upnp:x:52:52:UPnP Server Reserved UID:/var/coherence:/bin/ksh
xvm:x:60:60:xVM User:/:
mysql:x:70:70:MySQL Reserved UID:/:
openldap:x:75:75:OpenLDAP User:/:
webservd:x:80:80:WebServer Reserved UID:/:
postgres:x:90:90:PostgreSQL Reserved UID:/:/usr/bin/pfksh
svctag:x:95:12:Service Tag UID:/:
unknown:x:96:96:Unknown Remote UID:/:
nobody:x:60001:60001:NFS Anonymous Access User:/:
noaccess:x:60002:60002:No Access User:/:
nobody4:x:65534:65534:SunOS 4.x NFS Anonymous Access User:/:
ikeuser:x:67:12:IKE Admin:/:
ftp:x:21:21:FTPD Reserved UID:/:
dhcpserv:x:18:65:DHCP Configuration Admin:/:
aiuser:x:60003:60001:AI User:/:
pkg5srv:x:97:97:pkg(5) server UID:/:

以上屏幕显示了示例 passwd 文件的内容,其中不包含任何说明。下表包含更多内容,提供了标准 passwd 文件中每个守护程序的描述和源包信息。

表 1-3  缺省 passwd 文件中的项
用户名
用户 ID
说明
root
0
为超级用户帐户保留
system/core-os
daemon
1
与例行系统任务相关联的综合系统守护进程
system/core-os
bin
2
与正在运行的系统二进制文件相关联的管理守护进程,用来执行某些例行系统任务
system/core-os
sys
3
与临时目录中的系统日志记录或文件更新相关联的管理守护进程
system/core-os
adm
4
与系统日志记录相关联的管理守护进程
system/core-os
lp
71
为行式打印机守护进程保留
system/core-os
uucp
5
指定给与 uucp 函数关联的守护进程
system/core-os
nuucp
9
指定给与 uucp 函数关联的另一个守护进程
system/core-os
dladm
15
为数据链路管理保留
system/core-os
netadm
16
为网络管理保留
system/core-os
netcfg
17
为网络配置管理保留
system/core-os
smmsp
25
指定给 Sendmail 邮件提交程序守护进程
system/core-os
gdm
50
指定给 GNOME Display Manager 守护进程
system/core-os
zfssnap
51
为自动快照保留
system/core-os
upnp
52
为 UPnP 服务器保留
system/core-os
xvm
60
为 xVM 用户保留
system/core-os
mysql
70
为 MySQL 用户保留
system/core-os
openldap
75
为 OpenLDAP 用户保留
library/ldap
webservd
80
为 WebServer 访问保留
system/core-os
postgres
90
为 PostgresSQL 访问保留
system/core-os
svctag
95
为 Service Tag Registry(服务标签注册表)访问保留
system/core-os
unknown
96
为 NFSv4 ACL 中不可映射的远程用户保留
system/core-os
nobody
60001
为 NFS 匿名访问用户保留
system/core-os
noaccess
60002
为没有访问权限的用户保留
system/core-os
nobody4
65534
为 SunOS 4.x NFS 匿名访问用户保留
system/core-os
ikeuser
67
为 Internet 密钥交换 (Internet Key Exchange, IKE) 访问保留
system/network/ike
ftp
21
为 FTP 访问保留
service/network/ftp
dhcpserv
18
为 DHCP 服务器用户保留
service/network/dhcp/
isc-dhcp
aiuser
60003
为 AI 用户保留
system/install/auto-install/
auto-install-common
pkg5srv
97
pkg(5) depot 服务器保留
package/pkg