LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-22-2003, 09:33 PM   #1
Lanmate
LQ Newbie
 
Registered: Dec 2003
Location: UK
Posts: 16

Rep: Reputation: 0
Only Root Login via ssh / ftp


I can only log into my RedHat 9 install as root via ssh and ftp (tried vsftpd, proftpd). Once logged in as root in ssh, i can su to any other user. From the messages log i found:

Dec 23 02:32:59 localhost sshd(pam_unix)[1187]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=10.0.0.4 user=outlawz
Dec 23 02:33:25 localhost sshd(pam_unix)[1189]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=10.0.0.4 user=outlawz
Dec 23 02:34:19 localhost sshd(pam_unix)[1193]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=10.0.0.4 user=outlawz

When using SSH Client from a windows machine, it keeps popping up the enter password box, i enter the correct password and it does the same.

I was trying to force ftp users to chroot to theie home directory which is when i came upon this. I originally thought it was a problem with the ftpd configuration but ive tried all the options that should work.

Thanks in advance.
Lanmate
 
Old 12-22-2003, 10:07 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
I don't really understand what your trying to accomplish, but I would highly suggest to not allow root any type of remote access, only the ability to su or setup sudo as this is a bad security risk, even using ssh.

If you want to jail ftp users to their home directory, you should read up on whatever ftp daemon your using and most of the time you can do this by adding whatever to the config file for ftp, etc.
 
Old 12-22-2003, 11:11 PM   #3
Lanmate
LQ Newbie
 
Registered: Dec 2003
Location: UK
Posts: 16

Original Poster
Rep: Reputation: 0
I know i shouldnt allow root access to these programs, but the point is, i cannot connect via ssh of ftp with any other username.

I did read up on the ftpd servers i tried, according to what i read it was set up correctly but it just wouldnt let any other user than root connect.

Last edited by Lanmate; 12-23-2003 at 04:48 AM.
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable Root login via ssh UltraSoul Solaris / OpenSolaris 3 02-09-2007 02:18 AM
ssh only allow root login chongluo Linux - Newbie 1 10-28-2004 08:51 AM
How can I disable root login with SSH? blk96gt Slackware 9 10-02-2004 07:09 AM
ftp login -- ssh no login waffe Linux - General 4 12-27-2003 12:42 AM
Only root can login via ssh cmisip Linux - Security 5 04-26-2003 05:16 AM


All times are GMT -5. The time now is 04:32 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