Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hey folks, I'm looking for an "alarm" script which will email if users other than those in a "authorised_users.txt" file log onto the VC 3 and/or esx 3 hosts. Allowed users can be created via VC permissions, however this would notify us if similiar role though unauthorised attempt to login.

Any thoughts?

Thanks in advance, Shane.

share|improve this question

migrated from Jan 22 '10 at 12:28

This question came from our site for computer enthusiasts and power users.

I think you'll get a better response for this on ServerFault. Don't repost it will get migrated if enough people agree. However, I think you will also need to provide a lot more information about the OS and environment you are using too. – ChrisF Jan 22 '10 at 12:11

So you want to allow people to login who aren't allowed? Wouldn't it be easier just to deny them the ability to login?

share|improve this answer

You could write a script run through cron periodically to either run finger and see who is logged in, or to take a look at /var/log/wtmp and see who is/has logged in.

I'm with Matt though - why let them log-in at all?

Alternatively, you could alter the system .profile (/etc/profile) for all users, with a check in there to send an alert email and potentially log the user off, kill their session, etc.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.