Sudoers list?

Daniel Carrera daniel.carrera at zmsl.com
Tue Apr 4 21:14:05 UTC 2006


Chris Bannister 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.

The problem with that is that is that the user still gets a password 
prompt even if they are not sudoers.

I guess I'll just assume that the user is a sudoer and give them the 
prompt...

Best,
Daniel.
-- 
      /\/`) http://opendocumentfellowship.org
     /\/_/
    /\/_/   A life? Sounds great!
    \/_/    Do you know where I could download one?
    /




More information about the ubuntu-users mailing list