summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorjmcp <none@none>2007-05-24 20:51:34 -0700
committerjmcp <none@none>2007-05-24 20:51:34 -0700
commit34c948160fe246359b1ab74a1dc391c155a54990 (patch)
tree89c334d399c4ba771334c308f231fea971b8e416 /usr/src
parentf10899df9104d9105026db66e51c8cb150f3828b (diff)
downloadillumos-joyent-34c948160fe246359b1ab74a1dc391c155a54990.tar.gz
6554556 stmsboot's privilege message is not quite correct
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/cmd/stmsboot/stmsboot.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr/src/cmd/stmsboot/stmsboot.sh b/usr/src/cmd/stmsboot/stmsboot.sh
index 109eff2607..711d188a87 100644
--- a/usr/src/cmd/stmsboot/stmsboot.sh
+++ b/usr/src/cmd/stmsboot/stmsboot.sh
@@ -460,10 +460,8 @@ else
DRVLIST=$DRV
fi
-
-STMSPRIVS=`/usr/bin/ppriv $$ | $EGREP "E:.*all|E:.*sys_devices"`
-USERID=`id`
-if [ "$USERID" != "uid=0(root) gid=0(root)" ] -o [ "x$STMSPRIVS" == "x" ]; then
+USERID=`id | $EGREP "uid=0"`
+if [ -z "$USERID" ]; then
gettext "You must be super-user to run this script.\n" 1>&2
exit 1
fi