logging users activity


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers logging users activity
# 1  
Old 12-16-2004
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  
Old 12-16-2004
Does Solaris not have a ~/.history file?
# 3  
Old 12-16-2004
Depending on the accounting available on your system try lastcomm

Cheers
ZB
# 4  
Old 12-17-2004
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  
Old 12-17-2004
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  
Old 12-28-2004
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  
Old 12-28-2004
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
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Loggin SFTP activity for chrooted (rssh) users

Hi, I need to log the activity of my SFTP (RHEL 5.4). I have this in /etc/sshd/sshd_config: Subsystem sftp /usr/libexec/openssh/sftp-server -f LOCAL5 -l VERBOSE And this in /etc/syslog.conf: LOCAL5.* /var/log/sftp.log When I log in... (1 Reply)
Discussion started by: Tr0cken
1 Replies

2. Solaris

Logging out idle users after a certain timeframe

We recently underwent a security audit and have a new requirement to not allow users to stay logged on overnight. In order to place this policy into effect i need a way to check for idle users and log them off. Is there any good way to enforce this policy in Solaris 10 and make it work in such a... (11 Replies)
Discussion started by: goose25
11 Replies

3. Shell Programming and Scripting

Logging out users

Hi, How do force users to log off Unix through shell? (2 Replies)
Discussion started by: Wahmed9
2 Replies

4. Solaris

Prevent users logging in as root

I would like to know how to prevent users connecting to a server using SSH as root. I would still like them to be able to login with their username and then change to su. But I would like to prevent them logging in directly as root. I have searched the forum and read that I should set... (3 Replies)
Discussion started by: Sepia
3 Replies

5. AIX

AIX audit users activity

Is there a tool or application the will audit users activity? I've tryed to use audit the comes with AIX but to gathers so much information it is near impossible to see what they are doing. I just want to monitor logins and and files they create or change. (9 Replies)
Discussion started by: daveisme
9 Replies

6. UNIX for Dummies Questions & Answers

Logging all console activity to a file - how?

Hi all, Well I've had a bit more experience with Unix-like environments since my last post, now that I have started working on my website in earnest and am doing much of the file manipulation via the command line through SSH. The thing is, I want to be able to log all console activity,... (4 Replies)
Discussion started by: patwa
4 Replies

7. UNIX for Advanced & Expert Users

ssh not logging users

We installed ssh on our AIX 5.3 box. The issue we are facing is that we dont get the users listed when we use 'w' or 'who'. After going through google without success, checked the www.openssh.org site. The FAQ section posted the solution that - How do I go about this? Has anyone faced an issue... (2 Replies)
Discussion started by: ranj@chn
2 Replies

8. Solaris

logging logout of users

I am looking for solutions to address my need to log to a file whenever a user logs out or session disconnects. (1 Reply)
Discussion started by: mhm4
1 Replies

9. AIX

Logging off users

What is the best way to logoff users from my Unix system? I have done a search and found that you can do a w or who - find who is on, and ps-ef | grep <user> and kill their processes. But what if you have a bunch of users and you need them off the system quickly? Killing individual processes... (1 Reply)
Discussion started by: outtacontrol
1 Replies

10. SCO

Commands for review users activity

:D Hi, I'm searching for a command or commands to see the user and programs activity and who much resources is in use. In Unix I remember a TOP command but in SCO I'm don't find a similar. My system is a UNIX SCO 5.6 Thank's (1 Reply)
Discussion started by: DigitalExecutiv
1 Replies
Login or Register to Ask a Question