ND-0a/ 40755 0 0 0 6512515546 7650 5ustar rootrootND-0a/README.FIRST100644 0 0 1315 6512515542 11507 0ustar rootroot*******************************ND.C**************************************** First, type make, then make install Your are going to have to add a user called newuser. Make him have no password and edit /etc/passwd. At the bottom where it says newuser:0:1002:100::/home/newuser:/bin/bash change the /bin/bash or whatever to /tmp/newuser then you will be all set. The users will just have to telnet to you and login as newuser. You can read there submissions in /tmp/newuser.info and decide if you want to add them or not. COPYRIGHT ********* I dont care what you do with this, you can copy and say you made it I really dont care, as long as you give me credit. ********* Any problems, contact vortex@bbs.qconline.com ND-0a/Makefile100600 0 0 220 6512515475 11350 0ustar rootrootCC = gcc all: newuser newuser: nd.c $(CC) -o newuser nd.c ; cp -rf newuser /tmp ; chmod a+s /tmp/newuser clean: rm -f newuser ND-0a/nd.c100644 0 0 3076 6512514743 10516 0ustar rootroot/* ND-.1A begins*/ #include #include #define HOST "snap.dyn.ml.org" #define ADMIN "bleh (bleh@bleh.com)" FILE *NewUser; main() { char fname[100]; char lname[100]; char email[100]; char user[20]; char shell[20]; int ans, test; NewUser = fopen("/tmp/newuser.info", "a+"); if (NewUser == 0) { printf("An error have occured while trying to open the file\n"); exit(1); } printf(" Welcome to %s ! \n", HOST); printf(" Running Newuser Database.1A\n"); printf("**************************************************\n "); printf("Please enter all the correct information down below\n" ); for (test = 0; test < 10; test++) { printf("\n\nPlease enter your first name: "); scanf(" %s", &fname); printf("\nPlease enter your last name: "); scanf(" %s", &lname); printf("\nPlease enter your email so we can get back to you: "); scanf(" %s", &email); printf("\nPlease enter the username you request: "); scanf(" %s", &user); printf("\nShell type?" ); printf("\nbash"); printf("\ntclsh"); printf("\nsh"); printf("\nzsh"); printf("\nash"); printf("\ncsh"); printf("\nksh"); printf("\n---> "); scanf(" %s", &shell); printf("\n\nFirst name: %s\nLast name: %s\nEmail: %s\nUser: %s\nShell: %s\n", fname, lname, email, user, shell); printf("Is this correct? (y/n) "); scanf(" %c", &ans); if (ans == 'y') { fprintf(NewUser, " \n First name: %s\n Last name: %s\n Email: %s\n User: %s\n Shell: %s\n", fname, lname, email, user, shell); fclose(NewUser); break; } } }