The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
AIX audit users activity daveisme AIX 9 04-08-2008 04:32 PM
Logging all console activity to a file - how? patwa UNIX for Dummies Questions & Answers 4 06-13-2007 10:09 PM
ssh not logging users ranj@chn UNIX for Advanced & Expert Users 2 05-07-2007 12:49 AM
Logging off users outtacontrol AIX 1 02-09-2007 09:39 AM
Commands for review users activity DigitalExecutiv SCO 1 03-03-2005 04:36 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-16-2004
dozy dozy is offline
Registered User
  
 

Join Date: Nov 2002
Location: in my house
Posts: 37
Question logging users activity

Hello All!

Does anyone know of a nice way to log commands in solaris 8.
What I need is a program or script that saves any command that a user does in solaris command prompt. So when Steven logs in on a system, it should record everything he does, from an ls to exit with timestamps. I’ve been looking at sudo and from what I can se the user needs to use the sudo command to make it log his or her commands, and I really need this to be invincible for the user.
  #2 (permalink)  
Old 12-16-2004
seg seg is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2003
Posts: 260
Does Solaris not have a ~/.history file?
  #3 (permalink)  
Old 12-16-2004
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Depending on the accounting available on your system try lastcomm

Cheers
ZB
  #4 (permalink)  
Old 12-17-2004
dozy dozy is offline
Registered User
  
 

Join Date: Nov 2002
Location: in my house
Posts: 37
The problem with these two are when you are changing shell
och using bash. Then it dosent log anymore. So i can see everything until the user change to another shell than default.

dOzY
  #5 (permalink)  
Old 12-17-2004
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Hmm... lastcomm is a command that, when run by the superuser (i.e. root), displays commands run by users regardless of which shell they're using (as long as accounting is enabled). As I say, this will only work if you're root. If you're not root, then you shouldn't be looking at what other people are doing anyway.

Cheers
ZB
  #6 (permalink)  
Old 12-28-2004
dozy dozy is offline
Registered User
  
 

Join Date: Nov 2002
Location: in my house
Posts: 37
Hmm...ok i see your point. But here is the deal. We are a couple of administrators that have root permisson, but we need to log everything that we do. From the first login as normal user untill we logoff as root. The reason is SOX or SUX as i like to call it. SOX requires that everything is logged. So if anything happes we can show a list that shows everything that we did in the system.
  #7 (permalink)  
Old 12-28-2004
seg seg is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2003
Posts: 260
You might need to write a new program to do this for you; but before doing so head over to sourceforge.net and see if they have a logger that might work.

I can definatly understand your need for such a program. In the meantime I'm going to toy around with some commands and see what I can come up with.

-Seg
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 09:01 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0