Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-09-2013, 09:46 AM   #1
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, 12:06 PM   #2
Registered: Nov 2010
Posts: 60

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

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


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

All times are GMT -5. The time now is 01:41 PM.

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