+ -
当前位置:首页 → 问答吧 → linux /etc/shadow下 * 号代表什么意思?

linux /etc/shadow下 * 号代表什么意思?

时间:2011-01-12

来源:互联网

gopher:*:14553:0:99999:7:::
ftp:*:14553:0:99999:7:::
nobody:*:14553:0:99999:7:::
rpm:!!:14553:0:99999:7:::
dbus:!!:14553:0:99999:7:::

这里的 gopher:*: 中的 * 号代表什么意思? 为什么与rpm不一样?

作者: yby123   发布时间: 2011-01-12

没意思,!!记得好像是空密码

作者: vermouth   发布时间: 2011-01-12

!!是拒绝登录;
*是没有密码;

好像是这么理解的。

作者: marsaber   发布时间: 2011-01-12

``*'' entry (eg. :* indicates the account has been disabled.

作者: jerryjzm   发布时间: 2011-01-12

/etc/shadow usually contains the following user information:
User login name
salt and hashed password OR a status exception value e.g.:
"NP" or "!" or null - No password, the account has no password.
"LK" or "*" - the account is Locked, user will be unable to log-in
"!!" - the password has expired

来自wiki
那就是 空密码=::;  账号被锁=:*:;  密码过期=:!!:

作者: jerryjzm   发布时间: 2011-01-12

有些账户系统默认是禁用的     别的用户 passwd -l  user     也出现 !!

作者: taojie2000   发布时间: 2011-01-12