LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-08-2008, 01:28 AM   #1
vijit
LQ Newbie
 
Registered: Apr 2008
Location: Dehradun, India
Distribution: Fedora Core 5
Posts: 5

Rep: Reputation: 0
Question FTP : failed to change directory 550


I created a link to a directory and put it in the pub. When someone is trying to get into that directory through that link on the ftp page following error is popping up :

550 failed to change directory


My /etc/vsftpd/vsftpd.conf file looks like

anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
#anon_upload_enable=YES
#anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
#chown_uploads=YES
#chown_username=whoever
#xferlog_file=/var/log/vsftpd.log
xferlog_std_format=YES
#idle_session_timeout=600
#data_connection_timeout=120
#nopriv_user=ftpsecure
#async_abor_enable=YES
#ascii_upload_enable=YES
#ascii_download_enable=YES
pam_service_name=vsftpd
userlist_enable=YES
#enable for standalone mode
listen=YES
tcp_wrappers=YES
#ls_recurse_enable=YES
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd/chroot_list

Please help ..
 
Old 04-08-2008, 02:30 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You can try to add:
Code:
chroot_local_user=NO
to see if it works, but IIRC you should use mount --bind to mount the directory you want in the user's homedir:
Code:
mount --bind /path/to/somedir /home/user/somedir

Last edited by bathory; 04-08-2008 at 03:30 AM.
 
Old 04-08-2008, 03:29 AM   #3
vijit
LQ Newbie
 
Registered: Apr 2008
Location: Dehradun, India
Distribution: Fedora Core 5
Posts: 5

Original Poster
Rep: Reputation: 0
Smile it worked

Quote:
Originally Posted by bathory View Post
You can try to add:
Code:
chroot_local_user=NO
to see if it works, but IIRC you should use mount --bind to to mount the directory you want in the user's homedir:
Code:
mount --bind /path/to/somedir /homeuser/somedir
mounting the directory onto a new directory worked ... thanks a lot bathtroy .. !!
 
  


Reply



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
vsftp 550 failed to change directory? swatward Linux - Software 2 08-25-2010 07:10 PM
change default vsftp anonymous accout directory /var/ftp to other directory? hocheetiong Linux - Newbie 2 01-24-2010 06:33 PM
vsftp - 550 Failed to change directory mayankh Linux - Server 3 06-24-2008 10:52 PM
"550 Failed to change directory." with FTP PDAquila Linux - General 1 05-23-2006 01:57 AM
Can not change directory when ftp tradewind Linux - Newbie 2 06-09-2004 05:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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