theshell.ch/site/pages/cmd/interm/passwd1.html
feninf 805828caa7 interm-team: added three commands
git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@84 a672b425-5310-4d7a-af5c-997e18724b81
2018-11-10 13:13:07 +00:00

36 lines
1.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
layout: page
category: Intermediate commands
tags: password
author: Fabiano Fenini
title: PASSWD
previous-page: ""
---
<p>The <code>passwd</code> command allows us to change or to assign a password of authentication of an user currently in the system. When the user doesnt have particular privileges, he is only able to change is password, while the root user has the possibility to change also other users passwords.<br>
The name stands for <i>password</i>.
<h2>Usage<h2>
<p>The default passwd command syntax is:
<pre>
passwd [flags] [user]
</pre>
Where [flags] are the passwd flags, read below for more info, the parameter [user] can only be specified by the root user. If no user is provided, passwd proceed to set the password of the user who uses this command. You will first be asked to enter the user password.
</p>
<h2>Flags<h2>
<p>Here are some of the most common passwd flags:
<ul>
<li> <b>-d</b>: Delete the user password </li>
<li> <b>-h</b>: Get information about how to use this command </li>
<li> <b>-l</b>: Lock the password </li>
<li> <b>-u</b>: Unlock the password </li>
<li> <b>-S</b>: See the account status information </li>
</ul>
</p>