The UNIX and Linux Forums  

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 01:32 PM
Logging all console activity to a file - how? patwa UNIX for Dummies Questions & Answers 4 06-13-2007 07:09 PM
ssh not logging users ranj@chn UNIX for Advanced & Expert Users 2 05-06-2007 09:49 PM
Logging off users outtacontrol AIX 1 02-09-2007 06:39 AM
Commands for review users activity DigitalExecutiv SCO 1 03-03-2005 01:36 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 12-16-2004
Registered User
 

Join Date: Nov 2002
Location: in my house
Posts: 36
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.
Reply With Quote
Forum Sponsor
  #2  
Old 12-16-2004
seg seg is offline
Registered User
 

Join Date: Aug 2003
Posts: 103
Does Solaris not have a ~/.history file?
Reply With Quote
  #3  
Old 12-16-2004
zazzybob's Avatar
Registered Geek
 

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

Cheers
ZB
Reply With Quote
  #4  
Old 12-17-2004
Registered User
 

Join Date: Nov 2002
Location: in my house
Posts: 36
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
Reply With Quote
  #5  
Old 12-17-2004
zazzybob's Avatar
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
Reply With Quote
  #6  
Old 12-28-2004
Registered User
 

Join Date: Nov 2002
Location: in my house
Posts: 36
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.
Reply With Quote
  #7  
Old 12-28-2004
seg seg is offline
Registered User
 

Join Date: Aug 2003
Posts: 103
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
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:13 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0