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.
My old RH9 server had a hard drive failure, so I got a new box and installed FC6. Well needless to say I can't figure out what is going on with the FTP service. I have setup one user to ftp HTML files to the website and no matter what I do I can't get my user to beable to read the /var/www/html/mixon folder.
I think the vsftp is good cause I can write and read all day long to the home/mixon folder. But I can't get it to do anything outside this folder. I have given permissions that looks the same on the other folder as the home folder, but can't get anywhere.
Currently I have a sym link in the home/mixon folder going to the /var/www/html/mixon folder, however when you click that link it says Transfer done (but failed to open directory). It did the same thing when I set the home folder to the /var/www/html/mixon folder.
I honestly think there is some permission problem with the folder outside the home folder, but for the life of me I can't figure it out. Any input would be appricated.
Thanks...
/var/www/html....
drwxr-xr-x 2 root root 4096 Jan 10 16:02 misc
drwxrwxrwx 2 mixon mixon 4096 Jan 11 16:06 mixon
drwxr-xr-x 4 root root 4096 Jan 10 16:05 programs
The easy fix, would be to create a new user, just for the FTP transfers
to that folder. Make their home folder the /var/www/html/mixon
location.
You may need to add an entry for them in /etc/vsftpd_user_configs
Note for that too work you may have to disable the annon ftp, and start
using login/passwords for the ftp access, but not 100% sure on that....
I set the home folder for mixon to be /var/www/html/mixon, and it does the same thing. It still always says " 226 Transfer done (but failed to open directory)" I also disabled anonymous access restarted the service and it didn't change anything. There was no /etc/vsftpd_user_configs, but there was /etc/vsftpd/user_list, but adding the user to this list still doesn't give mixon access to the /var/www/html/mixon listing. I can't figure out what system rights are different about /home/mixon, vs. /var/www/html/mixon that wouldn't allow a directory listing.
/etc/vsftpd_user_configs should be a directory. You put a file for
each user in there with the permissions they should have.
Make that directory, then create a file named mixon with the
following content:
Thanks for the help captaininsane, I added the config and just to make sure turned the firewall totally off after adding the 50000-52999 ports didn't work.
Well I am still in the same boat, I can login and I know it is reading the new config file we made, cause if I change the ownership it will not login with ftp due to the config file not belonging to root it says.
Error is still that the transfer is done, but failed to open the directory. The Ftp does dump me in the root of the server (/), if I manually change that to /home/mixon, or /var/www/html/mixon it will say 550 failed to change directory. So I am not sure what happend, but before the changes I could read and write to /home/mixon just fine now it won't. Of course before it didn't dump me in / , it started in /home/mixon. Any other ideas? Maybe a CHROOT path? Sorry about all the troubles. Thanks again for the help...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.