LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 08-10-2010, 12:33 PM   #1
Mark L. Wise
LQ Newbie
 
Registered: Jan 2010
Distribution: Fedora
Posts: 3

Rep: Reputation: 0
ssh from non-privileged account gives segmentation fault


Hello all!

I have a strange problem. I have two Linux boxes. They are connected via a LAN. From machine 1 (Fedora Core 8) I can ssh to machine 2 (Fedora Core 3)without any problems if I am logged in as root on machine 1. If I am logged in as any other non-privileged user and attempt to ssh to machine 2, I get a segmentation fault and the connection is dropped (after ssh asks for the password).

Everything was working up until last Friday (8/6/2010). I did upgrade the machine 1 from 512Kb to 2.0Gb memory then...

Any ideas?

machine1_root#ssh anyaccount@machine2 <-This works
machine1_anyotheraccount$ssh anyaccount@machine2 <-segmentation fault
 
Old 08-10-2010, 01:51 PM   #2
SciFi-Bob
Member
 
Registered: Aug 2008
Location: Denmark
Distribution: Debian/Ubuntu
Posts: 49

Rep: Reputation: 17
Do you have /home mounted on a separate partition?
And if so, is that partition always accessible for any user?

Do you have a special NIS setup, or any other global access system?

Just asking, since these are the few main differences I know about between root and any other user.
 
Old 08-10-2010, 11:30 PM   #3
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 595

Rep: Reputation: 103Reputation: 103
Quote:
Originally Posted by Mark L. Wise View Post
Hello all!

I have a strange problem. I have two Linux boxes. They are connected via a LAN. From machine 1 (Fedora Core 8) I can ssh to machine 2 (Fedora Core 3)without any problems if I am logged in as root on machine 1. If I am logged in as any other non-privileged user and attempt to ssh to machine 2, I get a segmentation fault and the connection is dropped (after ssh asks for the password).

Everything was working up until last Friday (8/6/2010). I did upgrade the machine 1 from 512Kb to 2.0Gb memory then...

Any ideas?

machine1_root#ssh anyaccount@machine2 <-This works
machine1_anyotheraccount$ssh anyaccount@machine2 <-segmentation fault
You can try to see what different in the output of env command as root and as different user.

Running ssh -v -v -v as both users may be helpful too.

Another possibility to find a cause of trouble is running ssh under strace in both cases
 
Old 08-12-2010, 08:43 PM   #4
Mark L. Wise
LQ Newbie
 
Registered: Jan 2010
Distribution: Fedora
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for your ideas!

What I found out... I compared the /usr/local/bin/ssh binary to a similar machine with the same FC8. The files were significantly different, AND my ssh binary was dated 8/8/2010. I backed up the local ssh and replaced it with the other machine's copy and things are working correctly now.

So... as I see it I have two possible situations;

1) The machine did an automatic yum update sometime on Sunday 8/8/2010 that resulted in a new ssh binary dated that date... or...
2) I have a compromised server that needs to come off-line, get re-loaded and configured and re-deployed.

Any thoughts/comments?

Thanks!

Mark
 
  


Reply

Tags
segmentation fault, ssh


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh local account / ldap account Poil Linux - Security 5 02-26-2010 01:04 AM
Fatal trap 1: privileged instruction fault while in kernel mode vnaveen *BSD 0 01-24-2009 08:44 AM
Net::SSH Segmentation fault (core dumped) hijack204 Programming 1 06-04-2007 01:53 PM
yast segmentation fault, system freezing - nvidia driver at fault? BaltikaTroika Suse/Novell 2 12-02-2005 09:34 AM
Non-privileged user account needed.... AzuuAz Linux - Security 1 11-26-2004 04:06 AM


All times are GMT -5. The time now is 08:59 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
Open Source Consulting | Domain Registration