系統(tǒng)文件驗(yàn)證命令pwck用法示例【每日一個(gè)知識(shí)點(diǎn)第190期-Linux】
pwck命令用來(lái)驗(yàn)證系統(tǒng)認(rèn)證文件/etc/passwd
和/etc/shadow
的內(nèi)容和格式的完整性。
語(yǔ)法
pwck(選項(xiàng))(參數(shù))
選項(xiàng)
-q:僅報(bào)告錯(cuò)誤信息;
-s:以用戶(hù)id排序文件“/etc/passwd”和“/etc/shadow”;
-r:只讀方式運(yùn)行指令。
參數(shù)
- 密碼文件:指定密碼文件的路徑;
- 影子文件:指定影子文件的路徑。
實(shí)例
pwck /etc/passwd
user 'lp': directory '/var/spool/lpd' does not exist
user 'news': directory '/var/spool/news' does not exist
user 'uucp': directory '/var/spool/uucp' does not exist
user 'www-data': directory '/var/www' does not exist
user 'list': directory '/var/list' does not exist
user 'irc': directory '/var/run/ircd' does not exist
user 'gnats': directory '/var/lib/gnats' does not exist
user 'nobody': directory '/nonexistent' does not exist
user 'syslog': directory '/home/syslog' does not exist
user 'couchdb': directory '/var/lib/couchdb' does not exist
user 'speech-dispatcher': directory '/var/run/speech-dispatcher' does not exist
user 'usbmux': directory '/home/usbmux' does not exist
user 'haldaemon': directory '/var/run/hald' does not exist
user 'pulse': directory '/var/run/pulse' does not exist
user 'saned': directory '/home/saned' does not exist
user 'hplip': directory '/var/run/hplip' does not exist
pwck:無(wú)改變
《Linux學(xué)習(xí)每日一個(gè)知識(shí)點(diǎn)》欄目是馬哥教育Linux云計(jì)算年薪20萬(wàn)+的學(xué)員社群特別發(fā)起,分享Linux工具、Linux語(yǔ)法、Linux項(xiàng)目等知識(shí)點(diǎn),幫助大家快速的了解Linux學(xué)習(xí),快速步入Linux高薪的快車(chē)道。
http://www.vfuj.cn/74163.html