Sponsored Content
Full Discussion: Users on Solaris
Top Forums Shell Programming and Scripting Users on Solaris Post 303005022 by Phuti on Thursday 12th of October 2017 04:22:55 AM
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
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

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

8. 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

9. 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

10. 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
LIBBASH(7)							  libbash Manual							LIBBASH(7)

NAME
libbash -- A bash shared libraries package. DESCRIPTION
libbash is a package that enables bash dynamic-like shared libraries. Actually its a tool for managing bash scripts whose functions you may want to load and use in scripts of your own. It contains a 'dynamic loader' for the shared libraries ( ldbash(1)), a configuration tool (ldbashconfig(8)), and some libraries. Using ldbash(1) you are able to load loadable bash libraries, such as getopts(1) and hashstash(1). A bash shared library that can be loaded using ldbash(1) must answer 4 requirments: 1. It must be installed in $LIBBASH_PREFIX/lib/bash (default is /usr/lib/bash). 2. It must contain a line that begins with '#EXPORT='. That line will contain (after the '=') a list of functions that the library exports. I.e. all the function that will be usable after loading that library will be listed in that line. 3. It must contain a line that begins with '#REQUIRE='. That line will contain (after the '=') a list of bash libraries that are required for our library. I.e. every bash library that is in use in our bash library must be listed there. 4. The library must be listed (For more information, see ldbashconfig(8)). Basic guidelines for writing library of your own: 1. Be aware, that your library will be actually sourced. So, basically, it should contain (i.e define) only functions. 2. Try to declare all variables intended for internal use as local. 3. Global variables and functions that are intended for internal use (i.e are not defined in '#EXPORT=') should begin with: __<library_name>_ For example, internal function myfoosort of hashstash library should be named as __hashstash_myfoosort This helps to avoid conflicts in global name space when using libraries that come from different vendors. 4. See html manual for full version of this guide. AUTHORS
Hai Zaar <haizaar@haizaar.com> Gil Ran <ril@ran4.net> SEE ALSO
ldbash(1), ldbashconfig(8), getopts(1), hashstash(1) colors(1) messages(1) urlcoding(1) locks(1) Linux Epoch Linux
All times are GMT -4. The time now is 06:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy