[hackers] [ubase] Add passwd manpage || sin
commit 5980da83e7f99eab4cbfe31ff11afcec386adee5
Author: sin <sin_AT_2f30.org>
Date: Mon Jun 9 16:40:00 2014 +0100
Add passwd manpage
diff --git a/passwd.1 b/passwd.1
new file mode 100644
index 0000000..bf860cb
--- /dev/null
+++ b/passwd.1
_AT_@ -0,0 +1,13 @@
+.TH PASSWD 1 ubase-VERSION
+.SH NAME
+BpasswdR - Change a user's password
+.SH SYNOPSIS
+BpasswdR IusernameR
+.SH DESCRIPTION
+BpasswdR 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
index ebf1431..77d5209 100644
--- a/passwd.c
+++ b/passwd.c
_AT_@ -15,7 +15,7 @@
static void
usage(void)
{
- eprintf("usage: %s login
", argv0);
+ eprintf("usage: %s username
", argv0);
}
int
diff --git a/su.1 b/su.1
index f028531..ddba3b3 100644
--- a/su.1
+++ b/su.1
_AT_@ -2,13 +2,13 @@
.SH NAME
BsuR - Run a command with a substitute user and group ID
.SH SYNOPSIS
-BsuR [B-lpR] [IuserR]
+BsuR [B-lpR] [IusernameR]
.SH DESCRIPTION
BsuR 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 BHOMER and BSHELLR
-(plus BUSERR and BLOGNAMER if target IuserR is not root).
+(plus BUSERR and BLOGNAMER if the target IusernameR is not root).
.SH OPTIONS
.TP
B-lR
diff --git a/su.c b/su.c
index d9ec699..9b5f125 100644
--- a/su.c
+++ b/su.c
_AT_@ -18,7 +18,7 @@ static int dologin(struct passwd *);
static void
usage(void)
{
- eprintf("usage: %s [-lp] [user]
", argv0);
+ eprintf("usage: %s [-lp] [username]
", argv0);
}
static int lflag = 0;
Received on Mon Jun 09 2014 - 17:44:52 CEST
This archive was generated by hypermail 2.3.0
: Mon Jun 09 2014 - 17:48:07 CEST