On Fri, May 03, 2002 at 07:59:18AM +0530, Yashpal Nagar wrote:
> 
> Can some tell me how to see the command history of users 
> logged in at various tty's and pts/* ?
> 
---end quoted text---

The file which keeps records of logins etc are /var/run/utmp
(for current session), and /var/log/wtmp. The access to this
data is through who and w utilities. finger gives the access
to /var/run/utmp only. To check out last few logins, try:

#who /var/log/wtmp

Once you know who all have logged in, with  root  privileges
it is possible to have a peek at the history records  of the
user's shell. For bash it would be something like:

#less /home/username/.bash_history

HTH

Bish

--
:
####[ Linux One Stanza Tip (LOST) ]###########################

Sub : Best Screen Saver                              LOST #074

The best screen saver for your  system is the  Power switch of
your monitor - saves both electricity and phosphor ....  Blank
screen at least saves phosphor .... All others save neither !

####<[EMAIL PROTECTED]>####################################
:

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to