13 #ifndef __SU_h_Included__
14 #define __SU_h_Included__
16 #include <tqcstring.h>
18 #include <tdelibs_export.h>
29 SuProcess(
const TQCString &user=0,
const TQCString &command=0);
32 enum Errors { SuNotFound=1, SuNotAllowed, SuIncorrectPassword };
37 enum checkMode { NoCheck=0, Install=1, NeedPassword=2 } ;
38 int exec(
const char *password,
int check=NoCheck);
44 int checkInstall(
const char *password);
49 int checkNeedPassword();
52 enum SuErrors { error=-1, ok=0, killme=1, notauthorized=2 } ;
53 int ConverseSU(
const char *password);
56 virtual void virtual_hook(
int id,
void* data );
58 class SuProcessPrivate;
60 TQString superUserCommand;
int exec(const TQCString &command, const QCStringList &args)
Forks off and execute a command.
Executes a command under elevated privileges, using su.
checkMode
Executes the command.