RE: [SLE] Writing simple bash script or Perl to control over the last login of the users?
From: Peer Stefan (stefan.peer_at_tiwag.at)
Date: Fri, 10 Oct 2003 09:58:47 +0200 To: "Puth Chan Choth" <firstname.lastname@example.org>, <email@example.com>
> From: Puth Chan Choth [mailto:firstname.lastname@example.org]
> Hello all,
> I am a fish out of water that I cannot control over the last
> login users
> records. The last command cannot help and I do not know where SuSE8.0
> store the last login records of the users. All users, I set their
> default shell to /bin/false. So how can I write a simple bash
> script or
> Perl to control over the last login of the users?
How should your users log in if you set their default-shell to /bin/false?
Which logins do you want to log/view? Console/SSH, HTTP, FTP, ...
Each daemon has its own logfile - look for them in /var/log.
Shell-logins are (usually) logged in /var/log/wtmp (it's what the "last"-command uses).
> Thank you so much for your assistance.
> Best regards,
-- Check the headers for your unsubscription address For additional commands send e-mail to email@example.com Also check the archives at http://lists.suse.com Please read the FAQs: firstname.lastname@example.org