Web Hosting Forum | Lunarpages
News: October 6, 2008 - Submit Your Site for the October 2008 Site of the Month!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 07, 2008, 02:00:51 AM


Login with username, password and session length


Pages: [1] 2   Go Down
  Print  
Author Topic: Question: How to Identify a Successful Hacking Attempt?  (Read 1946 times)
The Natural Greek Phenomenon
Intergalactic Superstar
*****
Offline Offline

Posts: 144


WWW
« on: May 21, 2005, 03:54:21 AM »

Hi,

What could this process mean:
" sshd: unknown [priv] " or " sshd: unknown [net] "

Is this an indication of a possible intrusion by a hacker?

If yes, what actions should be taken?

Thanks
Logged
PeterM
Spacescooter Operator
*****
Offline Offline

Posts: 36


« Reply #1 on: May 23, 2005, 04:58:07 AM »

At the moment there are a lot of so called dictionary attacks going on against server running SSH. It means people are trying to find out a SSH login name on your server using a CD and small program. This should be harmless if you have secured SSH.
Logged
abhilash
SysAdmin Supervisor
Intergalactic Cowboy
*****
Offline Offline

Posts: 61



« Reply #2 on: May 23, 2005, 09:36:32 PM »

sshd: unknown [priv]  and sshd: unknown [net] is when someone trying to attempt to login to your system, but there is no account under the username.

mostly such log entries will be followed by something like below in /var/log/messages

Mar 26 10:41:33 athena sshd(pam_unix)[3984]: check pass; user unknown
Mar 26 10:41:33 athena sshd(pam_unix)[3984]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=210.0.141.89

where you can block the IP 210.0.141.89.

Meanwhile you should edit /etc/ssh/sshd_config to read the config as below,

Protocol 2 (only SSH2 should be allowed, SSH1 is vulnerable)
Port 22 (22 can be changed to something else, preferably a number 10000+, but you have to know that once changed and restarted the sshd, you won't be able to connect with default port 22, instead specifically mention the port number given here in your SSH client  to connect to SSH. Don't change it unless you know what you are doing)

and follow the steps at http://www.lunarforums.com/viewtopic.php?t=26253
Logged

Abhilash

JSA Supervisor - System Admin Team
The Natural Greek Phenomenon
Intergalactic Superstar
*****
Offline Offline

Posts: 144


WWW
« Reply #3 on: May 25, 2005, 05:55:03 PM »

Thanks folks.

Regarding this excellent tutorial:
http://www.lunarforums.com/viewtopic.php?t=26253

The problem is... what would be my username if "root" is used as login.

And if you please explain this:
"then do a su on the command prompt and type in the root password to become root." (what is "su" and how exactly do we execute this process).

Please don't cackle as I am a complete rookie.

Of course I'd expect an email for this sensitive procedure.
Logged
GMTurner
Berserker Poster
*****
Offline Offline

Posts: 7539



WWW
« Reply #4 on: May 25, 2005, 06:33:03 PM »

su = substitute user

It allows you to log in as a "regular", unpriviledged user and then "promote" yourself to "root" (by using su) to perform certain commands without having to actually log in using the root account.

If you did log in as root though, you would probably not need to use su though since you are already at that level...

There's also a sudo command (if I'm remembering correctly, but it's been a while since I really played around with the command line in linux) that allows you to run a particular command/program as the root user but does not "promote" you to that roll...

if you do a "man su" at the command line, it should give you the manual pages for the su command... though it might not be setup that way at LP, in which case just do a google search for man su and it will give you essentially the same information. Same goes for other commands as well "man ls" to get info on the ls command, "man sudo" for info on sudo, etc.

Not sure if this helps or not, but hope it clears something up somewhere for someone Smile
Logged

The above post was made at a time when I gave a dang and doesn't necessarily reflect my current views or opinions.

For those no longer with us ... Grr..!!

The Redheaded Penguin
The Natural Greek Phenomenon
Intergalactic Superstar
*****
Offline Offline

Posts: 144


WWW
« Reply #5 on: May 25, 2005, 07:53:54 PM »

GMTurner - thanks for the clarification.
Logged
PeterM
Spacescooter Operator
*****
Offline Offline

Posts: 36


« Reply #6 on: May 25, 2005, 08:23:01 PM »

Quote from: buy-steroids.biz
Thanks folks.

Regarding this excellent tutorial:
http://www.lunarforums.com/viewtopic.php?t=26253

