- 论坛徽章:
- 0
|
本帖最后由 772790405 于 2014-03-05 12:48 编辑
请教各位一个问题,我在查询系统中有哪些用户是可用的时候出现这样一个问题:/etc/passwd里的
root:*:0:3::/:/sbin/sh 里面的*号按道理是代表用户是不可用的,但现在 root都是*,这是怎么回事呢?系统版本都是11.31的
机器一
root@sdds1:/# more /etc/passwd
root:*:0:3::/:/sbin/sh
daemon:*:1:5::/:/sbin/sh
bin:*:2:2::/usr/bin:/sbin/sh
sys:*:3:3::/:
adm:*:4:4::/var/adm:/sbin/sh
uucp:*:5:3::/var/spool/uucppublic:/usr/lbin/uucp/uucico
lp:*:9:7::/var/spool/lp:/sbin/sh
nsuucp:*:11:11::/var/spool/uucppublic:/usr/lbin/uucp/uucico
hpdb:*:27:1:ALLBASE:/:/sbin/sh
nobody:*:-2:-2::/:
www:*:30:1::/:
...
oracle:*:500:601::/oracle:/usr/bin/ksh
....
SAM查询 这里没有用户的状态显示
=== Accounts for Users and Groups (pmhnpdb1) (1) k
xFile List View Options Actions Help x
x Press CTRL-K for keyboard help. x
xTemplate In Use: None x
xFiltering: Displaying all users x
xqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqx
xUsers 0 of 24 selectedx
xqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqx
x Login User ID Primary x
x Name (UID) Real Name Group x
xlqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x
xx adm 4 adm ^ x
xx bin 2 bin x
xx cimsvr 102 WBEM Services cimsrvr x
xx daemon 1 daemon x
xx dbmt 111 oinstall x
xx dss 109 oinstall x
xx hpsdb 27 ALLBASE other x
xx hs 108 users x
xx hpsmh 103 System Management Homepage hpsmh x
xx iwww 106 other v x
x < >j x
x x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
机器二
more /etc/passwd
root BSsdsG5gwdsdFw:0:3::/:/sbin/sh
daemon:*:1:5::/:/sbin/sh
bin:*:2:2::/usr/bin:/sbin/sh
sys:*:3:3::/:
adm:*:4:4::/var/adm:/sbin/sh
uucp:*:5:3::/var/spool/uucppublic:/usr/lbin/uucp/uucico
...
iwww:*:105:1::/home/iwww:/sbin/sh
owww:*:106:1::/home/owww:/sbin/sh
hpsmh:*:107:104:System Management Homepage:/var/opt/hpsmh:/sbin/sh
tftp:*:108:105:Trivial FTP user:/home/tftp:/usr/bin/false
oracle:esJsdUsUjo:109:108:,,,:/home/oracle:/usr/bin/sh
opc_op:*:777:77:OpC default operator:/home/opc_op:/usr/bin/ksh
ovwebusr:*:110:107:HP OpenView TomcatB Servlet Container:/home/ovwebusr:/usr/bin/false
hpims:*:111:20::/home/hpims:/sbin/sh
hp:*:112:20::/home/hp:/sbin/sh
tmp:*:113:20::/home/tmp:/sbin/sh
SAM查询 在这里就很容易看到那些用户是可用的。
Login Name User ID Primary Group Real Name Account Status
=============================================================================================================================
=======
root 0 sys Enabled
daemon 1 daemon Disabled
bin 2 bin Disabled
sys 3 sys Disabled
adm 4 adm Disabled
uucp 5 sys Disabled
lp 9 lp Disabled
nuucp 11 nuucp Disabled
...
sfmdb 103 users Disabled
sshd 104 sshd sshd privsep Disabled
iwww 105 other Disabled
owww 106 other Disabled
hpsmh 107 hpsmh System Manag... Disabled
tftp 108 tftp Trivial FTP ... Disabled
oracle 109 oinstall ,,, Enabled
opc_op 777 opcgrp OpC default ... Disabled
... |
|