View Full Version : Adding FTP accounts
Hi,
I am having trouble setting up an FTP account to go to a subdirectory. I added the sub directory in the edit FTP user info but when I test the login it goes to the mail root folder. I do not want this user to see the cgi directory or even the mail htdoc directory! What am I doing wrong??
I searched the FAQ and could not find the details on setting up the FTP accounts.
Thanks
alphadesk
7-24-02, 05:04 AM
Was the directory already created before you added FTP user? If not Login to your server with FTP and see if it has been created. If it hasn't create the dir/folder and give it another try.
Originally posted by alphadesk
Was the directory already created before you added FTP user? If not Login to your server with FTP and see if it has been created. If it hasn't create the dir/folder and give it another try.
OK, Here is what I did. In the box to enter the new directory in the edit screen I entered [book] with no "/" in front and it created a directory in the root FTP called book. Now if I tried to change that to [htdocs/book] nothing changes... How do I get it into the htdocs as a subdir so the pages can be viewed? Or is there another way to view them from that directory below htdocs that I am clueless on?? Ugh!
Thanks again!!! :D
alphadesk
7-24-02, 05:40 AM
Ok,
Here's what I have done in the past and it does work. When I want to create FTP user I create the folder first on the server. Then login to OPS and create the new FTP user giving that folder name only in the text box. When I login with the new FTP user info on the server all I can see is that folder, nothing else. So you might want to delete and start over.
I will try that now! Thanks!
Will let you know how it goes. :) Wish me luck!
TA
Ugh!
OK, I did exactly what you said and it still created a directory in the same directory as the htdocs and cgi and others. :(
I am going grey doing this.
Any other ideas to try? I am up for anything. hehe
TIA
I agree with alphadesk...never had trouble. try and repeat the procedure as described by alpha and do not use the same directory. Remember first enter site with ftp and create the directory
Success!
After some fiddling with it and what ended up working was this.
I changed the home directory for the user first to [htdocs/book] and it did not create the directory. I went in a added it after and it worked. I had tried to create it first with my ftp account then set her home dir to that using the same [htdocs/book] and it failed. Anyway, thanks guys!! It is working! Now if I can just find where it told me how to use cutecast for multiple sites I am in business! hehehe
Thanks Again!
KenCarlson
7-24-02, 06:36 AM
One thing I always do is add the leading "/" in the text box where you can specify the directory. In your example, I would enter:
"/htdocs/book" (without the quotation marks)
It is not necessary to create the folder that you specify first... As long as you start your folder definition string with the "/", specifying a path where you have write permission, the system will create the folder in question the first time the particular FTP user logs in.
One other thing to note... Changes you make in OPS do not get implemented immediately. I've noticed that when making changes like this, whether it is adding a new email alias or changing parameters for an FTP user, it sometimes takes several minutes for the system to update itself based on what I've specified in OPS. Patience is key here...
It looks like you've stumbled on a solution before reading my post, but I thought I'd chime in anyway for the benefit of others. Always START your folder definition with a leading "/", and be patient for the few minutes that it takes for your changes to get into the system... Hope this helps!
Ken
Hey Ken!
Funny you mentioned the time delay and the fact the directory is not created until the user logs in. On all the original tries I just logged in first with my login to see if the directory was created. When I did not see it I freaked. So I started to mess with it and try differant things. The last time was a combination of using the "/" in front of the htdocs/book and loged in first with the new account. At first it said home directory not found and I hit retry and it was in. I uploaded a file to see if it would. So far so good so I disconnected and reconected with my main account and sure enough there it was!
I do appreciate all the help. This should be added to the FAQ file. I am sure I am not the only one who is impaient! lol ;)
BB
This is some good information, I have a question, that you guys might answer.
If I have a subdirectory, setup for FTP, and that directory user needs to use .cgi scripts.
What is the best way to give them this directory, without letting them in my sites .cgi directory. A thought, maybe let them in under a subdirectory in there as well.
/cgi-bin/sub-directory-me
/cgi-bin/subdirectory-them
Would that work?
Or
/htdocs/sub-directory-them
/htdocs/sub-directory-them/cgi-bin/
the cgi scripts work even without the need of a cgi directory!
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.