Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. {
  2. groufind=`groups|grep system|awk '{print $2}'`
  3. }
  4. groupscheck
  5. eval `id | /usr/bin/sed 's/[^a-z0-9=].*//'`
  6. if [ "$LOGNAME != "root" -o $groufind != "system" ];
  7. then
  8. echo "$0: Only root or system group can run /sbin/shutdown."
  9. exit 2
  10. fi
  11. else
  12. echo "$0: can't check user id."
  13. exit 2
  14.  
  15. /sbin/shutdown: test: argument expected
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement