Monday 14, Apr 2025
We are moved to new domain
Click -> www.ehowtonow.com
Wednesday, 23 August 2017

Create or change a password using passwd Linux Command

passwd

passwd [options] [user]

Create or change a password associated with a user name. Only the owner or a privileged user may change a password. Owners need not specify their user name. Users can change their own passwords. For any other operation, you must be root.

Options

-d, --delete
Delete the password for the user's account.

-f, --force
Force the operation. Overrides -u.

-?, --help
Display a help message describing the options. See also --usage.

-i days, --inactive=days
Set the number of days after a password has expired before the account is disabled.

-k, --keep-tokens
Keep passwords (authentication tokens) that have not expired.

-l, --lock
Lock the user's account.

-n days, --minimum=days
Set the minimum number of days that the password is valid.

-S, --status
Print the status of the user's password.

--stdin
Read new passwords from standard input.

-u, --unlock
Unlock the user's account

--usage
Display a brief usage message. See also --help.

-w days, --warning=days
Set the number of days of warning users will get before their password expires.

-x days, --maximum=days
Set the maximum number of days that the password is valid.

Shop and help us

Flipkart Offer Snapdeal offer Amazon.in offer Amazon.com offer

Related Posts:

  • fuser Linux Command fuser fuser [options] [files | filesystems] Identifies and outputs the process IDs of processes that are using the files or local filesystems. Each process ID is followed by a letter code: c if process is using file as the… Read More
  • sdiff Linux Command sdiff sdiff -o outfile [options] from to Find differences between the two files from and to and merge interactively, writing the results to outfile. Options -- Treat remaining options as filenames, even if they begin wit… Read More
  • route - Linux Command route route [options] [command] TCP/IP command. Add or remove entries in the routing tables maintained by routed. route accepts two commands: add, to add a route, and del, to delete a route. The two commands have the follo… Read More
  • ping - Linux Command ping ping [options] host System administration command. Confirm that a remote host is online and responding. ping is intended for use in network testing, measurement, and management. Because of the load it can impose on th… Read More
  • echo - Linux Command echo echo [options] [string] Send (echo) the input string to standard output. This is the /bin/echo command. echo also exists as a command built into bash. The following character sequences have special meanings: \a Aler… Read More
  • Blogger Comments
  • Facebook Comments
  • Disqus Comments

0 comments:

Post a Comment

Item Reviewed: Create or change a password using passwd Linux Command Rating: 5 Reviewed By: eHowToNow