Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vsftpd asks for anon password [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
alkan
Guru
Guru


Joined: 06 Aug 2004
Posts: 385
Location: kasimlar yaylasi

PostPosted: Wed Aug 17, 2005 4:57 pm    Post subject: vsftpd asks for anon password [Solved] Reply with quote

I'd like to serve some pictures via ftp for some other site hosted somewhere else.
I set:
Code:

anonymous_enable=YES
no_anon_password=YES

But vsftpd still asks for a password. Any idea how to set up vsftpd so it doesn't ask for a password for anonymous users.
It works with default proftpd configiration. But i want to use vsftpd if possible.


Last edited by alkan on Fri Aug 19, 2005 6:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Aug 17, 2005 6:58 pm    Post subject: Reply with quote

I can't get it to work either - looks like a vsftpd bug
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
thechris
Veteran
Veteran


Joined: 12 Oct 2003
Posts: 1203

PostPosted: Wed Aug 17, 2005 9:12 pm    Post subject: Reply with quote

to prevent typos, try logging in as "ftp". this is the default anon user. For me, it works just fine.

did you do a passwd ftp ?
_________________
HW problems. It's a VIA thing.
Back to top
View user's profile Send private message
alkan
Guru
Guru


Joined: 06 Aug 2004
Posts: 385
Location: kasimlar yaylasi

PostPosted: Wed Aug 17, 2005 10:28 pm    Post subject: Reply with quote

I didn't set ftp password. Also I can't tell the visitors adjust their browser to use ftp as anon user.

Those images are embedded into web pages which i don't have much control of. It just have to work when somebody points any browser to those images.

I am using proftpd for now until i have a solution.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Aug 18, 2005 6:42 am    Post subject: Reply with quote

Browsers should automatically work. Firefox logs in as anonymous just fine on my vsftpd server without having to enter a password - maybe it was just lftp always asking for password?
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
alkan
Guru
Guru


Joined: 06 Aug 2004
Posts: 385
Location: kasimlar yaylasi

PostPosted: Thu Aug 18, 2005 7:16 am    Post subject: Reply with quote

with konqueror, it asks for password,
with firefox, i am getting:
Quote:

500 OOPS: vstpd: refusing to run with writable anonymous root


vstpd USE flags are
Quote:

net-ftp/vsftpd-2.0.3-r1 +pam +ssl +tcpd -xinetd


And my vstpd configration is
Code:

background=YES
listen=YES
anonymous_enable=YES
no_anon_password=YES
dirmessage_enable=YES
connect_from_port_20=YES
xferlog_enable=YES
xferlog_file=/var/log/vsftpd.log
nopriv_user=nobody


I am missing something?
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Aug 18, 2005 7:48 am    Post subject: Reply with quote

alkan wrote:
with konqueror, it asks for password,
with firefox, i am getting:
Quote:

500 OOPS: vstpd: refusing to run with writable anonymous root


...

I am missing something?


The 500 OOPSis generated by vsftpd itself - you'll see it with lftp or FileZilla too.

What are the permsissions of ftp's home directory?
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
alkan
Guru
Guru


Joined: 06 Aug 2004
Posts: 385
Location: kasimlar yaylasi

PostPosted: Thu Aug 18, 2005 1:03 pm    Post subject: Reply with quote

permission of the ftp directory
Code:

ls -dl /home/ftp
drwxrwsr-x  2 ftp ftp 20480 Aug 17 13:04 /home/ftp
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Aug 18, 2005 7:58 pm    Post subject: Reply with quote

alkan wrote:
permission of the ftp directory
Code:

ls -dl /home/ftp
drwxrwsr-x  2 ftp ftp 20480 Aug 17 13:04 /home/ftp


Remove the sticky bit and group write and change owner to root
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
alkan
Guru
Guru


Joined: 06 Aug 2004
Posts: 385
Location: kasimlar yaylasi

PostPosted: Fri Aug 19, 2005 3:26 pm    Post subject: Reply with quote

yes, it works that way. Thank you.

my intention changing the permission was to allow local users in ftp group easily update the ftp contents.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Aug 19, 2005 4:28 pm    Post subject: Reply with quote

So create a folder in /home/ftp that allows this.

It's only the root folder that you can't allow ftp user to write to.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum