Validate Root User is executing the command

January 24, 2012 by · Leave a Comment 

if (getuid())) {
    NSLog(@"You must be root to run this command.");
    exit(1);
}

About cheizer

Comments are closed.