Linux FTP folder permissions issue

Posted on

Linux FTP folder permissions issue – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about linux, ftp, , , .

I am having a continuing issue with Linux regarding the setup of FTP permissions. I am using vsftp and fedora 13, I have two users userA and userB I have set the folder permissions to ftp:ftp and 644. Both userA and userB are members of the ftp group yet when I create a folder and try to ftp it up I get a permission denied error. If I set the folder to userA:userA and 644 then userA can ftp anything and create anything but userB cannot. Also note that I have the vsftpd.conf configured to allow write and I am not using the chroot_list.

My question is what should be the correct folder permission settings for FTP to allow multiple users to create files/folders within the ftp directory?


Solution :

Firstly I would make sure that the user was created by the ftp user itself just to eliminate any variables. if this is the case then try making sure that you have permission to view the directory itself:

 chgrp -R ftp <directory>

and then verifying with ls -l to make sure the group really is ftp

if you still have problems I would highly recommend using a web administration interface such as Webmin, as it automatically installs common servers such as http, mail, ftp, squid etc… and sets up their respective directories and users with no hassle.

Hope that helps

Leave a Reply

Your email address will not be published.