GreenLake Administration
Operating System - HP-UX
1846201
Members
4371
Online
110255
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
02-03-2007 02:39 PM
02-03-2007 02:39 PM
Sudo log
Hi Gurus ,
I am accessing my application using sudo account , I came to know that all the commands run by me are stored is it so , how to see it and if I want to remove how to remove it.
I am accessing my application using sudo account , I came to know that all the commands run by me are stored is it so , how to see it and if I want to remove how to remove it.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2007 06:42 AM
02-04-2007 06:42 AM
Re: Sudo log
sudo is not an account, it is a program that temporarily gives you root privileges. Normally, you would never run a shell with sudo but instead run a single command. If you run a shell, then the commands would be logged into the .sh_history file but sudo did not login like a normal user. Therefore there is no history file, another reason not to allow a shell as part of the sudoers list of commands.
Bill Hassell, sysadmin
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2007 04:19 AM
02-05-2007 04:19 AM
Re: Sudo log
Hi
The history files are stored under .sh_history file or directory under your home directory or under the home directory of user you are trying to SU.
Thanks
Sri
The history files are stored under .sh_history file or directory under your home directory or under the home directory of user you are trying to SU.
Thanks
Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2007 04:45 AM
02-05-2007 04:45 AM
Re: Sudo log
The sudo log will log those commands that you invoke with sudo. If you run commands without 1st calling sudo then they will not be in the sudo log. If you have the HIST set up then they would be in the accounts '.sh_history' file.
If you are wanting to remove some info from the sudo log, you are compromising the integrity of any security features you may have setup. Also, it should be setup so that only root can edit the sudo log file.
If you are wanting to remove some info from the sudo log, you are compromising the integrity of any security features you may have setup. Also, it should be setup so that only root can edit the sudo log file.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP