YouTip LogoYouTip

Linux Comm Passwd

# Linux passwd Command [![Image 3: Linux Command Manual](#) Linux Command Manual](#) The Linux passwd command is used to change a user's password. ### Syntax passwd [-u ] **Required Parameters**: * -d Delete password * -f Force the user to change their password at next login * -w Number of days before password expiration to warn the user * -k Update only if the password has expired * -l Lock the account * -S Display password status information * -u Unlock a locked account * -x Set the maximum number of days a password is valid * -g Change group password * Set the minimum number of days a password must be used * -i Number of days after password expiration to disable the account **Optional Parameters**: * --help Display help information * --version Display version information ### Examples Change a user's password # passwd //Set the password for user tutorialEnter new UNIX password: //Enter the new password, no echo is displayedRetype new UNIX password: //Confirm the password passwd: password updated successfully # Display account password information # passwd -S P 05/13/2010 0 99999 7 -1 Delete a user's password # passwd -d lx138 passwd: password expiry information changed. [![Image 4: Linux Command Manual](#) Linux Command Manual](#)
← C Passing Arrays To FunctionsDom Obj Param β†’