ChrisMartino Posted August 20, 2009 Share Posted August 20, 2009 Hey there, Thanks for taking the time to read this I'm looking for some help here i need a script that connects to my server via ssh and creates ftp users and there directories and some files in them so basically everytime i run the script it creates a new name and random pass e.g first time i run the script creates FTP user "svr100", second time i run it "svr200" and creates random passwords and creates the ftp user a directory called there username eg if there username that is created it "svr100" it creates the directory for that user "svr100" and i need it to create the following sub directories in there "gamemodes", "filterscrips", "pawno", "scriptfiles" and help please?? thanks oh yea and the script echos the password and username created too thanks p.s i heard something about using "Linux auth" to do it but I'm not sure how, if you are good at this and do it for me i have a open seat for you as co-owner of my game server hosting company and i have some clients lined up already Please help I've looked everywere! :'( Quote Link to comment https://forums.phpfreaks.com/topic/171159-proftpd-user-creation-via-php/ Share on other sites More sharing options...
ChrisMartino Posted August 20, 2009 Author Share Posted August 20, 2009 can anyone help? Quote Link to comment https://forums.phpfreaks.com/topic/171159-proftpd-user-creation-via-php/#findComment-902612 Share on other sites More sharing options...
ignace Posted August 20, 2009 Share Posted August 20, 2009 Creating a SSH connection with PHP: http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/ Creating a new FTP account in Linux: http://knowledgelayer.softlayer.com/questions/204/Creating+an+FTP+Account+within+Linux. Pass these commands to your SSH. Quote Link to comment https://forums.phpfreaks.com/topic/171159-proftpd-user-creation-via-php/#findComment-902624 Share on other sites More sharing options...
ChrisMartino Posted August 20, 2009 Author Share Posted August 20, 2009 hey that tutorial for adding users is for a different FTP server mines proftpd :/ and it dosent create the users and i need it to make passwords and usernames automaticaly like user 1 "svr100" user 2 "svr200" and each time the script is run it dose a new user and echos the password and username Quote Link to comment https://forums.phpfreaks.com/topic/171159-proftpd-user-creation-via-php/#findComment-902750 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.