LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
LinkBack Search this Thread
Old 08-19-2004, 08:18 AM   #1
BRAHmS
LQ Newbie
 
Registered: Apr 2004
Posts: 23

Rep: Reputation: 15
how to monitor all accounts run all commands from login to present?


as above
 
Old 08-19-2004, 09:00 AM   #2
TheOther1
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335

Rep: Reputation: 31
So you want to see what each user has done? You can parse the .bash_history file... But it will only show you command line stuff. There are other history files specific to some apps also. As root,
Code:
locate history | less
or for a specific user:
Code:
locate history | grep user_name | less
and replace user_name with the user name.

If you are trying to find out if someone has done a su -, you can parse the /var/log/messages file(s). You will see something like this:
Code:
Aug 19 09:38:03 machinename su(pam_unix)[4095]: session opened for user root by (uid=500)
 
Old 08-19-2004, 01:56 PM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,165

Rep: Reputation: 243Reputation: 243Reputation: 243
You can also use a Solaris 10 dtrace background script that create a log of all execs for all users so you are sure not to miss any subcommand or command run from historyless shells.
 
Old 08-20-2004, 09:50 AM   #4
BRAHmS
LQ Newbie
 
Registered: Apr 2004
Posts: 23

Original Poster
Rep: Reputation: 15
but my solaris os is 8

Quote:
Originally posted by jlliagre
You can also use a Solaris 10 dtrace background script that create a log of all execs for all users so you are sure not to miss any subcommand or command run from historyless shells.
but my solaris os is 8

how to do?
 
Old 08-20-2004, 12:00 PM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,165

Rep: Reputation: 243Reputation: 243Reputation: 243
Upgrade to 10

Otherwise, here is something to start that should work with solaris 8:

Code:
truss -adf -s!all -t exec,fork -p 1 $(pgrep inetd) $(pgrep sshd)
You would need some post processing to match commands to users though.

Last edited by jlliagre; 08-20-2004 at 12:14 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Present a GUI Login on vnc connections PlatinumRik Linux - Software 1 04-18-2005 01:02 PM
modconf is not present - can not run make xconfig sirius57 Linux - General 3 11-21-2004 05:08 PM
programs won't run on user (non-root) accounts....? once here Slackware 16 12-02-2003 08:44 AM
Disabled accounts on the login screen! HELP!!!! Adeas Linux - Newbie 5 09-07-2003 08:19 PM
Can't login with NIS accounts cindyw Linux - Newbie 0 12-02-2002 04:49 PM


All times are GMT -5. The time now is 08:08 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration