LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   vsFTPd - Anonymous Only... (https://www.linuxquestions.org/questions/linux-software-2/vsftpd-anonymous-only-567884/)

schiu 07-09-2007 01:39 PM

vsFTPd - Anonymous Only...
 
I am a newbie and running RH 7.1

I installed vsFTPd and am following a guideline to setup a FTP server (vsftpdrocks.org/source/)

I did everything up to the beginning of Step 4 (except the part for anonymous FTP)
Quote:

If you plan to have an anonymous FTP server:
mkdir /var/ftp
useradd -d /var/ftp ftp
If a user "ftp" already exists, you may want to do the following:
chown root.root /var/ftp
chmod og-w /var/ftp
Now, I am trying to "ftp localhost".
I got it up to the user name part.
I typed in my account user name, but it prompted me with "530 This FTP server is anonymous only"

My svftpd.conf
Quote:

local_enable=YES
write_enable=YES
local_umask=022
nopriv_user=nobody
anonymous_enable=NO
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_file=/var/log/vsftpd.log
ls_recurse_enable=NO
listen=YES
Can anyone help? Thanks.

Kaamos 07-09-2007 01:53 PM

Mmmm ... After the final configuration ... did you restart the service?

schiu 07-09-2007 02:04 PM

Quote:

Originally Posted by Kaamos
Mmmm ... After the final configuration ... did you restart the service?

After I restarted the computer, it did not prompted anonymous only this time... I can enter my user name and password. However, even though the local user name and password are correct, it said "530 login incorrect", "Login failed".

Kaamos 07-10-2007 10:27 AM

Quote:

Originally Posted by schiu
After I restarted the computer, it did not prompted anonymous only this time... I can enter my user name and password. However, even though the local user name and password are correct, it said "530 login incorrect", "Login failed".

no, i didn't say anything about rebooting your computer. I'm talking of the service "vsftpd".
When you make some changes in the config file, you have to restart (o start) the service.

schiu 07-10-2007 08:14 PM

Quote:

Originally Posted by Kaamos
no, i didn't say anything about rebooting your computer. I'm talking of the service "vsftpd".
When you make some changes in the config file, you have to restart (o start) the service.

I ain't sure how to restart the service...
Someone said by using
Code:

/etc/init.d/vsftpd start
, however, there is no such directory for me.

Kaamos 07-10-2007 09:29 PM

yup man ... That's correct.
Or taking advantage that we're talking about Fc ...
service vsftpd restart

cwygl 07-11-2007 05:40 AM

help
 
hi, how are you

1, My ftp can not work, on the client side I got the following
Z:\>ftp 10.56.0.166
Connected to 10.56.0.166.
500 OOPS: vsftpd: cannot locate user specified in 'chown_username':whoever
Connection closed by remote host.

then later it is "> ftp: connect :Unknown error number"

I check the vsftpd.conf, add ftp_username item, nothing changed. Also I check the service from the Desktop -> Management -> Service, ftp service is on, but netstat -a | grep ftp showed nothing, I tried to manually start vsftpd but failed

The following is on the debian console.
deb-bj:/etc/init.d# vsftpd start
500 OOPS: vsftpd: cannot open config file:start
deb-bj:/etc/init.d# vsftpd restart
500 OOPS: vsftpd: cannot open config file:restart


2, I know under redhat I can use "mount //10.56.0.158/share /mnt -o username= password= " to share a directory between windows OS and linux OS, but under debian the following information appeared

deb-bj:/etc/init.d# mount //10.56,0.158/share /mnt
mount: wrong fs type, bad option, bad superblock on //10.56,0.158/share,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

deb-bj:/etc/init.d#


what can I do


thanks a lot

best

Kaamos 07-11-2007 08:10 AM

Hmm ... about that .. You should check out again your config file, cuz' your pc is not enabling the port 21.
The other thing ... I would like to help you, but i don't know how thing work in Debian (in fact, i pretend to learn about it in the next summer)
Your post would be best answered if someone move it to the Debian forum

schiu 07-11-2007 09:02 AM

Quote:

Originally Posted by Kaamos
yup man ... That's correct.
Or taking advantage that we're talking about Fc ...
service vsftpd restart

It is correct?? But it said no such directory and did not work... So what should I do...

I am running out of ideas now...

Kaamos 07-13-2007 08:43 AM

you sure? .... That directory should be into /etc ...
You sure decompress the tar.gz archive and make the install?


All times are GMT -5. The time now is 05:27 AM.