Need a new web host or having a problem with a script? Tips and advice on the best way to design, build and maintain your most valuable asset - your website!

How to log commands/logins in linux?

Dvmav]aa
 
Posts: 48
Joined: 07 Jun 11
Location: China
Trust:

How to log commands/logins in linux?

I'm feeling that some people are using the root, how i can log all commands and connection times including ips made to the server (ssh) from all users?
 

  • 0
essexboyracer
 
Posts: 130
Joined: 02 May 11
Location: Great Britain
Trust:

I would imagine whatever flavour of linux youre server is on does this automatically? If not try http://www.google.com/search?q=log+ssh+sessions
 

  • 0
affil96754
 
Posts: 176
Joined: 24 Apr 09
Location: Australia
Trust:

Another rosetta stone spammer
 

  • 0



 
evilla.drazen
 
Posts: 95
Joined: 26 Aug 11
Location: Philippines
Trust:

The universal login name is root. However, there are lots of commands in Linux that you might as well learn them. You can check all the Linux commands right here.
 

  • 0
essexboyracer
 
Posts: 130
Joined: 02 May 11
Location: Great Britain
Trust:

also try ubuntuforums.org but be careful of using commands found on forums, some of them have terminal consequences if run on a linux machine
 

  • 0