Re: Is user active or not ?
Stephen Kitchener <stephen-azPqtOTaosECqOQrDF6SL1pr/1R2p/[email protected]> Thu, 22 Sep 2011 17:21:49 +0100
| Newsgroups | gmane.linux.mandrake.expert |
|---|---|
| Organization | Image By Steve |
| Message-ID | <[email protected]> |
On Thursday 22 Sep 2011, Renaud (Ron) Olgiati wrote: > I find myself in need of an easy way to check whether the account of a > remote user on the lan is active or not. > > Is there an easier way than to ssh, then grep $USER /etc/shaddow | grep ! > > And is there a way to automate the ssh connection in a script ? > > TIA, > > Ron. the commands "last" and "lastlog" as root, will show what you need I believe... -- Regards Stephen Kitchener www.imagebysteve.co.uk Do not meddle with the affairs of Dragons for you are crunchy and good with mustard The Difference Between Genius And Stupidity Is That Genius Has It's Limits ~ Albert Einstein