当前位置: 技术问答>linux和unix
@@@@@@@@@@@@@如何在linux下新建用户密码????
来源: 互联网 发布时间:2014-12-08
本文导语: @@@@@@@@@@@@@如何在linux下新建用户密码???? | #useradd #passwd | 最简单的方法: #useradd #passwd 足矣 | 先建一个CVS用户组, groupadd cvs 然后在这个分组中,添...
@@@@@@@@@@@@@如何在linux下新建用户密码????
|
#useradd
#passwd
#passwd
|
最简单的方法:
#useradd
#passwd
足矣
#useradd
#passwd
足矣
|
先建一个CVS用户组,
groupadd cvs
然后在这个分组中,添加用户
useradd user1 -g cvs
useradd user2 -g cvs
然后改变用户口令
将CVSROOT目录对于cvs组可读
建议参看CVS配置手册!
CVS 可是个好东东阿!
祝你成功!
Does a good farmer neglect a crop he has planted?
Does a good teacher overlook even the most humble student?
Does a good father allow a single child to starve?
Does a good programmer refuse to maintain his code?
-- Geoffrey James, "The Tao of Programming"
groupadd cvs
然后在这个分组中,添加用户
useradd user1 -g cvs
useradd user2 -g cvs
然后改变用户口令
将CVSROOT目录对于cvs组可读
建议参看CVS配置手册!
CVS 可是个好东东阿!
祝你成功!
Does a good farmer neglect a crop he has planted?
Does a good teacher overlook even the most humble student?
Does a good father allow a single child to starve?
Does a good programmer refuse to maintain his code?
-- Geoffrey James, "The Tao of Programming"
|
如果你是root,则:
passwd 用户名
系统就提示你输入新的口令。
passwd 用户名
系统就提示你输入新的口令。
|
passwd
|
$su - root
$passwd:woowindice (黑山老妖)
#passwd woowindice (黑山老妖)
提示:
Changing password for user woowindice (黑山老妖).
New password:
BAD PASSWORD: it is too short
Retype new password:
passwd: all authentication tokens updated successfully.
哈哈哈,祝你好运,妖魔
$passwd:woowindice (黑山老妖)
#passwd woowindice (黑山老妖)
提示:
Changing password for user woowindice (黑山老妖).
New password:
BAD PASSWORD: it is too short
Retype new password:
passwd: all authentication tokens updated successfully.
哈哈哈,祝你好运,妖魔