用户的管理

  

,,,,,,,,,,,,,,,,,,useraddusermodpasswduserdel

,,,,,,,,,,,,,,,,,,groupaddgroupmodgpasswdgroupdel

,,,,,,,,,,,,,,,,,,恰克,chsh chfn

,,,,,,,,,,,,,,,,,,id, w, whoami

,,,,,,,,,,,,,,,,,,苏

,

useradd

,

- r:

,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,uuid: UID

,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-gGID:

,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,- c 'COMMENT '

,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,- d/道路//地方/etc/skel

,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-sSHELLshell

,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,猫/etc/壳

,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-GGID…

,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,- m:

OracledatabasesqlID3000,/home/database

[root@localhost  ~] #, groupadd  database ,,,,,首先创建两个附加的组   (root@localhost  ~) #, groupadd  sql   (root@localhost  ~) #, useradd  -G 数据库,sql-u  3000年,-d /home/database  Oracle   (root@localhost  ~) #, tail /etc/group ,,查看创建的用户   保险丝:x: 494:   sshd: x: 74:   stapusr: x: 156:   stapsys: x: 157:   stapdev: x: 158:   tcpdump: x: 72:   slocate: x: 21:   数据库:x: 500:甲骨文   sql: x: 501:甲骨文   Oracle: x: 3000:   (root@localhost  ~) #, tail  1/etc/组   Oracle: x: 3000:   (root@localhost  ~) #, tail  1,/etc/passwd   Oracle: x: 3000:3000::/home/数据库:/bin/bash   [root@localhost  ~) #

,

groupadd

,,,,,,,,,,,,,,,,,,,,,,,,,,,groupadd[选项]GROUPNAME

,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,-gGID: ID

,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,- r

用户的管理