mirror of
git://git.suckless.org/ubase
synced 2024-12-24 23:52:34 +00:00
Add passwd manpage
This commit is contained in:
parent
60500e376a
commit
5980da83e7
13
passwd.1
Normal file
13
passwd.1
Normal 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.
|
2
passwd.c
2
passwd.c
@ -15,7 +15,7 @@
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
eprintf("usage: %s login\n", argv0);
|
||||
eprintf("usage: %s username\n", argv0);
|
||||
}
|
||||
|
||||
int
|
||||
|
4
su.1
4
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
|
||||
|
Loading…
Reference in New Issue
Block a user