Chinaunix首页 | 论坛 | 博客
  • 博客访问: 9061
  • 博文数量: 3
  • 博客积分: 140
  • 博客等级: 入伍新兵
  • 技术积分: 40
  • 用 户 组: 普通用户
  • 注册时间: 2007-09-05 15:35
文章分类
文章存档

2008年(3)

我的朋友
最近访客

分类: LINUX

2008-06-05 11:44:32

                        User Management
1.usermod
    -a             Add the user to the supplemental group(s). Use only with -G option.

    -c             change the comment field.

    -d            change the home directory.

    -e             set date on which the account will expire and will be disabled.

    -g            change the initial login group. The group name must exist.

    -G           A list of supplementary groups which the user is also a
                   member of 
Each group is separated from the next by a comma, with no intervening whitespace. The groups are subject to the  same.
    -l            change the login name

    -u            change the login uid,This field must be unique.Unless use -o
                  option.Any files which the user owns and which are located in
                  the directory tree rooted at the user’s home directory will
                  have the file user ID changedautomatically.Files outside of the
                  user’s home directory must be altered manually.
    -p            change the string in the password field.This must be the
                  encrypted password.

    -L            lock the password.This renders the account unusable.

    -U            unlock the password.

    -s            change the login shell.
   

阅读(680) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:LFS播放音乐

给主人留下些什么吧!~~