Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 05-22-2005, 04:53 PM   #1
Registered: Aug 2004
Posts: 133

Rep: Reputation: 15
vsftpd - new directories are chmod:ed 700


I want my anonymous ftp users to be able to not only create directories but to remove them as well. But when an anoynoums user creates a directory it is owned by the ftp user and group and is chmod:ed 700. So the anonymous can create but cannot delete. I know that it's a good thing in most cases but not in mine.

So, I want my anonymous ftp users to be able to remove directories in directories where they can create them... and I don't want to chmod every time a directory is created.

My /etc/vsftpd.conf looks like this

local_umask=000 # it was worth a try
ftpd_banner=Welcome to Samels ftp

Thanks for your help!
Old 05-23-2005, 10:13 AM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,147

Rep: Reputation: 229Reputation: 229Reputation: 229
vsftpd should have an option to setup the default umask..
Old 05-23-2005, 11:27 AM   #3
Registered: Aug 2004
Posts: 133

Original Poster
Rep: Reputation: 15
it worked!

It worked fine!
I put
and when I did ls -l it was freedom to everyone, weeee =)
drwxrwxrwx 2 ftp ftp 4096 2005-05-22 18:27 foobar

However, the strangest thing happened... when I created the directory foobar (after I had restarted vsftpd)
and then tried to remove it, I couldn't. I used gftp and I got

RMD /change/foobar

550 Permission denied.

(foobar is in /home/ftp/change/)

How can I fix this? Or is it just gftp?


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
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 06:29 AM
CHMOD directories.sub-directories.files zerojosh Linux - Software 2 11-19-2005 03:22 PM
How to chmod -R on directories only? jdupre Linux - Newbie 3 11-12-2004 11:45 PM
box lockout after chmod 700 takisd Linux - General 21 12-03-2003 01:32 AM
chmod directories only vrillusions Linux - General 4 05-21-2003 08:02 PM

All times are GMT -5. The time now is 09:41 AM.

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