LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-22-2005, 05:53 PM   #1
samel_tvom
Member
 
Registered: Aug 2004
Posts: 133

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


Hello!

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

anonymous_enable=YES
listen=YES
write_enable=YES
anon_mkdir_write_enable=YES
local_umask=000 # it was worth a try
anon_upload_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
ftpd_banner=Welcome to Samels ftp


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

Rep: Reputation: 270Reputation: 270Reputation: 270
vsftpd should have an option to setup the default umask..
 
Old 05-23-2005, 12:27 PM   #3
samel_tvom
Member
 
Registered: Aug 2004
Posts: 133

Original Poster
Rep: Reputation: 15
it worked!

It worked fine!
I put
anon_umask=000
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?
 
  


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

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

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

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