search for: reallyroot

Displaying 1 result from an estimated 1 matches for "reallyroot".

Did you mean: real_root
2002 Nov 25
0
Linux and Samba Code
...same password again: " #define MINPWLEN 6 #define STRLEN 1024 int change(char *program, char *user, char *pwd, FILE *mystderr); int main ( int argc, char **argv) { int fd; struct passwd *pwentry; char name[STRLEN]; char newpw[STRLEN]; int reallyroot = 0; char *cp; FILE *mystderr; /* do we have the appropriate permissions? */ if (geteuid() != 0) { fprintf(stderr, "This program cannot run unless it is SUID-root, " "exiting...\n"); exit(1); } if (getuid() == 0) reallyroot = 1...