- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SUDO Output
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
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
тАО02-28-2011 10:28 PM
тАО02-28-2011 10:28 PM
Cannot see it defined in sudoers file.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2011 11:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2011 11:42 PM
тАО02-28-2011 11:42 PM
Re: SUDO Output
will it still log to the log file as below
Defaults log_output
Defaults!/usr/bin/sudoreplay !log_output
Defaults!/usr/local/bin/sudoreplay !log_output
Defaults!/sbin/reboot !log_output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2011 01:05 AM
тАО03-01-2011 01:05 AM
Re: SUDO Output
Kenan's suggestion is related to syslog message priority levels used by sudo, and what syslog is configured to do with them.
By default, sudo sends messages of failed attempts to use sudo to syslog using priority class "alert".
The HP-UX syslog daemon is typically configured to output serious error messages (including messages of priority class "alert") to the console in addition to writing them to the syslog file. Another typical configuration is that the messages of the highest priority class ("emerg") are sent out to every running session, somewhat like what the "wall" command does.
Kenan's suggestion is to reduce the syslog priority of the messages sent by sudo to "info". That is a very low priority level: it is only written to the syslog file by default, not output to the console.
Syslog also classifies messages by "facility" categories: you should read the /etc/syslog.conf file to see what syslog is configured to do with each facility/priority combination.
An alternative way to solve this problem would be to configure the syslog daemon to not output messages of the authentication facility to the console. But Kenan's solution affects only sudo, so it has less side effects.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2011 01:12 AM
тАО03-01-2011 01:12 AM