summaryrefslogtreecommitdiff
path: root/utils/sush.sh
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-09-23 23:17:21 +0000
committerMiles Bader <miles@gnu.org>1996-09-23 23:17:21 +0000
commit13e31553a5fdb646abf94d198d56b82300640162 (patch)
tree26f17ca8981a164abd1c9ac41f47fc9d967976c9 /utils/sush.sh
parent46265b33f76acca44cdc0e2c312cf696ea8e0d78 (diff)
.
Diffstat (limited to 'utils/sush.sh')
-rw-r--r--utils/sush.sh30
1 files changed, 27 insertions, 3 deletions
diff --git a/utils/sush.sh b/utils/sush.sh
index 2a61fc7f..e5552006 100644
--- a/utils/sush.sh
+++ b/utils/sush.sh
@@ -1,5 +1,26 @@
#!/bin/sh
-# A unix-like su (one which invokes a sub-shell).
+# A unix-like su (one which invokes a sub-shell).
+#
+# Copyright (C) 1996 Free Software Foundation, Inc.
+#
+# Written by Miles Bader <miles@gnu.ai.mit.edu>
+#
+# This file is part of the GNU Hurd.
+#
+# The GNU Hurd is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or (at
+# your option) any later version.
+#
+# The GNU Hurd is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
ARGS_DOC="[USER|- [COMMAND [ARG...]]]"
USAGE="Usage: $0 $ARGS_DOC"
@@ -36,10 +57,13 @@ while :; do
echo " -U USER, --avail-user=USER Add USER to the available uids"
echo " --usage Give a short usage message"
echo " -V, --version Print program version"
+ echo ""
+ echo "Unlike the traditional unix \`su' command, if USER is not specified,"
+ echo "then the result is *no* user-ids, not uid 0."
exit 0;;
--usage)
(echo "Usage: $0 [-V?]"
- echo " [-e ENTRY] [-E ENTRY] [-g GROUP] [-G GROUP] [-u USER] [-U USER] [--envvar=ENTRY] [--envvar-default=ENTRY] [--group=GROUP] [--avail-group=GROUP][--group=GROUP] [--avail-group=GROUP] [--user=USER] [--avail-user=USER][--help] [--usage] [--version] $ARGS_DOC") |$FMT -t
+ echo " [-e ENTRY] [-E ENTRY] [-g GROUP] [-G GROUP] [-u USER] [-U USER] [--envvar=ENTRY] [--envvar-default=ENTRY] [--group=GROUP] [--avail-group=GROUP][--group=GROUP] [--avail-group=GROUP] [--user=USER] [--avail-user=USER] [--help] [--usage] [--version] $ARGS_DOC") |$FMT -t
exit 0;;
--version|-V)
echo "STANDARD_HURD_VERSION_sush_"; exit 0;;
@@ -57,6 +81,6 @@ case "$needs_arg" in ?*)
echo 1>&2 "$0: option \`$1' requires an argument"
echo 1>&2 "Try \`$0 --help' or \`$0 --usage' for more information";
exit 1;;
-esac
+esac
exec $LOGIN --program-name="$0" -pxSLf -aHOME -aMOTD -aUMASK -aBACKUP_SHELLS "$@"