LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 03-07-2012, 03:59 PM   #1
rgundabhat
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Rep: Reputation: Disabled
Not able to connect to redhat server using filezilla and new test user


I have created a new test user on the redhat server and I am using this user in filezilla to connect to the server.

error@var/log/secure
moodletest sshd[8066]: fatal: Read from socket failed: Connection reset by peer

Also, I am able to connect using root account but not with this new account. I created this account using useradd command. No password has been assigned to this acocunt.

Please help
 
Old 03-08-2012, 05:27 AM   #2
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
untill and unless you give a password to your account it is not activated and cannot be used
 
Old 03-09-2012, 03:28 PM   #3
rgundabhat
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
I realized about the passwrd and assigned one.
Here is the story now,
1. Created a user using below command so that user should get access to the shell but only to a folder to drop files.
useradd -s /sbin/nologin -d /var/www/html webuser
2. assigned a password to the user
3. made user the owner of the folder to which he needs the access.
4. in the file zilla when I try to connect FTP (selected FTP in the protocol drop down of the site manager). I get the below error in the filezilla. No other error is displayed on the server at tail -f /var/log/secure


Status: Connecting to xxxxxxxx.111...
Status: Connecting to xxxxxxxxx:21...
Status: Connection established, waiting for welcome message...
Response: 220 (vsFTPd 2.0.5)
Command: USER webuser
Response: 331 Please specify the password.
Command: PASS *******
Response: 530 Login incorrect.
Error: Critical error
Error: Could not connect to server

5. In the filezilla when I user SFTP protocaol (selected FTP in the protocol drop down of the site manager)I get the below errors

@ file zilla

Status: Connecting to 192.xxxxxx...
Response: fzSftp started
Command: open "webuser@xxxxxxxx" 22
Command: Pass: *******
Error: Server unexpectedly closed network connection
Error: Could not connect to server
Status: Waiting to retry...
Status: Connecting to xxxxxxxxxxxx...
Response: fzSftp started
Command: open "webuser@xxxxxxxx" 22
Command: Pass: *******
Error: Server unexpectedly closed network connection
Error: Could not connect to server

@ linux server tail -f /var/log/secure
r 9 15:24:42 moodletest sshd[14669]: pam_ldap: ldap_simple_bind Can't contact LDAP server
Mar 9 15:24:42 xxxxxxx sshd[14669]: Failed password for webuser from xxxxxxxxxxxxxx port 53736 ssh2
Mar 9 15:24:42 xxxxxxxxxx sshd[14670]: fatal: Access denied for user webuser by PAM account configuration
Mar 9 15:24:47 xxxxxxxxxxxxxx sshd[14671]: pam_ldap: ldap_simple_bind Can't contact LDAP server
Mar 9 15:24:47 mxxxxxxxxt sshd[14671]: Failed password for webuser from xxxxxxxxxxxx port 53746 ssh2
Mar 9 15:24:47 xxxxxxxxxsshd[14672]: fatal: Access denied for user webuser by PAM account configuration


Suggestions please. All I want to to create a user and provide FTP access to a certain folder on the linux server.

Last edited by rgundabhat; 03-09-2012 at 03:32 PM.
 
Old 03-10-2012, 11:27 AM   #4
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
why have you assigned a nologin shell for the user instead of /bin/bash?
 
Old 03-10-2012, 01:56 PM   #5
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi,

no need to assign bash shell, there's trouble with your vsftpd PAM module.

Check your PAM authorization file if you're doing with LDAP I'm sorry I don't know how to help.
How does your /etc/pam.d/vsftpd PAM config file look like:
Code:
auth       required     pam_listfile.so item=user sense=deny file=/etc/vsftpd/ftpusers onerr=succeed
auth       required     pam_shells.so
auth       include      system-auth
account    include      system-auth
session    include      system-auth
session    required     pam_loginuid.so
good luck
 
  


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
filezilla server ambelos General 7 11-27-2009 09:18 AM
Filezilla server for linux? permalac Linux - Software 4 12-03-2008 06:06 AM
A link to test how Fedora/Redhat Directory Server works? chickenjoy Red Hat 0 06-11-2007 08:02 PM
FileZilla Server and SSL BlackHatRob Linux - Software 0 05-29-2005 02:04 AM
Is samba required to connect to a Windows Advanced server from RedHat 8.0 server? NemesisStar Linux - Hardware 1 10-20-2003 12:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 02:33 PM.

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