vsftpd error message
I finally got my linux box running vsftpd last night so I thought I would attempt jailing users, but it didn't go as planned, I restored all the files that I changed and deleted the files that I created ( /etc/vsftpd.chroot_list )
But now I'm getting the error message: 500 OOPS str_getpwnam: ftpsecure whenever I try to log-in using gftp on my other computer. I'm assuming that this has something to do with not being able to retrieve usernames, I was wondering if anyone else had seen this one before and might offer some advice. Thanks |
Hi peteABK.
What linux distro are you using? Mandrake, Redhat... ? |
Redhat 9 hopefully you can help
thanks |
peteABK,
I have RedHat 9 myself. When I did my install of RH9 I choose nearly everything. :) Would vsftpd have stopped? /sbin/service vsftpd status tells you it is still running? There is an faq here that mentions that error you are getting: http://mrtg.planetmirror.com/pub/vsf...ftpd-1.1.2/FAQ Maybe help? :) |
Sorry but that's not the problem, vsftpd is running and I checked the faq, it says that the user "nobody" propbably isn't present but it is and it is in the allowed file too.
Thanks for you help, but the problem remains. |
hamster,
I would like to thank you for you help, after scanning through these forums for a while and downloading a fresh config file, I finally walked myself through this and I don't have this problem any more. I can't really say what was wrong, all I did was change the config file one item at a time. But thanks again. |
Just emerged vsftpd, gone through the manuals, and put the following .conf together:
------------------------------------------------ # $Header: /home/cvsroot/gentoo-x86/net-ftp/vsftpd/files/vsftpd.conf,v 1.2 2002/05/04 03:42:50 woodchip Exp $ ### General settings ftpd_banner=Welcome to giraff FTP service. listen=YES max_clients=5 max_per_ip=4 connect_from_port_20=YES setproctitle_enable=YES text_userdb_names=YES nopriv_user=ftp dirmessage_enable=YES message_file=.message write_enable=YES ### Anonymous access anonymous_enable=NO no_anon_password=YES anon_upload_enable=NO anon_mkdir_write_enable=NO anon_other_write_enable=NO anon_root=/home/ftp ftp_username=ftp anon_umask=077 anon_max_rate=50000 #chown_uploads=YES #chown_username=root ### Local users local_enable=YES chroot_local_user=YES local_umask=077 local_max_rate=0 #chroot_list_enable=YES #chroot_list_file=/etc/vsftpd/vsftpd.chroot_list ### Guest guest_enable=NO guest_username=ftp ### ASCII transfer ascii_upload_enable=NO ascii_download_enable=NO ### Logging xferlog_enable=YES xferlog_file=/var/log/vsftpd/vsftpd.log ### Performance idle_session_timeout=120 data_connection_timeout=120 accept_timeout=60 connect_timeout=60 ---------------------------------------------------- By probing #vsftpd & I got the 500 oops: missing value in config file. Any ideas? I looked through the .conf manual but ain't got a clue what I've missed. :scratch: |
To be honest I'm still having troubles letting users log in from other computers. But when I ftp on the local maching it works fine. What I would try is add this to your configuration file:
pam_service_name=vsftpd (from what I have found so far is that this allows vsftpd to access your user and groups configurataion, checking passwords etc) userlist_deny=NO userlist_file=/etc/vsftpd.user_list (the first line says that you should not deny the users in the userlist_file, changing it to "YES" will deny them, the second line just points to the file with the user names) chroot_list_enable=YES chroot_list_file=/etc/vsftpd/vsftpd.chroot_list (the first line here tells vsftpd to "jail" the users to their specified home directory, the file in the second line should contain the same user names as the the file in the userlist_file above so that it is consistant for every user) I hope this helps a little, I know it's not the complete solution but I got side-tracked on apche virtual hosting for a while, if you find out anything else I would appreciate the post. Good luck |
giraff
I know I just replied to your post, but I was playing with my server a bit and figured out that it is working. I'm sure I have more tweaking to do, but if you want a working copy of vsfpd.conf I'll share mine with you check out www.virtualoutsource.net/vsftpd.conf that should get you started. |
Thanx, I'll give it a shot as soon as I finish my exam... ÷)
|
Hello All, I noticed this happening after I did the latest sp update for redhat 9. in the vsftpd.conf file there is a tag that is nopriv_user=ftpsecure in my orig conf it was remed out but in the "updated" conf it is active. I remed it out again and this error went away. I hope this helps
Sagan |
Hello All, I noticed this happening after I did the latest sp update for redhat 9. in the vsftpd.conf file there is a tag that is nopriv_user=ftpsecure in my orig conf it was remed out but in the "updated" conf it is active. I remed it out again and this error went away. I hope this helps
Sagan |
Ok, I don't know if I have a user account(well, I run usermod nobody and I don't get a "user doesn't exist" error. I am getting the str_getpwnam: ftpsecure error.
This is very frustrating. Any advice is appreciated. |
I've been trying to do the whole "vsftp" thing as well, and I too got the 500 OOPS str_getpwnam: ftpsecure error message. I commented out the nopriv_user field in vsftpd.conf and I could log in locally, so I think it's a problem with that
|
All times are GMT -5. The time now is 09:00 PM. |