<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: sudo messages to root tty in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-messages-to-roo-tty/m-p/4830543#M393166</link>
    <description>&lt;P&gt;Login as root and execute visudo command to edit /etc/sudoers file. Don't try to open /etc/sudoers file with vi or any other editor because if you put any wrong entry or syntax is incorrect then at the time saving it will not warn you. But in case of visudo it will warn you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So finally add the following entry&amp;nbsp;at the top of &amp;nbsp;/etc/sudoers file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Defaults logfile=/var/log/sudolog&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change&amp;nbsp;/var/log/sudolog file permission and ownership as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# chown root:sys /var/log/sudolog&lt;/P&gt;&lt;P&gt;# chown 0600 /var/log/sudolog&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now onwards all sudo related logs will come under /var/log/sudolog file.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jul 2011 14:50:22 GMT</pubDate>
    <dc:creator>Arunabha Banerjee</dc:creator>
    <dc:date>2011-07-18T14:50:22Z</dc:date>
    <item>
      <title>sudo messages to roo tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-messages-to-roo-tty/m-p/4828997#M393104</link>
      <description>&lt;P&gt;I am running HP-UX 11.31 and using ixpress sudo to allow users to run some commands....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is the many messages it puts out to the root tty throughout the day....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to stop these messages from displaying:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jul 16 06:47:18 tmoa1db01 sudo: mmahmoud : /var/adm owned by uid 4, should be uid 0 ; TTY=pts/3 ; PWD=/t3home_dirs/users/mmahmoud ; USER=root ; COMMAND=/usr/local/bin/oracle&lt;BR /&gt;Jul 16 10:48:25 tmoa1db01 sudo: mmahmoud : /var/adm owned by uid 4, should be uid 0 ; TTY=pts/3 ; PWD=/t3home_dirs/users/mmahmoud ; USER=root ; COMMAND=/usr/local/bin/oracle&lt;BR /&gt;Jul 16 11:57:02 tmoa1db01 sudo: kvelusam : /var/adm owned by uid 4, should be uid 0 ; TTY=pts/2 ; PWD=/t3home_dirs/users/kvelusam ; USER=root ; COMMAND=/usr/local/bin/oracle&lt;BR /&gt;Jul 16 12:50:51 tmoa1db01 sudo: mmahmoud : /var/adm owned by uid 4, should be uid 0 ; TTY=pts/2 ; PWD=/t3home_dirs/users/mmahmoud ; USER=root ; COMMAND=/usr/local/bin/oracle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The /etc/syslog.conf currently contains following, and I assume the *.alert&amp;nbsp; root, line needs to be changed somehow but not sure how...:&lt;/P&gt;&lt;P&gt;=&amp;gt; cat /etc/syslog.conf&lt;BR /&gt;# @(#)B.11.31_LR&lt;BR /&gt;#&lt;BR /&gt;# syslogd configuration file.&lt;BR /&gt;#&lt;BR /&gt;# See syslogd(1M) for information about the format of this file.&lt;BR /&gt;#&lt;BR /&gt;mail.debug&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /var/adm/syslog/mail.log&lt;BR /&gt;*.info;mail.none&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /var/adm/syslog/syslog.log&lt;BR /&gt;*.alert&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /dev/console&lt;BR /&gt;*.alert&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; root&lt;BR /&gt;*.emerg&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;BR /&gt;=&amp;gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jul 2011 17:01:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-messages-to-roo-tty/m-p/4828997#M393104</guid>
      <dc:creator>MikeL_4</dc:creator>
      <dc:date>2011-07-16T17:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: sudo messages to root tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-messages-to-roo-tty/m-p/4829023#M393105</link>
      <description>&lt;P&gt;&amp;gt;/var/adm owned by uid 4, should be uid 0 ﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you looked at who owns /var/adm/?&amp;nbsp;&amp;nbsp; ll -d /var/adm/&lt;/P&gt;&lt;P&gt;You may want to compare against another system.&amp;nbsp; It may be that you shouldn't have the sudo logs there because sudo wants root to be the owner and swverify wants UID 4.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jul 2011 19:05:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-messages-to-roo-tty/m-p/4829023#M393105</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-07-16T19:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: sudo messages to root tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-messages-to-roo-tty/m-p/4829365#M393112</link>
      <description>&lt;P&gt;I've checked every HP-UX server we have and the /var/adm directory is owned by UID 4 and GID 4 which is 'adm' ID and Group.... So I'm resitent to just change the owner:group on /var/adm....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Don't know why sudo would be interested in this to start with, the sud log file is: /var/log/sudolog...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jul 2011 17:27:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-messages-to-roo-tty/m-p/4829365#M393112</guid>
      <dc:creator>MikeL_4</dc:creator>
      <dc:date>2011-07-17T17:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: sudo messages to root tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-messages-to-roo-tty/m-p/4829395#M393114</link>
      <description>&lt;P&gt;&amp;gt; I'm resistant to just change the owner:group on /var/adm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rightly so.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;the sudo log file is: /var/log/sudolog.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hmm.&amp;nbsp; Them I'm not sure why it is looking at /var/adm/.&lt;/P&gt;&lt;P&gt;You may want to search the sudo documentation for /var/adm to see if it is mentioned.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jul 2011 19:32:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-messages-to-roo-tty/m-p/4829395#M393114</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-07-17T19:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: sudo messages to root tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-messages-to-roo-tty/m-p/4829421#M393116</link>
      <description>&lt;P&gt;The sudo command they are executing is: COMMAND=/usr/local/bin/oracle, which is nothing more than an su command for the DBA's to get to the oracle Adminitrative account:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=&amp;gt; cat /usr/local/bin/oracle&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;su - oracle&lt;BR /&gt;=&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the sulog is in /var/adm, so maybe that could be what is causing the message ...&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jul 2011 20:16:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-messages-to-roo-tty/m-p/4829421#M393116</guid>
      <dc:creator>MikeL_4</dc:creator>
      <dc:date>2011-07-17T20:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: sudo messages to root tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-messages-to-roo-tty/m-p/4829427#M393117</link>
      <description>&lt;P&gt;&amp;gt;the sulog is in /var/adm, so maybe that could be what is causing the message ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's not sudolog, so I'm not sure why it is looking there.&amp;nbsp; Is it logging anything here?&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jul 2011 20:36:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-messages-to-roo-tty/m-p/4829427#M393117</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-07-17T20:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: sudo messages to root tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-messages-to-roo-tty/m-p/4830543#M393166</link>
      <description>&lt;P&gt;Login as root and execute visudo command to edit /etc/sudoers file. Don't try to open /etc/sudoers file with vi or any other editor because if you put any wrong entry or syntax is incorrect then at the time saving it will not warn you. But in case of visudo it will warn you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So finally add the following entry&amp;nbsp;at the top of &amp;nbsp;/etc/sudoers file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Defaults logfile=/var/log/sudolog&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change&amp;nbsp;/var/log/sudolog file permission and ownership as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# chown root:sys /var/log/sudolog&lt;/P&gt;&lt;P&gt;# chown 0600 /var/log/sudolog&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now onwards all sudo related logs will come under /var/log/sudolog file.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2011 14:50:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-messages-to-roo-tty/m-p/4830543#M393166</guid>
      <dc:creator>Arunabha Banerjee</dc:creator>
      <dc:date>2011-07-18T14:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: sudo messages to root tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-messages-to-roo-tty/m-p/4833345#M393223</link>
      <description>&lt;P&gt;I have same issue on my HP-UX servers at customer site.&lt;/P&gt;&lt;P&gt;I have changed loggin according last post (redirect sudo logs tu /var/log/sudolog) but the behaviour of sudo did not change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sudo warn me not only to logfie but also on the screen when I try to execute any command under sudo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2011 09:05:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-messages-to-roo-tty/m-p/4833345#M393223</guid>
      <dc:creator>MilanMazac</dc:creator>
      <dc:date>2011-07-20T09:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: sudo messages to root tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-messages-to-roo-tty/m-p/4833467#M393231</link>
      <description>&lt;P&gt;Solved:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the root cause of error reporting is that sudo on HP-UX use /var/adm directory as timestapm directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created /var/adm/sudo directory to keep general practise&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# mkdir /var/adm/sudo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;after that I added followed lines at the beginning of the sudoers file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Defaults logfile=/var/adm/sudo/sudo.log&lt;BR /&gt;Defaults timestampdir=/var/adm/sudo﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everyting works O.K.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2011 10:30:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-messages-to-roo-tty/m-p/4833467#M393231</guid>
      <dc:creator>MilanMazac</dc:creator>
      <dc:date>2011-07-20T10:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: sudo messages to root tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-messages-to-roo-tty/m-p/4834349#M393258</link>
      <description>&lt;P&gt;Thanks Milan, the last suggestion solved my issue also...&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2011 18:02:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-messages-to-roo-tty/m-p/4834349#M393258</guid>
      <dc:creator>MikeL_4</dc:creator>
      <dc:date>2011-07-20T18:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: sudo messages to root tty</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-messages-to-roo-tty/m-p/4834373#M393260</link>
      <description>&lt;P&gt;Have you seen this warning about the new sudo being broken?&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://h30499.www3.hp.com/t5/Security/Serious-issue-with-sudo-A-16-00-1-7-4p4-001/m-p/4831101/message-uid/4831101#U4831101"&gt;http://h30499.www3.hp.com/t5/Security/Serious-issue-with-sudo-A-16-00-1-7-4p4-001/m-p/4831101/message-uid/4831101#U4831101&lt;/A&gt;﻿&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2011 18:39:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-messages-to-roo-tty/m-p/4834373#M393260</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-07-20T18:39:58Z</dc:date>
    </item>
  </channel>
</rss>

