Revision: 43307
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 21, 2011 16:54 by vikiyou
Initial Code
if_root() { _user=`id | awk -F')' '{print $1}' | awk -F'(' '{print $2}'` if [ "$_user" == "root" ]; then # is root return 0 else # not root return 1 fi }
Initial URL
Initial Description
Check if is root run this script.
Initial Title
Check root user on solaris
Initial Tags
Initial Language
Bash