LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   vsftpd config (https://www.linuxquestions.org/questions/linux-software-2/vsftpd-config-829578/)

Legerarmy 08-31-2010 12:59 PM

vsftpd config
 
hi all.

I'm trying to use my root account for the ftp.
Now, he can connect but when i come in the map "home" its empty (in the ftp) but he can't get the information.

whats wrong whit my conf
vsftpd.conf:
Code:

anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
#anon_upload_enable=YES
#anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
#chown_uploads=YES
#chown_username=whoever
#xferlog_file=/var/log/xferlog
xferlog_std_format=YES
#idle_session_timeout=600
#data_connection_timeout=120
#nopriv_user=ftpsecure
#async_abor_enable=YES
#ascii_upload_enable=YES
#ascii_download_enable=YES
#ftpd_banner=Welcome to blah FTP service.
#deny_email_enable=YES
#banned_email_file=/etc/vsftpd/banned_emails
#chroot_list_enable=YES
#chroot_list_file=/etc/vsftpd/chroot_list
#ls_recurse_enable=YES
listen=YES
#listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES

Thanks, Regards,
Legerarmy

smoker 08-31-2010 01:59 PM

You realise you are giving your root password to anybody that cares to listen ?

Legerarmy 08-31-2010 02:49 PM

No I dont give my root password

smoker 08-31-2010 03:16 PM

Quote:

I'm trying to use my root account for the ftp.
???

Hangdog42 08-31-2010 03:16 PM

Quote:

Originally Posted by Legerarmy (Post 4083918)
No I dont give my root password

No, you just think you don't. FTP traffic is not encrypted, so when you log in, you're showing your root password to anyone listening.

suprstar 08-31-2010 03:43 PM

It's TERRIBLE practice, but if you absolutely must - edit the files /etc/vsftpd.ftpusers and /etc/vsftpd.user_list and remove the 'root' line from each file. Linux tried to make it hard for you to do crazy things without knowing about it.

Legerarmy 08-31-2010 04:36 PM

make it hard?
Just 3 lines to add and it almost works:P

But ok.
I will creat new ftp account,
But can somebody help me to config ?

Need 1 user:
Mitchel

He must only see the "home" map and he have all the rights in the home map?
What to do?


I already have the map home
And withs lines i have to delete in de vsftpd.conf?

i get this error:
Antwoord: 150 Here comes the directory listing.
Antwoord: 226 Transfer done (but failed to open directory).

Antwoord = Answer
whats wrong? :(

suprstar 09-01-2010 06:37 AM

Assuming permissions on the home directory are correct, maybe SELinux is interfering with it. You'd get this error if SELinux wasn't properly configured for the service. You can check for this by disabling SELinux - edit /etc/selinux/config and set

SELINUX=disabled

and reboot, see if it works then.

Hangdog42 09-01-2010 07:04 AM

Is there any hardware between you and the FTP server? Something like a router? That kind of behavior (make the connection but can't see the directory) happens frequently when the FTP client and server can use the ports for login, but can't make the connection for data. You might want to look at this to understand how FTP works, and how hardware like a router can cause problems.

Legerarmy 09-01-2010 07:31 AM

I did:

now i got this error with starting ftpd
SELINUX=disabled

Starting vsftpd for vsftpd: 500 OOPS: unrecognised variable in config file: SELI NUX

i got centOS system..
what to do..

oh I see, I dont have to do this in vsftpd.conf.
I found the file, checking now....

He can't connect at all now.. :(
Error: Connection timed out
Error: Could not connect to server

Legerarmy 09-01-2010 10:42 AM

If i Disable the SELINUX i got more probles.

1. port 20 (FTP) Dosn't works
2. other ports don't work for my game servers..

So what to do?

Thanks it works, forgot to turn the firewall off


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