# Users on Solaris

**URL:** <https://community.unix.com/t/users-on-solaris/368759>\
**Category:** Shell Programming and Scripting\
**Created:** [October 12, 2017, 4:22am UTC](https://community.unix.com/t/users-on-solaris/368759 "2017-10-12T04:22:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phuti](https://community.unix.com/letter_avatar/phuti/32/6_449c533f586939b6e5f246632a46421f.png) [@Phuti](https://community.unix.com/u/Phuti)\
**Post date:** [October 12, 2017, 4:22am UTC](https://community.unix.com/t/users-on-solaris/368759/1 "2017-10-12T04:22:55Z")

</div>

Hi Guys

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

I used w to get the users...

```nohighlight
>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...

---

<div class="post-metadata">

**Author:** ![hicksd8](https://community.unix.com/letter_avatar/hicksd8/32/6_449c533f586939b6e5f246632a46421f.png) [@hicksd8](https://community.unix.com/u/hicksd8)\
**Post date:** [October 12, 2017, 4:33am UTC](https://community.unix.com/t/users-on-solaris/368759/2 "2017-10-12T04:33:20Z")

</div>

Start with:

```nohighlight
# who

```

See man page for options

And

```nohighlight
 
# ps

```

See man page for options

Try:

```nohighlight
# ps -eaf

```

---

<div class="post-metadata">

**Author:** ![rbatte1](https://community.unix.com/letter_avatar/rbatte1/32/6_449c533f586939b6e5f246632a46421f.png) [@rbatte1](https://community.unix.com/u/rbatte1)\
**Post date:** [October 12, 2017, 9:16am UTC](https://community.unix.com/t/users-on-solaris/368759/3 "2017-10-12T09:16:44Z")

</div>

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
