LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-09-2013, 08:46 AM   #1
Yaeger
LQ Newbie
 
Registered: Jul 2013
Posts: 2

Rep: Reputation: Disabled
Wrong permissions on VSFTP umasks


Hello everyone!

I'm trying to set up a webserver on my Debian 7.0 VPS. Now I've set up the apache webserver, mysql and ftp access. I only want 1 user to be able to upload files to the webfolder so I created a user called 'ftp'. This user is member of the www-data group and every file he adds to the webfolder is owned by group www-data.

What I want to achieve now is that every new file I add gets 664 permissions and every directory I add should get 775 permissions. So, I set the local_umask setting to 002.

The results I'm getting is 772 for directories and 662. Can someone explain me why this is? I just can't wrap my head around :S

Thanks alot!
 
Old 07-09-2013, 11:06 AM   #2
slipstreamed
Member
 
Registered: Nov 2010
Posts: 59

Rep: Reputation: 24
Set umask value in the .bashrc file of user ftp
Code:
echo "umask 002" >> $home/.bashrc
also leave the local_umask value to 002 in vsftp config
 
Old 07-09-2013, 11:48 AM   #3
Yaeger
LQ Newbie
 
Registered: Jul 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by slipstreamed View Post
Set umask value in the .bashrc file of user ftp
Code:
echo "umask 002" >> $home/.bashrc
also leave the local_umask value to 002 in vsftp config
Thanks alot, that worked!
 
  


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
Certain permissions wanted on VSFTP kitek Linux - Server 2 12-17-2009 11:50 AM
vsftp problems with permissions lynchmob09 Linux - Networking 2 12-11-2008 02:21 AM
VSFTP Fie Permissions vswr31 Linux - Security 1 07-09-2005 06:57 PM
vsFTP user permissions scriptkiddie Linux - General 0 06-29-2004 08:14 AM
Problem with permissions and vsftp in a awkward setup bakadeshi *BSD 1 06-29-2003 08:13 AM


All times are GMT -5. The time now is 08:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration