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

Thread Tools Search this Thread Display Modes
Old Unix and Linux 10-12-2017   -   Original Discussion by Phuti
Phuti's Unix or Linux Image
Phuti Phuti is offline
Registered User
Join Date: Jan 2008
Last Activity: 6 December 2017, 4:07 AM EST
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...

 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; 10-12-2017 at 07:21 AM.. Reason: Code tags
Sponsored Links
Old Unix and Linux 10-12-2017   -   Original Discussion by Phuti
hicksd8's Unix or Linux Image
hicksd8 hicksd8 is offline Forum Staff  
Join Date: Feb 2012
Last Activity: 18 March 2018, 10:42 AM EDT
Location: Devon, UK
Posts: 1,812
Thanks: 268
Thanked 476 Times in 407 Posts
Start with:

# who

See man page for options


# ps

See man page for options


# ps -eaf

The Following User Says Thank You to hicksd8 For This Useful Post:
Phuti (10-12-2017)
Sponsored Links
Old Unix and Linux 10-12-2017   -   Original Discussion by Phuti
rbatte1's Unix or Linux Image
rbatte1 rbatte1 is offline Forum Staff  
Root armed
Join Date: Jun 2007
Last Activity: 16 March 2018, 1:26 PM EDT
Location: Lancashire, UK
Posts: 3,495
Thanks: 1,527
Thanked 683 Times in 615 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.

Sponsored Links

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 01:43 PM.