66

Day6-2 用户和组-xlonelx的博客-51CTO博客

 6 years ago
source link: http://blog.51cto.com/13582610/2065785
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
useradd[username]新建用户-u[userID]指定用户ID-g[groupname]指定新用户属于某个组-d[path]指定用户家目录-s[path]指定shell-M不创建家目录若新建用户未创建家目录,后来要创建,不能只创建一个以用户名为名的家目录,还需要配置文件,并更改为对应用户所有者及所属组模板文件可以从/etc/skel/复制userdel[username]删除用户(不删

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK