[hackers] [ubase] Add su manpage and fix su usage line || sin

From: <git_AT_suckless.org>
Date: Sun, 13 Apr 2014 18:23:33 +0200

commit 5c8cf6925df3b84de94d9d858aab8481ccb9ec5f
Author: sin <sin_AT_2f30.org>
Date: Sun Apr 13 17:23:04 2014 +0100

    Add su manpage and fix su usage line

diff --git a/su.1 b/su.1
new file mode 100644
index 0000000..f028531
--- /dev/null
+++ b/su.1
_AT_@ -0,0 +1,20 @@
+.TH SU 1 ubase-VERSION
+.SH NAME
+ Bsu R - Run a command with a substitute user and group ID
+.SH SYNOPSIS
+ Bsu R [ B-lp R] [ Iuser R]
+.SH DESCRIPTION
+ 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).
+.SH OPTIONS
+.TP
+ B-l R
+Starts the shell as login shell with an environment similar to a real
+login.
+.TP
+ B-p R
+Preserves the whole environment. This option is ignored if the B-l R
+option is specified.
diff --git a/su.c b/su.c
index 16d876f..91c9018 100644
--- a/su.c
+++ b/su.c
_AT_@ -19,7 +19,7 @@ static void dologin(struct passwd *);
 static void
 usage(void)
 {
- eprintf("usage: %s [-lp] [username]
", argv0);
+ eprintf("usage: %s [-lp] [user]
", argv0);
 }
 
 static int lflag = 0;
Received on Sun Apr 13 2014 - 18:23:33 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 13 2014 - 18:24:21 CEST