Neeraj Manral forced the electrons to say:
> I would like to know as to how can one find as to how many people have a
> login a/c in a particular box.

awk -F: ' { print $1 } ' /etc/passwd will give you a list of all login
ids on a machine. After eliminating the obvious ones (like root, nobody
etc.) you will have a list of users on your system.

> I would also like to know is there any log that is being generated in linux
> or one can make it so as to know  as to who has logged in at what time of
> the day??

The users, w, who and finger commands give you listings of users currently
logged in. The last command give you a list of people who logged in since the
last time /var/log/wtmp was rotated (once a week in RH, IIRC). Logins are
usually logged in /var/log/messages and /var/log/secure as well.

Binand

-- 
#define l/* Binand Raj S. <[EMAIL PROTECTED]> */".%\"-\"("
#define s/* Ambition: To write sendmail.cf from scratch  */abs(abs(i)-5)
main(i,j){for(i=-5;i<6;i++){for(j=0;j<35-s;j++,putchar(32));putchar(s[l]^
108);for(j=0;j<2*s-1;j++,putchar(32));s&&putchar(s[l]^108);putchar(10);}}

----------------------------------------------
The mailing list archives are available at
http://lists.linux-india.org/cgi-bin/wilma/LIH

Reply via email to