Help for this page

Select Code to Download


  1. or download this
    %build  ALL=(nobody)  NOPASSWD: /full/path/to/script
    
  2. or download this
    # Are we the right user?
    use User::pwent;
    ...
      exec(qw(sudo -u), $user_wanted, $0, @ARGV);
    }
    [...]