LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-08-2013, 08:24 PM   #1
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Rep: Reputation: 2
ftp not work


hello minds,
i try to install proftpd pure-ftpd vsftpd
but in all i have the same problem
"530 Login incorrect."
and i make useradd and put password for it!!
any help please
thank you
 
Old 02-08-2013, 11:53 PM   #2
fortran
Member
 
Registered: Nov 2011
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Fedora
Posts: 300
Blog Entries: 2

Rep: Reputation: 51
Please tell your distribution with version.

Have you disabled SElinux? use following command to disable it.
$ echo 0 > /selinux/enforce
or
$ setenforce 0

The following parameters should be in vsftpd.conf file

anonymous_enable=NO
local_enable=YES
write_enable=YES
connect_from_port_20=YES
chroot_local_user=YES
listen=YES
local_root=/var/www/html
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES

If not, set these parameters and restart the vsftpd using
$ service vsftpd restart
 
Old 02-09-2013, 05:35 AM   #3
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Original Poster
Rep: Reputation: 2
i set these parameters but the same problem
what is the correct way to add new user ? may be this is the problem ?
thank you
 
Old 02-09-2013, 05:59 AM   #4
fortran
Member
 
Registered: Nov 2011
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Fedora
Posts: 300
Blog Entries: 2

Rep: Reputation: 51
Add new ftp user using following command.
$ sudo adduser -c 'FTP USER hacker' -m hacker
where username is hacker, now set password for this new user.
$ sudo passwd hacker

Now try to login with these new details.
 
Old 02-09-2013, 07:12 AM   #5
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Original Poster
Rep: Reputation: 2
with out adding group for the user ??

---------- Post added 02-09-13 at 08:12 AM ----------

and how the user will access for ftp only ?
 
Old 02-09-2013, 07:16 AM   #6
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Original Poster
Rep: Reputation: 2
i mean i want it to just login with ftp not ssh also
 
Old 02-09-2013, 07:24 AM   #7
fortran
Member
 
Registered: Nov 2011
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Fedora
Posts: 300
Blog Entries: 2

Rep: Reputation: 51
If you are trying to login using root user, it is not possible. It will give following error.
Code:
Response:	530 Permission denied.
Error:	Could not connect to server
Root user can be connected using sftp.

But if you are trying to connect using normal user which you made during installation or adduser command. It should be logged in.
But if your SElinux is enabled, it does not give login incorrect error. Generally it gives following error.
Code:
"500 oops cannot change directory /home/user in ftp"
can you tell me your linux distribution and version like are you using centOS or ubuntu or fedora?

If you are trying to login using regular user and you have set above parameter. It should log in.
There should not be repeat parameter in the file. Linux will read above one.
Example - You have pasted these parameters at bottom of the page in conf file. It will not work.
You have to search the parameter in the conf file and set the according to above comment.
 
Old 02-09-2013, 07:26 AM   #8
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Original Poster
Rep: Reputation: 2
thank you pavi_kanetkar
its all done
 
  


Reply



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
ftp over ssh tunnel; ftp refuses to work jakykong Linux - Networking 16 10-16-2011 07:34 AM
[SOLVED] vsftpd: FTP clients work, ftp://xxxx in mozilla does not. Anonymous user prob? arashi256 Linux - Server 8 01-13-2010 09:31 AM
ftp can not work cwygl Linux - Server 6 07-24-2007 09:27 PM
ftp can not work cwygl Linux - Server 3 07-12-2007 02:12 AM
Does my ftp work? evildreamer Linux - Networking 3 09-19-2006 07:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:48 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration