Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use the pwck command in Linux

Shulou Source: shulou.com Published: 2022-06-01 18:05:02 10月02日 Update

This article mainly introduces how to use the pwck command in Linux. It is very detailed and has a certain reference value. Friends who are interested must finish it!

The Linux common command pwck command is used to verify the integrity of the content and format of the system authentication files / etc/passwd and / etc/shadow.

Pwck is used to verify the integrity of the content and format of the system authentication file.

Syntax pwck (options) (parameters) option-Q: only error messages are reported;-s: sort files "/ etc/passwd" and "/ etc/shadow" by user id;-r: run instructions read-only. Parameter password file: specify the path to the password file

Shadow file: specifies the path to the shadow file.

Example 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: no change. This is all about the article "how to use pwck commands in Linux". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: File command content parameter integrity password shadow format article system path authentication verification value information interest example buddy partner commonly used Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Docker vpn Microsoft Shulou Information