diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/cerberus.c | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/src/cerberus.c b/src/cerberus.c index f8c0826..90bab2f 100644 --- a/src/cerberus.c +++ b/src/cerberus.c @@ -148,6 +148,15 @@ void do_login(int argc, char** argv)      } +  /* Only root may bypass authentication */ +  if (skip_auth && getuid()) +    { +      printf("%s: only root by use the -f option\n", *argv); +      sleep(ERROR_SLEEP); +      _exit(2); +    } +   +      /* Print ant we want a passphrase, if -f has not been used */    if (skip_auth == 0)      { | 
