<?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 logs in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-logs/m-p/3860814#M276705</link>
    <description>&amp;gt; 1. When I issue the #visudo I can see there is a line like this:&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;Defaults log_year,logfile=/var/log/sudo.local.log&lt;BR /&gt; &lt;BR /&gt;The sudo log file is in the /var/log directory. However, if no one created the directory, then sudo logs just to syslog.&lt;BR /&gt; &lt;BR /&gt;2...syslog.conf...&lt;BR /&gt; &lt;BR /&gt;This is a standard syslog file. What you look for is a special file for authorizations, but none are present in this file.&lt;BR /&gt; &lt;BR /&gt;3...sudo.log or syslog...&lt;BR /&gt; &lt;BR /&gt;syslog is a very busy file so sorting out the sudo activities will require some work. I would change the sudoers file with visudo to read this way:&lt;BR /&gt; &lt;BR /&gt;Defaults logfile=/var/adm/sudo.log&lt;BR /&gt; &lt;BR /&gt;Most of the HP-UX logfiles are in /var/adm so this is a good place for the sudo log.</description>
    <pubDate>Tue, 18 Dec 2007 02:25:05 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2007-12-18T02:25:05Z</dc:date>
    <item>
      <title>Sudo logs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-logs/m-p/3860806#M276697</link>
      <description>This is my situation:&lt;BR /&gt;&lt;BR /&gt;1. User sudo su - abc&lt;BR /&gt;2. after login to abc he executes "rm *"&lt;BR /&gt;3. exit&lt;BR /&gt;&lt;BR /&gt;I have entry in sudoers file that allow this user to run su, also defines the log file in /var/log/sudo.log. Now how do I get that this user also executed "rm *" in log file.</description>
      <pubDate>Mon, 11 Sep 2006 19:41:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-logs/m-p/3860806#M276697</guid>
      <dc:creator>MohitAnchlia</dc:creator>
      <dc:date>2006-09-11T19:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo logs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-logs/m-p/3860807#M276698</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;You kind of don't get that in the log file without scripting it.&lt;BR /&gt;&lt;BR /&gt;Your standard user environment should set HISTFILE variable so that keystrokes can be logged to a file. This output can be appended to the sudo logs. Also, you could use the tee command or echo commands to route specific output to the sudo logs.&lt;BR /&gt;&lt;BR /&gt;The best way to go is to write a script that peforms these actions in a safe and controlled way. This very same script can be configured to update any log you'd like updated.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 11 Sep 2006 19:48:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-logs/m-p/3860807#M276698</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-09-11T19:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo logs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-logs/m-p/3860808#M276699</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;1) Convert to a trusted system.&lt;BR /&gt;&lt;BR /&gt;2) Run the 'script' command from the user's profile.  You may also be able to use GNU Screen for this purpose.&lt;BR /&gt;&lt;BR /&gt;3) Set $HISTFILE to a non-default value and hope the user isn't sophisticated enough to find/edit his history.&lt;BR /&gt;&lt;BR /&gt;Also, don't forget to assign points to any responses that may have helped you.  You are currently 0 for 9.&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Mon, 11 Sep 2006 20:08:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-logs/m-p/3860808#M276699</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-09-11T20:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo logs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-logs/m-p/3860809#M276700</link>
      <description>"sudo su - abc" is very poor design. sudo is very powerful but to allow su essentially destroys all your system security. su must be forbidden in the sudoers file. If a user wants to run a specific instruction, the sudoers file must allow it explicitly. The sudo log only logs the command on the sudo line. Now the user abc should have .sh_history available so you could look in that file for commands. But that should never be used as a security procedure.&lt;BR /&gt; &lt;BR /&gt;Security must be inconvenient so you take away su from the sudo configuration. If a user wants to do something as a specific user, that task should be identified and scripted if necessary. And note that security doesn't just mean keeping out the bad guys -- it also means preventing mistakes. Your sudo file should have explicit commands and even specific parameters to commands. For example, do not give sudo users access to the mount and umount command when they want to use a CDROM. Instead, you specify the exact command such as: mount /cdrom</description>
      <pubDate>Mon, 11 Sep 2006 20:08:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-logs/m-p/3860809#M276700</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-09-11T20:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo logs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-logs/m-p/3860810#M276701</link>
      <description>Dear HPUX Gurus,&lt;BR /&gt;The conversation is very interesting.&lt;BR /&gt;i tried to find the log inside, i can't find any sudo log inside the system?&lt;BR /&gt;our system is hpux 11.23i. this log is very important to track any sudo user that using the utilities right? &lt;BR /&gt;hope to hear from you&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Dec 2007 02:23:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-logs/m-p/3860810#M276701</guid>
      <dc:creator>apple</dc:creator>
      <dc:date>2007-12-17T02:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo logs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-logs/m-p/3860811#M276702</link>
      <description>by default you can view the sudo logs from syslog.log file.</description>
      <pubDate>Mon, 17 Dec 2007 04:21:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-logs/m-p/3860811#M276702</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2007-12-17T04:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo logs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-logs/m-p/3860812#M276703</link>
      <description>almond08: ...where is sudo log ...&lt;BR /&gt; &lt;BR /&gt;It would be better to start your own question about this. The answer is that sudo can be installed from many, many different locations and has a number of versions available. If you compiled sudo then there were many options available to configure sudo values indicating where the log is located. Also, you can set the log file location in the sudoers file. Run the command:&lt;BR /&gt; &lt;BR /&gt;visudo&lt;BR /&gt; &lt;BR /&gt;and see if the logfile= option has been set. As mentioned, the syslog file (/var/adm/syslog/syslog.log) file will have the details, but check /etc/syslog.conf for syslog options too.</description>
      <pubDate>Mon, 17 Dec 2007 21:26:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-logs/m-p/3860812#M276703</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2007-12-17T21:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo logs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-logs/m-p/3860813#M276704</link>
      <description>Thank you for the great explaination. &lt;BR /&gt;1. When I issue the #visudo&lt;BR /&gt;I can see there is a line like this: &lt;BR /&gt;&lt;BR /&gt;Defaults log_year, logfile=/var/log/sudo.local.log&lt;BR /&gt;&lt;BR /&gt;but when i go to /var, i can't get the log folder. do we have such hidden folder or what for this sudo security purpose? &lt;BR /&gt;&lt;BR /&gt;2. i go to /etc/syslog.conf, the output are such:&lt;BR /&gt;# syslogd configuration file.&lt;BR /&gt;&lt;BR /&gt;mail.debug  /var/adm/syslog/mail.log&lt;BR /&gt;*.info;mail.none /var/adm/syslog/syslog.log&lt;BR /&gt;*.alert           /dev/console&lt;BR /&gt;*.alert           root&lt;BR /&gt;*.emerg            *&lt;BR /&gt;&lt;BR /&gt;do we have to add in an entry for our sudo log? &lt;BR /&gt;&lt;BR /&gt;3. I go to /var/adm/syslog/syslog.log&lt;BR /&gt;i can see the sudo entries there. what is the best way to go for sudo log? the syslog.log or sudo.log? &lt;BR /&gt;Looking forward for your awaiting reply. Thank you.</description>
      <pubDate>Tue, 18 Dec 2007 01:00:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-logs/m-p/3860813#M276704</guid>
      <dc:creator>apple</dc:creator>
      <dc:date>2007-12-18T01:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo logs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-logs/m-p/3860814#M276705</link>
      <description>&amp;gt; 1. When I issue the #visudo I can see there is a line like this:&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;Defaults log_year,logfile=/var/log/sudo.local.log&lt;BR /&gt; &lt;BR /&gt;The sudo log file is in the /var/log directory. However, if no one created the directory, then sudo logs just to syslog.&lt;BR /&gt; &lt;BR /&gt;2...syslog.conf...&lt;BR /&gt; &lt;BR /&gt;This is a standard syslog file. What you look for is a special file for authorizations, but none are present in this file.&lt;BR /&gt; &lt;BR /&gt;3...sudo.log or syslog...&lt;BR /&gt; &lt;BR /&gt;syslog is a very busy file so sorting out the sudo activities will require some work. I would change the sudoers file with visudo to read this way:&lt;BR /&gt; &lt;BR /&gt;Defaults logfile=/var/adm/sudo.log&lt;BR /&gt; &lt;BR /&gt;Most of the HP-UX logfiles are in /var/adm so this is a good place for the sudo log.</description>
      <pubDate>Tue, 18 Dec 2007 02:25:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-logs/m-p/3860814#M276705</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2007-12-18T02:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo logs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-logs/m-p/3860815#M276706</link>
      <description>almond08&lt;BR /&gt;PLEASE do not hijack other threads, open your own thread and refer to this thread.&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Dec 2007 08:21:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-logs/m-p/3860815#M276706</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2007-12-18T08:21:34Z</dc:date>
    </item>
  </channel>
</rss>

