Unix/Linux Go Back    


Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Users on Solaris

Shell Programming and Scripting


Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 1 Week Ago
Phuti Phuti is offline
Registered User
 
Join Date: Jan 2008
Last Activity: 18 October 2017, 4:10 AM EDT
Location: I live in Pretoria, South Africa
Posts: 72
Thanks: 20
Thanked 0 Times in 0 Posts
Users on Solaris

Hi Guys

How do you see who logged in and what are they doing?

I used w to get the users...


Code:
>w
 10:21am  up 60 day(s), 12:17,  2 users,  load average: 3.16, 3.88, 4.19
User     tty           login@  idle   JCPU   PCPU  what
oracle   pts/2        10:13am            2         bash
oracle   pts/1        10:12am            6         bash

Now I want to see who are these users and what bash commands are executed.

Please help!!!

Thanks in advance...

Last edited by Scott; 1 Week Ago at 07:21 AM.. Reason: Code tags
Sponsored Links
    #2  
Old Unix and Linux 1 Week Ago
hicksd8 hicksd8 is offline Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 22 October 2017, 4:00 PM EDT
Location: Devon, UK
Posts: 1,536
Thanks: 224
Thanked 391 Times in 329 Posts
Start with:


Code:
# who

See man page for options

And


Code:
 
# ps

See man page for options

Try:


Code:
# ps -eaf

The Following User Says Thank You to hicksd8 For This Useful Post:
Phuti (1 Week Ago)
Sponsored Links
    #3  
Old Unix and Linux 1 Week Ago
rbatte1 rbatte1 is offline Forum Staff  
Root armed
 
Join Date: Jun 2007
Last Activity: 20 October 2017, 11:53 AM EDT
Location: Lancashire, UK
Posts: 3,307
Thanks: 1,417
Thanked 648 Times in 584 Posts
By "what they're doing" you might get more information with the finger command, however that relies on the user (or application) to write a message in the file .plan in the user's home directory. Sadly, this rarely happens but you could include in in your application menus so that choosing and option writes the message, runs the routine then writes a message to say it's back at the menu.



Robin
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Migrate users from 1 Solaris 10 to a different Solaris 10 server hs3082 UNIX for Dummies Questions & Answers 2 01-28-2015 12:34 PM
How many users are there in solaris machine ? Halimju Solaris 6 07-27-2011 11:36 AM
Solaris Administration for ssh users hitkuku Solaris 5 07-14-2009 01:10 PM
I need to audit users on a Solaris box PapaPark Solaris 5 03-07-2007 04:17 PM
solaris users simon2000 UNIX for Dummies Questions & Answers 9 02-27-2004 01:42 PM



All times are GMT -4. The time now is 10:28 PM.