LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-26-2010, 09:24 AM   #1
runcoderen
LQ Newbie
 
Registered: Aug 2010
Posts: 11

Rep: Reputation: 0
Unhappy ftp created directory operation failed


hi all:
I have seen a problem using ftp.
install vsftpd server by sudo apt-get install vsftpd.
I am sure vsftpd.conf have make write_enable=YES.
but when I using ftp localhost.
I make "mkdir test" to create a file box.
it notes : 550 created directory operation failed

there are two mainly answers to the question:
1:selinux reason
2:ftp chmod...

but it doesn't matter to my computer.

can anyone help me to solve the problem?
 
Old 08-26-2010, 12:20 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,157
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
Are you connecting as anonymous or as a regular user?
To enable mkdir for anonymous you need' "anon_mkdir_write_enable=YES"
If you're connecting as a normal user, run:
Code:
ls -ld /home/username
to see if you have write permissions on that directory.
 
Old 08-26-2010, 05:53 PM   #3
runcoderen
LQ Newbie
 
Registered: Aug 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Cool ftp created directory failed

Quote:
Originally Posted by bathory View Post
Are you connecting as anonymous or as a regular user?
To enable mkdir for anonymous you need' "anon_mkdir_write_enable=YES"
If you're connecting as a normal user, run:
Code:
ls -ld /home/username
to see if you have write permissions on that directory.
I have just tried my local account.
it does create an file box.

yesterday I have used the account "ftp" by the vsftpd default.
I don't know the "ftp" account is anonmous or local user. because I use the name "ftp" and passwd "ftp" to log in.
I think if I want to anonmous log in. I just need not to use name and passwd.

ps: I have make the "anon_mkdir_write_enable=YES" in the vsftpd.conf file...
 
Old 08-27-2010, 12:33 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,157
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
Hi,

When you're trying to connect as anonymous user, you are in fact using the rights of the ftp user (in vsftpd default configuration).
If you don't want to use anonymous ftp, comment out the relevant lines in vsftpd.conf.
If you want it, it's better not to give write permissions to anonymous user for obvious reasons.

Regadrs
 
Old 08-28-2010, 01:09 AM   #5
runcoderen
LQ Newbie
 
Registered: Aug 2010
Posts: 11

Original Poster
Rep: Reputation: 0
hi bathory
my problem now is create directory operation failed.
I don't know how to write code to create directory in ftp.
though I have created directory successfully by ftp command...
 
Old 08-28-2010, 12:28 PM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,157
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
Quote:
my problem now is create directory operation failed.
I don't know how to write code to create directory in ftp.
though I have created directory successfully by ftp command...
I cannot understand what are you trying to do. Can you clarify if you want to allow anonymous user to create directories?
Also could you post the whole vsftpd.conf?
 
  


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
Errno ftp error] 550 Failed to change directory Baslingappa.Bhujang LQ Suggestions & Feedback 2 07-30-2008 09:12 AM
FTP : failed to change directory 550 vijit Linux - Networking 2 04-08-2008 03:29 AM
"550 Failed to change directory." with FTP PDAquila Linux - General 1 05-23-2006 01:57 AM
eth0 Operation failed cvlinux Linux - Networking 0 09-10-2001 03:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:50 AM.

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