brewewa Posted July 31, 2003 Posted July 31, 2003 I need to set up an ftp site for construction drawings. Each job will have its own folder and user, but I don't want them to go under public_html (why do they default there anyway? seems messy, mixing my web pages and ftp files...). Is there a way to do it so that each construction company has its own directory, and a 'superuser' at my company has full access to the whole ftp directory structure? Like this.... FTP CompanyA CompanyB CompanyC Thanks, Alan Quote
brewewa Posted July 31, 2003 Author Posted July 31, 2003 I guess my point is, I don't want this 'superuser' to be able to screw up my web pages. --Alan Quote
leezard Posted July 31, 2003 Posted July 31, 2003 Dont think there is a way to do it outside the public_html folder, what I would do is create a folder inside the punblic_html folder and just for example call it ftp. Then create folders withing the ftp folder for each company, set up each user with ftp access to their folders and set you superuser up with access to the /ftp folder. That doesnt seperate them entirely from your public_html folder, but it does keep them all contained and also doesnt allow your super user access to anything but the ftp folder. Quote
leezard Posted July 31, 2003 Posted July 31, 2003 ok i just tested it to make sure it would work. in public_html i made a folder called test, in the test folder i made three more folders..testa, testb and testc Then created an ftp acount for test with the directory being /test, created one for each subfolder with the directory being test/testa, test/testb etc. testa-c all had access to their folders and nothing else, test had access to all three folders within the test directory and nothing else. I know its not exactly what you were after, but hopefully it will help. Quote
brewewa Posted July 31, 2003 Author Posted July 31, 2003 OK, that'll work. What's the public_ftp dir for? Quote
leezard Posted July 31, 2003 Posted July 31, 2003 if you ftp to (using my site as an example) ftp.x-trememodz.com anonymously the public html directory is where it will ut you, with upload only access. Quote
DConley Posted August 1, 2003 Posted August 1, 2003 Why not set up a sub domain for each user? Then they could ftp into that directory and not have access to the rest of your site? For example, let's say you have a user we'll call weebles. In CPanel, set up a sub domain for weebles. When you ftp in, you would then use for the ftp address: weebles.****** The username would be: weebles@****** with the password assigned to that user in your e-mail setup. This would give them access to only the weebles folder that will be created when you create the "weebles" sub domain. Create as many sub domains as you need..... Just a thought.......Hope this helps Quote
brewewa Posted August 1, 2003 Author Posted August 1, 2003 Thanks for the help everyone. I'll try out both suggestions. Alan Quote
leezard Posted August 1, 2003 Posted August 1, 2003 if you have a subdomain for each user, the super user he wants to have would have to log in with a different password for each subdomain. Putting them all in one folder lets the superuser log ion one time and have access to them all. Quote
DConley Posted August 1, 2003 Posted August 1, 2003 You are correct leezard...I didn't read all the post I guess.... Whip But in my defense...it was 5:00 AM when I was posting.... Quote
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.