Chinaunix首页 | 论坛 | 博客
  • 博客访问: 181374
  • 博文数量: 36
  • 博客积分: 2500
  • 博客等级: 少校
  • 技术积分: 445
  • 用 户 组: 普通用户
  • 注册时间: 2007-09-26 10:26
文章分类

全部博文(36)

文章存档

2010年(3)

2009年(18)

2008年(15)

我的朋友

分类:

2009-04-03 22:02:21

命令:chpasswd
Examples
       1    To set passwords for users from the command line, type:
            chpasswd
            Followed by entering username:password pairs, one pair per line.
            Enter CTRL+D when finished.
            user1:passwd1
            user2:passwd2
            CTRL+D
       2    To set passwords for users contained in a file named mypwdfile,
            type the following:
            cat mypwdfile | chpasswd
            Note that mypwdfile must contain username:password pairs; one pair
            per line. For example:
            user1:passwd1
            user2:passwd2
            ...
 
 
阅读(1081) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~