ubase

suckless linux base utils
git clone git://git.2f30.org/ubase
Log | Files | Refs | README | LICENSE

commit 5980da83e7f99eab4cbfe31ff11afcec386adee5
parent 60500e376a85653a1417d8597cfb74ff147960d7
Author: sin <sin@2f30.org>
Date:   Mon,  9 Jun 2014 16:40:00 +0100

Add passwd manpage

Diffstat:
Apasswd.1 | 13+++++++++++++
Mpasswd.c | 2+-
Msu.1 | 4++--
Msu.c | 2+-
4 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/passwd.1 b/passwd.1 @@ -0,0 +1,13 @@ +.TH PASSWD 1 ubase-VERSION +.SH NAME +\fBpasswd\fR - Change a user's password +.SH SYNOPSIS +\fBpasswd\fR \fIusername\fR +.SH DESCRIPTION +\fBpasswd\fR changes the user's password. The user is prompted +for their current password. If the current password is correctly typed, +a new password is requested. The new password must be entered twice to +avoid typing errors. The superuser is not required to provide a user's +current password. +.SH BUGS +Currently there's no shadow support. diff --git a/passwd.c b/passwd.c @@ -15,7 +15,7 @@ static void usage(void) { - eprintf("usage: %s login\n", argv0); + eprintf("usage: %s username\n", argv0); } int diff --git a/su.1 b/su.1 @@ -2,13 +2,13 @@ .SH NAME \fBsu\fR - Run a command with a substitute user and group ID .SH SYNOPSIS -\fBsu\fR [\fB-lp\fR] [\fIuser\fR] +\fBsu\fR [\fB-lp\fR] [\fIusername\fR] .SH DESCRIPTION \fBsu\fR allows to run commands with a substitute user and group ID. When called without arguments, su defaults to running an interactive shell as root. For backward compatibility su defaults to not change the current directory and to only set the environment variables \fBHOME\fR and \fBSHELL\fR -(plus \fBUSER\fR and \fBLOGNAME\fR if target \fIuser\fR is not root). +(plus \fBUSER\fR and \fBLOGNAME\fR if the target \fIusername\fR is not root). .SH OPTIONS .TP \fB-l\fR diff --git a/su.c b/su.c @@ -18,7 +18,7 @@ static int dologin(struct passwd *); static void usage(void) { - eprintf("usage: %s [-lp] [user]\n", argv0); + eprintf("usage: %s [-lp] [username]\n", argv0); } static int lflag = 0;