[hackers] [ubase] Add passwd manpage || sin

From: <git_AT_suckless.org>
Date: Mon, 09 Jun 2014 17:44:52 +0200

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 @@
+ Bpasswd R - Change a user's password
+ Bpasswd R Iusername R
+ Bpasswd R 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.
+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
- eprintf("usage: %s login
", argv0);
+ eprintf("usage: %s username
", argv0);
diff --git a/su.1 b/su.1
index f028531..ddba3b3 100644
--- a/su.1
+++ b/su.1
_AT_@ -2,13 +2,13 @@
  Bsu R - Run a command with a substitute user and group ID
- Bsu R [ B-lp R] [ Iuser R]
+ Bsu R [ B-lp R] [ Iusername R]
  Bsu R 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 BHOME R and BSHELL R
-(plus BUSER R and BLOGNAME R if target Iuser R is not root).
+(plus BUSER R and BLOGNAME R if the target Iusername R is not root).
  B-l R
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
- 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