#! /bin/sh # Question 2: # Use the id program to determine the effective user ID number of the # user that runs the program. Print the message "I am root" if the user # id number is 0; print a different message otherwise. # Note: you should check the user id number, not the user id name. uid_num=$(id -u) if [ "$uid_num" -eq 0 ] then echo "I am root" else echo "I am not root" fi