Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a LAMP server running. Currently there are not vhosts, just the basic single site apache2 running a web app.
I want to set up ftp access to the www root, but my attempts have failed.
When I try to ftp using the user I created, I get dumped in the users home directory. I can also browse the entire file system. What I can't do is upload content to the www root. I get permission errors.
How can I set ftp up to allow a user to access the www root only?
Any help or links would be appreciated.
You didn't say what distro and ftp server you're using, so we can help you better on this.
Anyway, you can modify the existing user and set his homedir to be the document root of your webserver.
You didn't say what distro and ftp server you're using, so we can help you better on this.
Anyway, you can modify the existing user and set his homedir to be the document root of your webserver.
Regards
Hi,
I am using Ubuntu 10.04 64 bit using proftp as the ftp server.
I have uninstalled proftp, so right now I have no ftp server installed.( I want to start from scratch so I better understand the steps that need to be taken.
I am a novice, so forgive me for not knowing how to set a homedir or modify permissions.
Why dont you simply copy that www content from root to /pub if you are logging in as anonymous user, or copy to user's home directory if logging in as non-anonymous user.
Chrooting a user in his home directory is the default setting for proftpd. You can check if you have:
Code:
DefaultRoot ~
in proftpd.conf and add it if it doesn't exist.
Of course the user will be jailed in /home/user, not /home/user/www. That's why I told you to create/modify the user to have a homedir like /var/www.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.