Add passwd manpage

This commit is contained in:
sin 2014-06-09 16:40:00 +01:00
parent 60500e376a
commit 5980da83e7
4 changed files with 17 additions and 4 deletions

13
passwd.1 Normal file
View File

@ -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.

View File

@ -15,7 +15,7 @@
static void
usage(void)
{
eprintf("usage: %s login\n", argv0);
eprintf("usage: %s username\n", argv0);
}
int

4
su.1
View File

@ -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

2
su.c
View File

@ -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;