LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Re: Vsftpd uploaded files Permissions (https://www.linuxquestions.org/questions/linux-software-2/re-vsftpd-uploaded-files-permissions-366894/)

silver05 09-25-2005 11:21 AM

Re: Vsftpd uploaded files Permissions
 
Hi Guys,

I have a small problem/query. The situation is i have a user called game and that users home directory is /home/game. I have game servers running in there for example the folder of the game server is installed to /home/game/123clan/cstrike.

I have users on the system that i have added for ftp access via vsftpd and those users have thier home directory as /home/game/123clan/cstrike for example and have /bin/false for thier shell. Those users are part of the game user group as well.

That all works fine and dandy. I just chmod the /home/game/123clan/cstrike to 0770 so the owner and group can access it via the ftp.

What i would like to do is so the users can upload and download files but it auto sets the permssions of the uploaded files to 0770 or soemthing so the owned and group can access the files or folders.

I have looked on google but with no luck. Because at the moment it will set the uploaded folders or files permissions to something stupid so even the owner of /home/game/123clan/cstrike can't access the files to change the permissions or delete the files etc.

I was thinking about creating each user his or her own home folder.

Any ideas guys?

Silver05

basemodel 09-26-2005 08:25 PM

Check out the line reading:
local_umask=022
In /etc/vsftpd/vsftpd.conf

Read the man page on vsftpd.conf, this will modify permissions for files uploaded via FTP. If you want to keep the GROUP ownership the same as the directory, do a search on setgid bit and chmod.

silver05 09-30-2005 08:22 AM

Hi,

I worked it out, umask thing.

Thanks for your response though..


All times are GMT -5. The time now is 06:25 PM.