Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F41988962
is-user-root.sh
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
319 B
Referenced Files
None
Subscribers
None
is-user-root.sh
View Options
# -------------------------------------------------------------
# Ensure user is root
#
# Note: POSIX shells don't always define $UID or $EUID.
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if
[
"
${
EUID
:-$(
id
-u
)
}
"
-ne
0
]
;
then
echo
"This command must be run as root."
>
&
2
exit
1
fi
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Aug 8, 09:01 (39 m, 31 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3962033
Default Alt Text
is-user-root.sh (319 B)
Attached To
Mode
rSNIPPETS Snippets
Attached
Detach File
Event Timeline
Log In to Comment