LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 01-27-2010, 05:25 AM   #1
bharatlalgupta
Member
 
Registered: Aug 2008
Posts: 80
Blog Entries: 1

Rep: Reputation: 16
Question anonymous user can't create a directory on ftp server


hello
i'm using ftp server with RHEL-5.1 now i wish to an anonymous user can create and upload some file on my ftp server...
for this i configure the entries in /etc/vsftpd/vsftpd.conf

anonymous_enable=YES
# Uncomment this to allow local users to log in.
local_enable=YES
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#anon_mkdir_write_enable=YES
#anon_upload_enable=YES

and change some boolean value
allow_ftpd_anon_write --> on
allow_ftpd_full_access --> on
ftp_home_dir --> on
ftpd_disable_trans --> on
ftpd_is_daemon --> on
and lastly after this configuration when try to login ftp server following command
[root@server1 media]# ftp 192.168.0.26
Connected to 192.168.0.26.
220 Welcome to blah FTP service.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (192.168.0.26:root): ftp
331 Please specify the password.
Password:
500 OOPS: vsftpd: refusing to run with writable anonymous root
Login failed.
ftp>
i'm not understand what is the meaning of
500 OOPS: vsftpd: refusing to run with writable anonymous root
and how to make a anonymous successfull login...
 
Old 01-27-2010, 06:28 AM   #2
dadrunamok
Member
 
Registered: Dec 2009
Location: Maryland, USA
Distribution: Ubuntu 11.04, that alternative OS from Washington State
Posts: 33

Rep: Reputation: 16
I am not an expert in these things, but it looks to me like your problem is these lines:

Quote:
#anon_mkdir_write_enable=YES
#anon_upload_enable=YES
and specifically the hash signs at the beginning, which would turn them into comments and cause them to be ignored.

No doubt somebody will correct my response in a friendly manner if I have steered off into a ditch on this one!
 
1 members found this post helpful.
Old 01-27-2010, 06:44 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
bharat*;

I strongly recommended removing your phone number and e-mail from your posts/sig. You are inviting unwanted attention.
You have e-mail enabled in your profile, so people can always reach you using the link.

If I were running an FTP server, I would NOT want anonymous users creating or removing directories.
 
Old 01-27-2010, 10:16 AM   #4
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
I belive dadrunamok is corect, those 2 lines are most likely the culprit. remove "#" sign in front of them to enable those commands. In any unix/linux script or config file "#" means commented line, the one that is skiped.
 
  


Reply

Tags
anonymous, ftp, login



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
change default vsftp anonymous accout directory /var/ftp to other directory? hocheetiong Linux - Newbie 2 01-24-2010 06:33 PM
[SOLVED] vsftpd: FTP clients work, ftp://xxxx in mozilla does not. Anonymous user prob? arashi256 Linux - Server 8 01-13-2010 09:31 AM
Why cannot remote create directory in ftp server vsftpd ychen184006 Linux - Server 1 09-16-2009 10:23 PM
create ftp user for vsftpd server without home directory cccc Linux - Networking 2 07-30-2005 06:32 AM
how to establish ftp server with proftp to allow anonymous user login icoming Linux - Networking 3 10-12-2004 10:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:44 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