- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: how to log sudo activities in separate log fil...
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
Discussions
Discussions
Discussions
Forums
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
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-07-2009 07:07 AM
тАО04-07-2009 07:07 AM
I am using Redhat, Suse and HP-UX.
There is some users are configured in sudo.
So i want to log all sudo activities in separate file.
Pls answer my following questions:
1) what is default log file where all sudo activities are stored in Redhat, suse and HP-UX
2) How to store sudo activities in separate log file in Redhat, Suse and HP-UX.
pls explain for each OS.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2009 07:31 AM
тАО04-07-2009 07:31 AM
Re: how to log sudo activities in separate log file
2) Add a line like this to the defaults specification:
Defaults logfile=/var/log/sudo.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2009 07:44 AM
тАО04-07-2009 07:44 AM
Re: how to log sudo activities in separate log file
in which file we have to add this line.
pls tell me for Redhat, suse and HP-UX separately.
is sudo logs only will be stored in /var/log/sudo.log after adding this entry?
or
is all the logs of /var/log/messages" is transfered to "/var/log/sudo.log"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2009 09:54 AM
тАО04-07-2009 09:54 AM
Re: how to log sudo activities in separate log file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2009 09:57 AM
тАО04-07-2009 09:57 AM
Re: how to log sudo activities in separate log file
and search for sudo.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2009 10:00 AM
тАО04-07-2009 10:00 AM
SolutionDefaults logfile=/var/adm/sudo.log
The log file which we generally mention is
/var/log/sudo.local.log
Since /var/log does not exist, it get to the the default destination syslog.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2009 11:38 AM
тАО04-07-2009 11:38 AM
Re: how to log sudo activities in separate log file
Just run as root the visudo command
>>> pls tell me for Redhat, suse and HP-UX separately.
Same for all
>>> is sudo logs only will be stored in /var/log/sudo.log after adding this entry?
Only sudo logs