- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: log all commands type by users
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2001 05:55 PM
04-19-2001 05:55 PM
log all commands type by users
Is there any tools that can record down all the activities and commands executed by all the users and log it into one file. I will be able to see all the related activities including telnet ftp and the commands that executed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2001 06:39 PM
04-19-2001 06:39 PM
Re: log all commands type by users
http://www.courtesan.com/sudo/
This tool allows a normal unix user to run privileged commands as root without knowing its password, and that all these commands will be logged. The tool is so flexible that you can even specify time limit for the developers to have their requested authority.
Take a look at it, it is a nice tool to know about and use.
Rgds,
Philip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2001 07:45 PM
04-19-2001 07:45 PM
Re: log all commands type by users
Have you examined the possibility of using restricted SAM shells to allow access to specific commands while hiding the 'root' userid from the User? IT/Operations also allows 'root' scripts to be hidden behind icons, and 'sticky bits' can be set on scripts to run it as the owner.
FRED
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2001 07:46 PM
04-19-2001 07:46 PM
Re: log all commands type by users
Make use of /etc/profile for detailed logging purposes.
One way is to make use incorporate an Expect script at the end of your /etc/profile to spawn a shell and log all user commands:
==
#!/usr/local/bin/expect
log_user 0
log_file ~/logfile
spawn "/usr/bin/ksh"
interact
==
Another way is to append to your /etc/profile the script command to log the commands to a logfile eg. /logs/$LOGNAME.`date +%Y%m%d` and trap the logout signal so that your typescript is exited properly.
You can also enable trusted systems and auditing but it has limited command logging functionality and the audit logs are a bit hard to decipher at times.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2001 06:19 AM
04-20-2001 06:19 AM
Re: log all commands type by users
Ex. script -a /tmp/log.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2001 06:37 AM
04-20-2001 06:37 AM
Re: log all commands type by users
I tend to not give anyone full root access unless they are the person who is my counterpart/backup....and a vendor (no way !!)
This opens too many security ... and who really did it and is responsible issues. Since root is the login..under normal .history command saving, how could you prove which root did it...
If you have to give access....then protect yourself with sudo...
Just my 2 cents,
/rcw