Welcome to WebmasterWorld Guest from 35.170.81.210

Forum Moderators: bakedjake

Message Too Old, No Replies

VSFTPD - FAIL MKDIR - Fedora Core 5

VSFTPD - FAIL MKDIR - Fedora Core 5

     
2:58 pm on May 9, 2006 (gmt 0)

New User

10+ Year Member

joined:July 23, 2003
posts:2
votes: 0


I cannot for the life of me figure out how to be able to create new directories with the default install of VSFTPD. I've created my user, have them in the right permissions list, uploading and downloading works fine, SELinux is disabled, I just cannot create a new directory.

Here is my vsftpd.conf

# Allow anonymous FTP?
anonymous_enable=NO
#
# Allow local users to log in?
local_enable=YES
#
# Allow any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=0000
file_open_mode=0220
#
# Allow the anonymous FTP user to upload files?
anon_upload_enable=NO
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=NO
#
# Activate logging of uploads/downloads?
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data)?
connect_from_port_20=YES
#
# Log file in standard ftpd xferlog format?
xferlog_std_format=NO
#
# User for vsftpd to run as?
nopriv_user=ftpsecure
#
# Login banner string:
ftpd_banner=ILikeJam FTP server. Logs are being monitored.
#
# chroot local users (only allow users to see their directory)?
chroot_local_user=YES
#
# PAM service name?
pam_service_name=vsftpd
#
# Enable user_list (see next option)?
userlist_enable=YES
#
# Should the user_list file specify users to deny(=YES) or to allow(=NO)
userlist_deny=NO
#
# Standalone (not run through xinetd) listen mode?
listen=YES
#
#
tcp_wrappers=NO
#
# Log all ftp actions (not just transfers)?
log_ftp_protocol=YES
#
# Show file ownership as ftp:ftp instead of real users?
hide_ids=YES

#
# Allow ftp users to change permissions of files?
chmod_enable=NO
#
# Use local time?
use_localtime=YES
#
# List of raw FTP commands which are allowed (some commands may be a security hazard):
cmds_allowed=ABOR,QUIT,LIST,PASV,RETR,CWD,STOR,TYPE,PWD,SIZE,NLST,PORT,SYST,PRET,MDTM,MKD,DELE,RMD

log_ftp_protocol=YES

My user_list file


# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers
# for users that are denied.
myftp

ftpusers file


# Users that are not allowed to login via ftp
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody

I've got the directory set at 777

The only thing I can figure is that some other application is affecting the MKD command?

Any help is appreciated.

Andrew

10:14 pm on May 9, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 20, 2004
posts:1477
votes: 0


Hi Andrew:

local_umask=0000

Says "local users can't do much ..." (plus it's one character too long) Try:

local_umask=077

That should compliment your very dangerous* 777 setup nicely.

*Any world-writable directory is exposed to certain probing tools and is a tempting attack vector.

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members