LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-30-2007, 10:15 PM   #1
jenson
LQ Newbie
 
Registered: Mar 2005
Posts: 19

Rep: Reputation: 0
tracking history cmd by other user


I have multiple users who are accessing the redhat server from remotely ssh which are legally allow. But I need to track what are the cmd had they used, history cmd seems only track my own root usage. ANy advise?
 
Old 11-30-2007, 10:34 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Does

/home/user/.bash_history

help you?
 
Old 12-01-2007, 08:45 AM   #3
damonhart
LQ Newbie
 
Registered: Nov 2007
Posts: 22

Rep: Reputation: 15
history for convenience, not auditing

Just an FYI - if you're hoping to have some record of who ran what command at what time for security auditing, be careful. bash is typically set up to save only a limited number of commands in ~user/.bash_history, so you don't necessarily see all commands run. Furthermore, the file is writable by the user so can be altered anyway.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tracking all changes to user accounts eswanepoel Linux - Security 1 09-06-2007 04:39 PM
Running crontab cmd for user without knowing Env DISPLAY frenchn00b Linux - General 2 07-13-2007 09:44 AM
create user/group in cmd line rgiggs Mandriva 3 04-12-2004 09:46 PM
tracking user,when logs in godwin_73 Linux - Networking 1 03-06-2002 05:07 PM
user tracking in redhat godwin_73 Linux - Networking 1 11-29-2001 03:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration