These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for how to get "above" the PUBLIC_HTML level in FTP ...? on the new forum.
Hi Folks,
I'm a web-designer who has taken on the arduous role of figuring out server-side management. wow.
on the domains I set up with VM, the FTP process gets me into the root web folder, but not above. I have an issue where I need to set up a CGI-BIN for Perl scripts above the root level.
Can anyone help me understand how to set up FTP that will allow this?
thanks,
Gary
Howdy,
If you have FTP setup to restrict users to their home directory, then it wouldn't be possible for that user to get out of the public_html dir in order to upload files into the cgi-bin dir.
Your options at that point would be:
Turn off the restriction that prevents users from leaving their home directory. You can do that in Limits and Validation -> FTP Directory Restrictions.
Use the Virtual Server's owner to upload that particular file... the Virtual Server owner would have a home directory of /home/virtual_server_owner/, and would be able to access the cgi-bin directory.
Create a new FTP user for your domain, perhaps one rooted in the cgi-bin dir, and allow folks to use that to upload files.
-Eric
thanks for your comment, Eric.
On FTP Directory Restrictions, I tried creating a "rule" where, for this particular domain, the restrictions chosen were "all files on system". It yields no change when I log in with FTP; Ie, no ability to go "up" on level to the CGI-BIN. I tried the other 3 choices also, but none change the FTP being locked into web-root-level.
Gary
this should be a "no brainer" - all domain control panels I've worked with in the past allow FTP users access to one level above web-root, specifically in order to install CGI scripts. I have admin level access to the VM server, but can't find any tweak that will allow me to do this.
what's up with this? Has anybody here been successful in installing CGI scripts one level above public_html? and how?
thanks
gary
Hi Gary,
Can you post a screenshot of the screen you see when going to Limits and Validation -> FTP Directory Restrictions?
Using the FTP Directory Restrictions screen, there are several ways to get around the restriction you're seeing. Further, it's not even enabled by default... by default, an FTP user should be able to see all files.
So I'm curious what options and rules are enabled on that screen, that may give some more insight into what's going on.
-Eric
HI Eric,
Since I've begun using VM, almost 2 years, I've never had FTP permissions to access above web-root. I have admin access to the installation. The server owner says I have to use SSH to get in above the public_html level, which I am not familiar with.
I've attached the screenshot. I've tried every combination of options but nothing works. What's not implied here, is the order in which these "rules" are applied. (ie, do the bottom - or newest - ones over-ride the top (earlier) ones?
thanks,
Gary
Hi Gary,
The settings you have in there shouldn't actually lock a user into their home directory... although you do have a rule for locking a user into their homedir, it isn't marked as active.
So in theory, you shouldn't be seeing the problem you're describing :-)
If your users are still unable to browse outside of their home directory, that sounds like something is awry.
I'm curious which distro you're using, and what version of ProFTPd you have.
Also, could you attach a copy of your proftpd.conf file to this thread? It would be located in /etc, exactly where depends on your distro.
Thanks,
-Eric
Hi Guys, I am an SEO, service provider and I am having FTP access details provided by my client and I am able to access public_html folder. I can download files from there. But I am not able to upload any file or any new folder there in public_html folder.
My FTP is showing "550 Permission denied" message.
Please help me for the same.
How can I get permission to edit, upload files and folders. What steps we need to follow to solve this problem.
Thanks in advance. Please help me ASAP.
Thanks Mahendra
Access rights in that regard are dictated by three things:
Can you find out those three things? It depends on the FTP client you use whether or not, and where, those information is shown.