Sudoers list?

Chris Bannister cj at
Tue Apr 4 21:04:43 UTC 2006

Daniel Carrera wrote:

> I don't want to force people to run this script as root. Running stuff 
> as root is a really bad habit. I want this script to be as non-root 
> friendly as possible. There is only one step that *might* warrant root 
> access and that's if the destination directory belongs to root.

Just run gksudo and test for whatever error code it gives if the user 
isn't in the sudoers file / gives the wrong password.

Failing that, run the script via sudo/gksudo and drop back to the users 
ID until you need to do the install?

Chris Bannister
  email: cj at
jabber: cj at

More information about the ubuntu-users mailing list