LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-31-2010, 12:59 PM   #1
Legerarmy
LQ Newbie
 
Registered: Aug 2010
Posts: 8

Rep: Reputation: 0
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
 
Old 08-31-2010, 01:59 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
You realise you are giving your root password to anybody that cares to listen ?
 
Old 08-31-2010, 02:49 PM   #3
Legerarmy
LQ Newbie
 
Registered: Aug 2010
Posts: 8

Original Poster
Rep: Reputation: 0
No I dont give my root password
 
Old 08-31-2010, 03:16 PM   #4
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
Quote:
I'm trying to use my root account for the ftp.
???
 
Old 08-31-2010, 03:16 PM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,790
Blog Entries: 1

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
Quote:
Originally Posted by Legerarmy View Post
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.
 
Old 08-31-2010, 03:43 PM   #6
suprstar
Member
 
Registered: Aug 2010
Location: Atlanta
Distribution: ubuntu, debian
Posts: 142
Blog Entries: 2

Rep: Reputation: 21
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.

Last edited by suprstar; 08-31-2010 at 03:44 PM.
 
Old 08-31-2010, 04:36 PM   #7
Legerarmy
LQ Newbie
 
Registered: Aug 2010
Posts: 8

Original Poster
Rep: Reputation: 0
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?

Last edited by Legerarmy; 08-31-2010 at 07:19 PM.
 
Old 09-01-2010, 06:37 AM   #8
suprstar
Member
 
Registered: Aug 2010
Location: Atlanta
Distribution: ubuntu, debian
Posts: 142
Blog Entries: 2

Rep: Reputation: 21
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.

Last edited by suprstar; 09-01-2010 at 06:38 AM.
 
Old 09-01-2010, 07:04 AM   #9
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,790
Blog Entries: 1

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
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.
 
Old 09-01-2010, 07:31 AM   #10
Legerarmy
LQ Newbie
 
Registered: Aug 2010
Posts: 8

Original Poster
Rep: Reputation: 0
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

Last edited by Legerarmy; 09-01-2010 at 09:55 AM.
 
Old 09-01-2010, 10:42 AM   #11
Legerarmy
LQ Newbie
 
Registered: Aug 2010
Posts: 8

Original Poster
Rep: Reputation: 0
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

Last edited by Legerarmy; 09-01-2010 at 11:32 AM.
 
  


Reply

Tags
config, vsftpd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Config for VSFTPD dalponis Linux - Software 1 01-19-2006 05:01 PM
Vsftpd Config ? Is this possible? Jukas Linux - Software 5 11-03-2005 07:51 PM
VSFTPD Debian VSFTPD "unrecognised variable in config file" DCT Linux - Software 0 05-29-2004 11:59 PM
vsftpd config problems thesnaggle Linux - Networking 3 11-04-2003 01:35 PM
vsftpd config hda Linux - Software 7 10-16-2003 10:37 AM


All times are GMT -5. The time now is 10:25 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration