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: 10/10/03
- Previous message: Administrador de Sistemas: "Re: [SLE] Intel 865G"
- Maybe in reply to: Puth Chan Choth: "[SLE] Writing simple bash script or Perl to control over the last login of the users?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 10 Oct 2003 09:58:47 +0200 To: "Puth Chan Choth" <choth@of.forum.org.kh>, <suse-linux-e@suse.com>
Hi Choth,
> From: Puth Chan Choth [mailto:choth@of.forum.org.kh]
> 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,
> Choth
cheers,
Stefan
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
- Previous message: Administrador de Sistemas: "Re: [SLE] Intel 865G"
- Maybe in reply to: Puth Chan Choth: "[SLE] Writing simple bash script or Perl to control over the last login of the users?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|