Lines Matching full:sudo
44 # sudo(8) failure and exit.
53 # Unless using a custom sudo(8) configuration, user `root' should not be
70 # If not running as root, prompt for sudo(8) credentials to become root.
71 # Re-execution of the current program via sudo is automatically handled.
85 f_have sudo || f_die 1 "$msg_must_be_root_to_execute" "$pgm"
88 # Ask the user if it's OK to become root via sudo(8) and give them
127 1) # Always try sudo(8) when run as $user
134 # This user has created the path signing-off on sudo(8)-use
142 # Check sudo(8) access before prompting for password.
144 :| sudo -S -v 2> /dev/null
147 # sudo(8) access denied. Prompt for their password.
199 # Validate sudo(8) credentials
201 sudo -S -v 2> /dev/null <<-EOF
227 logger -p auth.notice -t sudo " " \
233 f_die 1 "sudo: $msg"
245 $HOSTNAME:$displaynum | sudo sh -c 'xauth -ivf \
249 # Re-execute ourselves with sudo(8)
250 f_dprintf "%s: Becoming root via sudo(8)..." mustberoot.subr
252 exec sudo "$0" $ARGV
254 exec sudo "$0"
263 # sudo(8) to proceed.
274 f_have sudo || f_die 1 "$msg_must_be_root_to_execute" "$pgm"
284 # Prompt for sudo(8) credentials.
354 # Validate sudo(8) credentials for given user
358 sudo -k
359 sudo -S -v 2> /dev/null <<EOP
389 logger -p auth.notice -t sudo " " \
395 f_die 1 "sudo: $message"
402 # sudo(8) using user-supplied credentials.
407 # that (while running as root) sudo(8) authentication is