The problem is... what would be my username if "root" is used as login.

And if you please explain this:
"then do a su on the command prompt and type in the root password to become root." (what is "su" and how exactly do we execute this process).

Please don't cackle as I am a complete rookie.

Of course I'd expect an email for this sensitive procedure.


You also might hear under the linux folks that "su" stands for "superuser" which more or less the purpose of the su command is, to become root (= superuser). If you ssh to your server as regular user and then just type on the command prompt su and hit enter. You then will be asked for the root password. Smile
Logged
GMTurner
Berserker Poster
*****
Offline Offline

Posts: 7539



WWW
« Reply #7 on: May 25, 2005, 08:29:12 PM »

Quote from: PeterM
You also might hear under the linux folks that "su" stands for "superuser"


Thanks Smile  I had superuser in originally, but then did a quick search to double check myself and saw substitute user and went with that... glad to know I should have stuck with my original feeling...
Logged

The above post was made at a time when I gave a dang and doesn't necessarily reflect my current views or opinions.

For those no longer with us ... Grr..!!

The Redheaded Penguin
TranzNDance
Princess of Naboo
Berserker Poster
*****
Offline Offline

Posts: 11809



WWW
« Reply #8 on: May 25, 2005, 08:38:13 PM »

And I thought it meant Stanford University. Razz
Logged

Grr..!! Luff Ya Grr..!! Luff Ya Grr..!! Luff Ya
PeterM
Spacescooter Operator
*****
Offline Offline

Posts: 36


« Reply #9 on: May 25, 2005, 09:24:23 PM »

Quote from: GMTurner
Quote from: PeterM
You also might hear under the linux folks that "su" stands for "superuser"


Thanks Smile  I had superuser in originally, but then did a quick search to double check myself and saw substitute user and went with that... glad to know I should have stuck with my original feeling...


Your explanation was correct   Thumbs Up  the linux users just have changed it themself over the time.  Smile
If you are loged in as root, you can become any user just by typing the su command followed by the username. That is where the "substitute user" original comes from.
Logged
GMTurner
Berserker Poster
*****
Offline Offline

Posts: 7539



WWW
« Reply #10 on: May 25, 2005, 09:58:46 PM »

Is it possible to ... uh... desu? unsu? or do you just su back to whatever user?

And now I feel technically correct about my previous answer but some how less geeky because of it  Confused

(Oh, and according to my wife it stands for Southwestern University...)
Logged

The above post was made at a time when I gave a dang and doesn't necessarily reflect my current views or opinions.

For those no longer with us ... Grr..!!

The Redheaded Penguin
PeterM
Spacescooter Operator
*****
Offline Offline

Posts: 36


« Reply #11 on: May 25, 2005, 10:11:15 PM »

Quote from: GMTurner
Is it possible to ... uh... desu? unsu? or do you just su back to whatever user?

And now I feel technically correct about my previous answer but some how less geeky because of it  Confused

(Oh, and according to my wife it stands for Southwestern University...)


If you used SU to become another user and want to get out of it, just use the magic geeky word "exit"  Smile
Oh....and remember, the wife always is right   Surprised
Logged
TranzNDance
Princess of Naboo
Berserker Poster
*****
Offline Offline

Posts: 11809



WWW
« Reply #12 on: May 25, 2005, 10:54:13 PM »

Yeah, but which SU university has contributed more to computing? Ner Ner
Logged

Grr..!! Luff Ya Grr..!! Luff Ya Grr..!! Luff Ya
GMTurner
Berserker Poster
*****
Offline Offline

Posts: 7539



WWW
« Reply #13 on: May 25, 2005, 10:56:29 PM »

Quote
just use the magic geeky word "exit" Smile

argh...!!! shoulda thought of that Smile
Logged

The above post was made at a time when I gave a dang and doesn't necessarily reflect my current views or opinions.

For those no longer with us ... Grr..!!

The Redheaded Penguin
abhilash
SysAdmin Supervisor
Intergalactic Cowboy
*****
Offline Offline

Posts: 61



« Reply #14 on: May 26, 2005, 01:22:00 AM »

okay..I go for "switch user" . The gloss page at http://tldp.org/LDP/intro-linux/html/gloss.html says so.

whatis su says run a shell with substitute user and group IDs. So it is "substitute user".

But I am sure after all these, buy-steroids.biz won't forget the use of "su"  Evil or Very Mad ever  Thumbs Up
Logged

Abhilash

JSA Supervisor - System Admin Team
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM