Spotlight | Reviews | Current Issue | Academy | Newsletter | Subscribe | Shop |
Departments

Partner Links
Make your own website
WinWeb OnlineOffice
Comparing prices of hardware is worth it.
Price Comparison
UK Linux Jobs
What:
Where:
Country:
vacatures Netherlands njobs Linux vacatures
arbeit Deutschland njobs Linux arbeit
work United Kingdom njobs Linux jobs
Lavoro Italia njobs Linux lavoro
Emploi France njobs Linux emploi
trabajo Espana njobs Linux trabajo

user friendly

Admin Magazine

ADMIN Network & Security

Subscribe now and save!

ADMIN - Explore the new world of system administration! Special introductory offer! Order by September 30th to save 10% off the regular subscription price! Each issue delivers technical solutions to the real-world problems you face every day. Learn the latest techniques for better:

  • network security
  • system management
  • troubleshooting
  • performance tuning
  • virtualization
  • cloud computing

 

on Windows, Linux, Solaris, and popular varieties of Unix.

http://www.admin-magazine.com/

  linux-magazine.com » Issues » 2010 » 117 » SPYGLASS  

Print this page. Recommend
Share

The sys admin’s daily grind: login mail

SPYGLASS

Charly often gets suggestions and ideas for his column at community get-togethers. Last week, he picked up a tip for an early warning system that quickly secures login attempts.

Some servers I don’t log in to for weeks on end. On machines like this, the danger of intruders being able to log in without my noticing is fairly high. And if attackers do manage to crack open a victim’s computer, they will do everything they can to cover their tracks. This includes removing all traces of the login from the logs, which makes it more or less impossible to ascertain the exact time of the attack and – what’s more important – the attacker’s IP.


Read full article as PDF »


Comments

SFTP clients?

Keith Nov 30, 2010 12:23am GMT

This works fine for a standard SSH login from another linux host or a windows host running putty, however I noticed it does not log anything if a user is logging in with a SFTP client package such as Filezilla or any other sftp gui application. I noticed this by mistake when looking at the login (auth) logs on a server.

Can someone advise why this is and how I can capture all logins no matter what the medium is?

Thanks
Keith

Little bug when invoke mail command

Amedeo Jul 05, 2010 8:00pm GMT

I found a little bug on your code, instead of using who and pipe stout to mail command, if there are more than one users logged, mail command not works, due to new line characters, so i changed your code to this:

echo 'Login on' `hostname` `date` \
`who` | mail -s "Login on `hostname` \
`who |sort -k 3,4 -r | head -1 | awk '{print $5}'`" \
amedeo.salvati@gmail.com

ciao
amedeo

Print this page. Recommend
Share
Related Articles
Community Notebook: Cache Tips for coordinating a killer con
Doghouse: Netiquette Community Notebook: Jon 'maddog' Hall
linux.conf.au 2011 Report from the 2011 linux.conf.au
Charly's Column: tcpflow and HugeURL tcpflow and HugeURL
Doghouse: Recycled Software Do not reinvent the wheel
Doghouse: Future-Proofing Future-proofing your business
Get your backstage pass to Linux!

If you're ready for a deeper look, Linux Magazine gives you a view behind the scenes.

Don't miss out on the tools, tutorials, and reviews you'll need to unlock the secrets of Linux.

more...