当前位置: 技术问答>linux和unix
这些用户组如何建立?
来源: 互联网 发布时间:2016-11-16
本文导语: [root@localhost ~]# cat /etc/group root:x:0:root bin:x:1:root,bin,daemon daemon:x:2:root,bin,daemon sys:x:3:root,bin,adm adm:x:4:root,adm,daemon tty:x:5: disk:x:6:root lp:x:7:daemon,lp mem:x:8: kmem:x:9: wheel:x:10:root mail:x:12:mail news:x:13:news uucp:x:14:uucp man:x:15: games:x...
[root@localhost ~]# cat /etc/group
root:x:0:root
bin:x:1:root,bin,daemon
daemon:x:2:root,bin,daemon
sys:x:3:root,bin,adm
adm:x:4:root,adm,daemon
tty:x:5:
disk:x:6:root
lp:x:7:daemon,lp
mem:x:8:
kmem:x:9:
wheel:x:10:root
mail:x:12:mail
news:x:13:news
uucp:x:14:uucp
man:x:15:
games:x:20:
gopher:x:30:
dip:x:40:
ftp:x:50:
lock:x:54:
nobody:x:99:
users:x:100:
audio:x:63:
nscd:x:28:
floppy:x:19:
vcsa:x:69:
utmp:x:22:
rpc:x:32:
mailnull:x:47:
smmsp:x:51:
pcap:x:77:
utempter:x:35:
slocate:x:21:
dbus:x:81:
avahi:x:70:
sshd:x:74:
rpcuser:x:29:
nfsnobody:x:65534:
haldaemon:x:68:
avahi-autoipd:x:101:
这些用户组的GID都小于500,这样的组是如何建立的?
root:x:0:root
bin:x:1:root,bin,daemon
daemon:x:2:root,bin,daemon
sys:x:3:root,bin,adm
adm:x:4:root,adm,daemon
tty:x:5:
disk:x:6:root
lp:x:7:daemon,lp
mem:x:8:
kmem:x:9:
wheel:x:10:root
mail:x:12:mail
news:x:13:news
uucp:x:14:uucp
man:x:15:
games:x:20:
gopher:x:30:
dip:x:40:
ftp:x:50:
lock:x:54:
nobody:x:99:
users:x:100:
audio:x:63:
nscd:x:28:
floppy:x:19:
vcsa:x:69:
utmp:x:22:
rpc:x:32:
mailnull:x:47:
smmsp:x:51:
pcap:x:77:
utempter:x:35:
slocate:x:21:
dbus:x:81:
avahi:x:70:
sshd:x:74:
rpcuser:x:29:
nfsnobody:x:65534:
haldaemon:x:68:
avahi-autoipd:x:101:
这些用户组的GID都小于500,这样的组是如何建立的?
|
GID小于500的组,都是用于系统管理的,一般是系统自动创建的.
用groupadd -r可以创建小于500的
$ man groupadd
-r
This flag instructs groupadd to add a system account. The first available
gid lower than 500 will be automatically selected unless the -g option is
also given on the command line. This is an option added by Red Hat.
用groupadd -r可以创建小于500的
$ man groupadd
-r
This flag instructs groupadd to add a system account. The first available
gid lower than 500 will be automatically selected unless the -g option is
also given on the command line. This is an option added by Red Hat.