Web Hosting Talk







View Full Version : VSftpd issues


Sevoma973
08-16-2004, 04:05 PM
I setup a server with Whitebox Linux and everything but ftp is working great. I am using VSftpd (please note i do have a router) and set it up properly. When I try to log in the ftp I get this:

Status: Connecting to ftp.sevoma.******** ...
Status: Connected with ftp.sevoma.********. Waiting for welcome message...
Response: 220 (vsFTPd 1.2.0)
Command: USER nobody
Response: 331 Please specify the password.
Command: PASS ******
Response: 530 Login incorrect.
Error: Unable to connect!

I've tryed numerous ways to fix this; no luck. Please help
me and thanks in advance.

icgmedia
08-16-2004, 04:52 PM
I'm probably missing something, but why are you trying to login with username 'nobody'?

Steve

CArmstrong
08-16-2004, 05:17 PM
More than likely, 'nobody' has no valid login shell. This could be why it's not letting you FTP in. (vsftpd has a configuration setting relating to this).

But I agree with Steve: Why in the world are you trying to login as nobody?

Sevoma973
08-16-2004, 07:17 PM
It autpmaticly makes user nobody on install its the same with user root too.

icgmedia
08-16-2004, 07:50 PM
You wouldn't normally login with nobody or root using FTP. Did you try logging in with a normal user account?

Sevoma973
08-16-2004, 08:08 PM
I have'nt tryed a different user account because I shut off my server. I will try it when I get back from vacation. Until then, thanks for the help!

Sevoma973
08-24-2004, 03:32 PM
I think i solved the problem but i will not be sure unil I check on a remote computer. Thanks for your help!

Sevoma973
08-25-2004, 12:32 PM
I created the user sevoma and tried uploading a file. It did not work, here is my log:

Status: Connecting to 192.168.1.105 ...
Status: Connected with 192.168.1.105. Waiting for welcome message...
Response: 220 (vsFTPd 1.2.0)
Command: USER sevoma
Response: 331 Please specify the password.
Command: PASS *******
Response: 230 Login successful.
Command: FEAT
Response: 500 Unknown command.
Status: Connected
Status: Retrieving directory listing...
Command: CWD /
Response: 250 Directory successfully changed.
Command: PWD
Response: 257 "/"
Command: PASV
Response: 227 Entering Passive Mode (192,168,1,105,175,253)
Command: TYPE A
Response: 200 Switching to ASCII mode.
Command: LIST
Response: 150 Here comes the directory listing.
Response: 226 Directory send OK.
Status: Directory listing successful
Status: Starting upload of C:\Documents and Settings\All Users.PRECILLA-T5LSVQ\Desktop\stuff for server\backup of site\ai.html
Command: TYPE A
Response: 200 Switching to ASCII mode.
Command: PASV
Response: 227 Entering Passive Mode (192,168,1,105,26,35)
Command: STOR ai.html
Response: 550 Permission denied.
Error: Upload failed
Status: Retrieving directory listing...
Command: PASV
Response: 227 Entering Passive Mode (192,168,1,105,92,74)
Command: TYPE A
Response: 200 Switching to ASCII mode.
Command: LIST
Response: 150 Here comes the directory listing.
Response: 226 Directory send OK.
Status: Directory listing successful
Command: TYPE A
Response: 200 Switching to ASCII mode.

I don't know how to fix this. Please help! oh and I did try chmod go-rwx *

zupanm
08-25-2004, 12:36 PM
sounds like you are behind a NAT.. so try using active ftp.. and forward port 20 back to your internal IP

Sevoma973
08-25-2004, 12:37 PM
How do I do that?

Sevoma973
08-25-2004, 01:02 PM
How do I forward port 20 back to my internal ip? In my router config do I use port forwarding? Please help.

zupanm
08-25-2004, 01:25 PM
if your desktop is behind a router.. you have to forward it in the router config


active ftp uses port21 to connect but port 20 for data.. ie.. listing a dir

passive ftp will create a random high port on the server to send data back to

Sevoma973
08-25-2004, 03:08 PM
how do I set up the router for active ftp?

zupanm
08-25-2004, 04:21 PM
you set the client on your end to do active ftp

Sevoma973
08-25-2004, 05:54 PM
Ok. I disabled the passive mode so I am asuming it is in active mode. I shutdown my firewall, then tried it. It is the same thing I can't upload or download or list

icgmedia
08-25-2004, 06:09 PM
To me, the 'permission denied' appears to be coming from the server. Did you check the logs on the server to see if there's anything on there related to this? In your vsftpd.conf , do you have "xferlog_enable=YES"?

Within which directory are you attempting to upload files? From the example you showed above, the first thing you're doing is changing to the / directory. Does user sevoma have permissions to write to the / directory? Hopefully not, but if you've used the chroot function of vsftp then you may only be in sevoma's home directory which would be ok as long as that user has a home directory and has permissions to write to it.

Steve

Sevoma973
08-25-2004, 06:49 PM
I don't have the vsftpd log on, but I will turn it on. This is from messages log (not vsftpd log):

Aug 25 11:57:04 localhost xinetd[1551]: Error parsing attribute user - DISABLING SERVICE [file=/etc/xinetd.d/vsftpd] [line=6]
Aug 25 11:57:04 localhost kernel: TLAN: eth0: Autonegotiation complete.
Aug 25 11:57:04 localhost xinetd[1551]: Server /usr/sbin/vsftpd^M is not executable [file=/etc/xinetd.d/vsftpd] [line=7]
Aug 25 11:57:04 localhost kernel: TLAN: Starting internal PHY with FULL-DUPLEX
Aug 25 11:57:04 localhost kernel: TLAN: eth0: Link active
Aug 25 11:57:04 localhost xinetd[1551]: Error parsing attribute server - DISABLING SERVICE [file=/etc/xinetd.d/vsftpd] [line=7]
Aug 25 11:57:06 localhost sendmail: sendmail startup succeeded
Aug 25 11:57:06 localhost sendmail: sm-client startup succeeded
Aug 25 11:57:06 localhost gpm: gpm startup succeeded
Aug 25 11:57:07 localhost xinetd[1551]: xinetd Version 2.3.12 started with libwrap loadavg options compiled in.
Aug 25 11:57:07 localhost xinetd[1551]: Started working: 3 available services

Sevoma973
08-25-2004, 07:22 PM
Oh I did have vsftplogs on. It did not report anything. It just said:

Wed Aug 25 19:12:01 2004 [pid 3772] CONNECT: Client "192.168.1.101"
Wed Aug 25 19:12:01 2004 [pid 3771] [sevoma] OK LOGIN: Client "192.168.1.101"

icgmedia
08-25-2004, 07:24 PM
*shrug* Check the permissions of the directory into which you were trying to upload the file.

Sevoma973
08-25-2004, 07:26 PM
I set the permissions to 777 but it will not work still

Sevoma973
08-25-2004, 07:29 PM
My ftp client just says: Critical Transfer Error

Sevoma973
08-26-2004, 09:16 PM
Ok is there any other way to transfer whole folders and files as big as 250mb besides ftp?

icgmedia
08-26-2004, 09:52 PM
scp is my transfer method of choice.