[hackers] [ubase] Add su manpage and fix su usage line || sin
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
+BsuR - Run a command with a substitute user and group ID
+.SH SYNOPSIS
+BsuR [B-lpR] [IuserR]
+.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).
+.SH OPTIONS
+.TP
+B-lR
+Starts the shell as login shell with an environment similar to a real
+login.
+.TP
+B-pR
+Preserves the whole environment. This option is ignored if the B-lR
+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