#include #include #include #include #include int main() { struct passwd *pw; uid_t uid; char username[32]; char command[128]; uid = getuid(); pw = getpwuid(uid); if(strcmp(pw->pw_name, "krixano") == 0) { printf("Sorry, krixano, no BBS for you!"); exit(1); } if (pw) { strncpy(command, "/usr/bin/lua /usr/local/src/telem/telem.lua ", 127); strncat(command, pw->pw_name, 127); system(command); } }