#1  
Old 5th January 2009, 22:20
ahmedbj ahmedbj is offline
Junior Member
 
Join Date: Jan 2009
Location: Morocco,Safi
Posts: 17
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to ahmedbj Send a message via Yahoo to ahmedbj
Default Probleme with vsFTPd

Hello everybody
I had installed vsFTPd and configure it for an anonymous use
i had specified the default directory which vsftpd will try to change into after an anonymous login into /home/lftp and put some file (pdf,...)
but when i try to connect from my browsers and try to download some file it does not work and show me this error '550 Failed to change directory' .
for exemple when i tried to download 'cv.pdf' my ftp server consider it like a file and open it like a file that coutain other files,...
can someone help me please.
that's what contain my vsftpd.conf

listen=YES
anonymous_enable=YES
connect_from_port_20=YES
write_enable=YES
anon_root=/home/lftp/
anon_world_readable_only=YES
no_anon_password=YES
anon_mkdir_write_enable=YES
dirlist_enable=YES
use_localtime=YES
download_enable=YES

sorry for my bad english
Reply With Quote
Sponsored Links
  #2  
Old 6th January 2009, 02:33
archerjd archerjd is offline
Member
 
Join Date: Dec 2006
Posts: 66
Thanks: 6
Thanked 6 Times in 6 Posts
Default

It looks like the file permissions for the pdf are wrong.

Can you post the output of ls -l pdf cv.pdf?
Reply With Quote
  #3  
Old 7th January 2009, 11:41
ahmedbj ahmedbj is offline
Junior Member
 
Join Date: Jan 2009
Location: Morocco,Safi
Posts: 17
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to ahmedbj Send a message via Yahoo to ahmedbj
Default

that what gave me
-rwx------ 1 ahmedbj ahmedbj 42129 2008-12-09 17:56 20081209_cv.pdf
Yes it was a problem with permissions because wheni tried 775 it works
so should i change the permission every time that i add a new file in the server, knowing that my ftp file have 775 permission?
__________________
99% of the problemes that are found in linux are located between the keyboard and chair

Last edited by ahmedbj; 7th January 2009 at 11:51.
Reply With Quote
  #4  
Old 7th January 2009, 20:04
archerjd archerjd is offline
Member
 
Join Date: Dec 2006
Posts: 66
Thanks: 6
Thanked 6 Times in 6 Posts
Default

Ok, now I see what's happening. The folder /home/lftp needs to be owned by the same user that the vsftpd daemon is running as.
When you created the pdf file it had the ownership of ahmedbj instead of the same account that vsftpd runs as. In this case you should change the permissions of the pdf back and then change the ownership to that of vsftpd.
if you are adding new files to the folder then you should chown them to the vsftpd account. So copy all the new files into the folder and then use chown -R [user] to do the whole folder.
__________________
The very powerful and the very stupid have one thing in common.
Instead of altering their views to fit the facts, they alter the facts
to fit their views ... which can be very uncomfortable if you happen to
be one of the facts that needs altering.

-- Doctor Who, "Face of Evil"

Last edited by archerjd; 7th January 2009 at 20:40.
Reply With Quote
  #5  
Old 19th January 2009, 18:53
ahmedbj ahmedbj is offline
Junior Member
 
Join Date: Jan 2009
Location: Morocco,Safi
Posts: 17
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to ahmedbj Send a message via Yahoo to ahmedbj
Default

i have noticed that i can't have acces to the server until i get connexion in my computer, i don't that's normal because i'm working in the same station it should work even if i'm note connected?
and i wonder if i can have anonymous and local access at the same time in the same server?
__________________
99% of the problemes that are found in linux are located between the keyboard and chair
Reply With Quote
  #6  
Old 20th January 2009, 04:31
archerjd archerjd is offline
Member
 
Join Date: Dec 2006
Posts: 66
Thanks: 6
Thanked 6 Times in 6 Posts
Default

ahmedbj,
vsftpd should run as a service, not when you are logged on.

Now if you are talking about when you are connected to the internet, then yes you will have that kind of trouble. You must be connected to the internet in order to access vsftpd from another location.

One other thing, if you are operating vsftpd with anonymous upload and download access inside an internal network then that is ok. Otherwise this configuration is very insecure. This means anyone can upload their stuff. are you sure you want that?
__________________
The very powerful and the very stupid have one thing in common.
Instead of altering their views to fit the facts, they alter the facts
to fit their views ... which can be very uncomfortable if you happen to
be one of the facts that needs altering.

-- Doctor Who, "Face of Evil"
Reply With Quote
  #7  
Old 20th January 2009, 13:33
ahmedbj ahmedbj is offline
Junior Member
 
Join Date: Jan 2009
Location: Morocco,Safi
Posts: 17
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to ahmedbj Send a message via Yahoo to ahmedbj
 
Default

Quote:
Now if you are talking about when you are connected to the internet, then yes you will have that kind of trouble. You must be connected to the internet in order to access vsftpd from another location.
No the problem that i want to have access from the same station where vsftpd is installed but it does not work until i have internet.

Quote:
One other thing, if you are operating vsftpd with anonymous upload and download access inside an internal network then that is ok. Otherwise this configuration is very insecure. This means anyone can upload their stuff. are you sure you want that?
what can you tell me to do? because it's the first time that i have tried to configure vsftpd
thank you
__________________
99% of the problemes that are found in linux are located between the keyboard and chair
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
VSFTPD 530:cannot login puredevotion HOWTO-Related Questions 1 24th June 2008 17:43
Vsftpd Service is Offline nasir Installation/Configuration 8 9th February 2008 19:32
VsFTPd with Quota and MySQL (if possible) markg85 Suggest HOWTO 2 16th August 2007 16:01
vsftpd difficulties teves Installation/Configuration 2 19th October 2006 09:51
VSFTPD & IDENT Lookups again trueshanti Installation/Configuration 5 3rd September 2006 14:36


All times are GMT +2. The time now is 01:40.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.