Users on Solaris


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Users on Solaris
# 1  
Old 10-12-2017
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; 10-12-2017 at 08:21 AM.. Reason: Code tags
# 2  
Old 10-12-2017
Start with:

Code:
# who

See man page for options

And

Code:
 
# ps

See man page for options

Try:

Code:
# ps -eaf

This User Gave Thanks to hicksd8 For This Post:
# 3  
Old 10-12-2017
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Migrate users from 1 Solaris 10 to a different Solaris 10 server

Hello, I have to backup users from one server and put them on another server. I have tried cp -pr, copied over the passwd, group, shadow and appended the users from the old server to the new servers files, rebooted and still can't login. The server accepts that new accounts are there but not... (2 Replies)
Discussion started by: hs3082
2 Replies

2. Solaris

How many users are there in solaris machine ?

Dears How can i find , how many users are in solaries machine ? any command please . regards Halim (6 Replies)
Discussion started by: Halimju
6 Replies

3. Solaris

Shell script to add users on solaris

Hi admins, I am trying to run a script to add users on solaris with password: I am using crypt for passwords: The part of my scripts is as below: if ; then echo "$username exists!" exit 1 else pass=$(perl -e 'print... (5 Replies)
Discussion started by: snchaudhari2
5 Replies

4. Shell Programming and Scripting

Deleting Inactive Solaris users

Hello, I want to do a search for users on my solaris boxes that have been inactive for a defined number of days and then delete them. Any ideas how to determine or calculate the number of days (possibly using the /var/adm/wtmpx file) from the user's last login to the current date of search. ... (0 Replies)
Discussion started by: prince2010
0 Replies

5. Solaris

Directory restriction for specific users on Solaris

Hi all, i have a question about directory accessing. Question: therese is a x user which can login system, x user can only access specific directories on the system, even y directory has r-x access right for OTHER, x user will not access the y directory. this x user must access specific... (4 Replies)
Discussion started by: nibiru78
4 Replies

6. Solaris

how to find out that how many users are in samba server in solaris 10

what is the command to find out that how many samba users accounts are in samba server in solaris 8.and also about samba users home directoris and samba users permissions (1 Reply)
Discussion started by: tv.praveenkumar
1 Replies

7. Solaris

Solaris Administration for ssh users

Hi All, I am in desperate need of a help. Actually , wanted to maintain logs for all the users who ssh to a solaris system and keep track of all the activities they perform. And at the end of the session a mail to be sent to my email id. Can someone plz help. (5 Replies)
Discussion started by: hitkuku
5 Replies

8. Solaris

I need to audit users on a Solaris box

Is there a command to find out all the commands ran by a certain user id? TiA (5 Replies)
Discussion started by: PapaPark
5 Replies

9. Solaris

How do you list users in a solaris group

I need to list all users in a group. This is a large unix site running nis+. (6 Replies)
Discussion started by: gillbates
6 Replies

10. UNIX for Dummies Questions & Answers

solaris users

I am trying to use a set of commands that will visualize users who are logged on , and to what workstation.. I used to use this with my HP-UX, (# grep saitom /usr/ps/*ps) but can't find a solution w/ solaris.. using rwho, rw or rusers ? maybe my cmd is off ? /usr/bin/ then ./rusers..... (9 Replies)
Discussion started by: simon2000
9 Replies
Login or Register to Ask a Question