- 論壇徽章:
- 0
|
本帖最后由 772790405 于 2014-03-05 12:48 編輯
請教各位一個(gè)問題,我在查詢系統(tǒng)中有哪些用戶是可用的時(shí)候出現(xiàn)這樣一個(gè)問題:/etc/passwd里的
root:*:0:3::/:/sbin/sh 里面的*號按道理是代表用戶是不可用的,但現(xiàn)在 root都是*,這是怎么回事呢?系統(tǒng)版本都是11.31的
機(jī)器一
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查詢 這里沒有用戶的狀態(tài)顯示
=== 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
機(jī)器二
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
... |
|