LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 09-25-2005, 11:21 AM   #1
silver05
LQ Newbie
 
Registered: Aug 2005
Posts: 9

Rep: Reputation: 0
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
 
Old 09-26-2005, 08:25 PM   #2
basemodel
Member
 
Registered: Jul 2003
Posts: 54

Rep: Reputation: 15
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.
 
Old 09-30-2005, 08:22 AM   #3
silver05
LQ Newbie
 
Registered: Aug 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Hi,

I worked it out, umask thing.

Thanks for your response though..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
users of VSFTPD can't chmod files they uploaded tclwp Linux - Networking 4 09-05-2008 07:28 AM
vsftpd uploaded files owned by group? fredriksk Linux - Software 1 10-17-2005 08:48 AM
wsftpd and uploaded file permissions Crashputer Linux - Software 1 08-01-2005 05:10 AM
vsftpd disallow specific file types from being uploaded GUIPenguin Linux - General 2 04-08-2005 10:04 AM
Uploaded Files permissions (proftpd) Wynand1 Linux - Security 1 01-28-2005 03:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration