Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 superuser.com 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

2 Answers 2

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.