LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   get information about users (https://www.linuxquestions.org/questions/linux-newbie-8/get-information-about-users-769389/)

laura_icy 11-16-2009 02:10 AM

get information about users
 
Hello!
I need to get information about users connected on a certain server - for example if they worked at a certain date, get all users from a group or find out if they are connected from a certain machine.
For the last one, I've tried something like this: w|grep "awk '$3==70.70.70.70'" but with no luck.
Can anybody help me?
Thank you!

vishesh 11-16-2009 02:14 AM

Why they are connected to server? For login purpose, for accessing file or folder or something else. Suppose they are accessing samba share then 'smbstatus ' tell you connected users and machine , similarly other services have relevant option to check connected users.
Be more specific what you want
thnks

linuxlover.chaitanya 11-16-2009 03:01 AM

w and who both commands can give you status of the currently logged in users.

pcunix 11-16-2009 05:54 AM

And "if they worked at a certain date" is available from "last".

If you are really interested in tracking users, you may want to look at "accton" in the GNU Accounting Utilities. These may not be installed by default, but can tel you who used what programs when, how much cpu they burned doing it, memory usage and how much data they read and wrote.


All times are GMT -5. The time now is 06:44 AM.