<?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: runacct error: Not owner in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/runacct-error-not-owner/m-p/4168668#M320968</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;a) Who is the owner of directories&lt;BR /&gt;&lt;BR /&gt;/var/adm/sa&lt;BR /&gt;/var/adm/acct&lt;BR /&gt;&lt;BR /&gt;b) Who is the owner of directory /var/adm&lt;BR /&gt;&lt;BR /&gt;c) Who is the owner of:&lt;BR /&gt;&lt;BR /&gt;/var/adm/wtmp*&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT&lt;BR /&gt;&lt;BR /&gt;c)</description>
    <pubDate>Thu, 27 Mar 2008 02:11:17 GMT</pubDate>
    <dc:creator>VK2COT</dc:creator>
    <dc:date>2008-03-27T02:11:17Z</dc:date>
    <item>
      <title>runacct error: Not owner</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/runacct-error-not-owner/m-p/4168667#M320967</link>
      <description>I have recently commissioned several HP-UX 11.23 servers.  They all suffer the same problem when the accounting script is run overnight.  The accounting run appears to work correctly but produces two annoying messages that cause the cron to send an email.&lt;BR /&gt;&lt;BR /&gt;Not owner&lt;BR /&gt;/var/adm/wtmps: Not owner&lt;BR /&gt;&lt;BR /&gt;These come from the /usr/sbin/acct/runacct script.  No other messages are emitted!&lt;BR /&gt;&lt;BR /&gt;By turning on shell tracing, I see that the errors come from two underlying calls respectively:&lt;BR /&gt;closewtmp and utmp2wtmp&lt;BR /&gt;&lt;BR /&gt;If /var/adm/wtmps is deleted, it is regenerated automatically if someone does a login.&lt;BR /&gt;&lt;BR /&gt;ls -l /var/adm/wtmps&lt;BR /&gt;-rw-rw-r--   1 adm        adm           2608 Mar 27 14:04 /var/adm/wtmps&lt;BR /&gt;&lt;BR /&gt;and the runacct script is run from the adm cron.&lt;BR /&gt;&lt;BR /&gt;Any ideas about why this is happening?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Mar 2008 00:32:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/runacct-error-not-owner/m-p/4168667#M320967</guid>
      <dc:creator>Jim Walls</dc:creator>
      <dc:date>2008-03-27T00:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: runacct error: Not owner</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/runacct-error-not-owner/m-p/4168668#M320968</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;a) Who is the owner of directories&lt;BR /&gt;&lt;BR /&gt;/var/adm/sa&lt;BR /&gt;/var/adm/acct&lt;BR /&gt;&lt;BR /&gt;b) Who is the owner of directory /var/adm&lt;BR /&gt;&lt;BR /&gt;c) Who is the owner of:&lt;BR /&gt;&lt;BR /&gt;/var/adm/wtmp*&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT&lt;BR /&gt;&lt;BR /&gt;c)</description>
      <pubDate>Thu, 27 Mar 2008 02:11:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/runacct-error-not-owner/m-p/4168668#M320968</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2008-03-27T02:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: runacct error: Not owner</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/runacct-error-not-owner/m-p/4168669#M320969</link>
      <description>ls -ld /var/adm/sa /var/adm/acct /var/adm&lt;BR /&gt;drwxr-xr-x  17 adm        adm           8192 Mar 27 18:50 /var/adm&lt;BR /&gt;drwxr-xr-x   5 adm        adm             96 Oct 23 18:15 /var/adm/acct&lt;BR /&gt;drwxr-xr-x   2 adm        adm           8192 Mar 27 00:00 /var/adm/sa&lt;BR /&gt;&lt;BR /&gt;ls -l /var/adm/wtmp*&lt;BR /&gt;-rw-rw-r--   1 adm        adm         109500 Mar 27 18:57 /var/adm/wtmp&lt;BR /&gt;-rw-rw-r--   1 adm        adm           5868 Mar 27 18:57 /var/adm/wtmps&lt;BR /&gt;-rw-r--r--   1 root       sys            280 Mar 27 18:50 /var/adm/wtmpx&lt;BR /&gt;&lt;BR /&gt;Please note, wtmpx has the same ownership and permissions on all our other HP-UX servers - that do not exhibit this problem.&lt;BR /&gt;&lt;BR /&gt;Also, wtmps is new at HP-UX 11.23 - 11&amp;gt;11 does not use it.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Mar 2008 05:29:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/runacct-error-not-owner/m-p/4168669#M320969</guid>
      <dc:creator>Jim Walls</dc:creator>
      <dc:date>2008-03-27T05:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: runacct error: Not owner</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/runacct-error-not-owner/m-p/4168670#M320970</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Typically, this error indicates an attempt&lt;BR /&gt;to modify a file in some way forbidden except &lt;BR /&gt;to its owner or the super-user, such as to&lt;BR /&gt;change its mode. It is also returned for&lt;BR /&gt;attempts by ordinary users to do things for&lt;BR /&gt;which they need, but lack, a special&lt;BR /&gt;privilege.&lt;BR /&gt;&lt;BR /&gt;I would like to test setprivgrp(1) as&lt;BR /&gt;workaround.&lt;BR /&gt;&lt;BR /&gt;Here is what I would like to try (cannot do&lt;BR /&gt;it before next week):&lt;BR /&gt;&lt;BR /&gt;a) Login as root.&lt;BR /&gt;&lt;BR /&gt;b) Create the file /etc/privgroup.&lt;BR /&gt;&lt;BR /&gt;3) Add line "adm MLOCK" to file.&lt;BR /&gt;&lt;BR /&gt;4) As root, run the command:&lt;BR /&gt;&lt;BR /&gt;# setprivgrp -f /etc/privgroup&lt;BR /&gt;&lt;BR /&gt;Or something similar to that.&lt;BR /&gt;&lt;BR /&gt;Likewise we could use tusc(1) to&lt;BR /&gt;trace system calls in closewtmp&lt;BR /&gt;and utmp2wtmp. Maybe some of these&lt;BR /&gt;commands is executing chroot().&lt;BR /&gt;&lt;BR /&gt;I tested your issue on two HP-UX 11.23&lt;BR /&gt;servers (running December 2007 patches).&lt;BR /&gt;I can confirm that I experienced the same&lt;BR /&gt;problems as you.&lt;BR /&gt;&lt;BR /&gt;As you said, two commands cause it.&lt;BR /&gt;Here is the excerpt from the runacct&lt;BR /&gt;Shell script debug session:&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;+ test -r Spacct1.0328&lt;BR /&gt;+ mv pacct1 Spacct1.0328&lt;BR /&gt;+ test -r /var/adm/acct/nite/wtmp.0328&lt;BR /&gt;+ closewtmp&lt;BR /&gt; : Not owner&lt;BR /&gt;+ cp /var/adm/wtmps /var/adm/acct/nite/wtmp.0328&lt;BR /&gt;+ acctwtmp -X runacct&lt;BR /&gt;+ 1&amp;gt;&amp;gt; /var/adm/acct/nite/wtmp.0328&lt;BR /&gt;+ nulladm /var/adm/wtmps&lt;BR /&gt;+ utmp2wtmp&lt;BR /&gt;/var/adm/wtmps: Not owner&lt;BR /&gt;+ echo files setups complete&lt;BR /&gt;+ 1&amp;gt;&amp;gt; /var/adm/acct/nite/active&lt;BR /&gt;+ echo WTMPFIX&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;Maybe next week brings more sun.&lt;BR /&gt;It looks we might have hit some bug with&lt;BR /&gt;Unix system accounting under HP-UX 11.23.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Fri, 28 Mar 2008 09:14:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/runacct-error-not-owner/m-p/4168670#M320970</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2008-03-28T09:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: runacct error: Not owner</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/runacct-error-not-owner/m-p/4168671#M320971</link>
      <description>sounds interesting..</description>
      <pubDate>Fri, 28 Mar 2008 09:30:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/runacct-error-not-owner/m-p/4168671#M320971</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2008-03-28T09:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: runacct error: Not owner</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/runacct-error-not-owner/m-p/4168672#M320972</link>
      <description>Thanks for the feedback,Dusan.&lt;BR /&gt;&lt;BR /&gt;I came to a similar conclusion and decided to invoke our HP support contract... the HP technician asked for tusc output from closewtmp and utmp2wtmp.  It will be interesting to hear what they come up with.&lt;BR /&gt;&lt;BR /&gt;Jim.&lt;BR /&gt;</description>
      <pubDate>Sat, 29 Mar 2008 06:05:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/runacct-error-not-owner/m-p/4168672#M320972</guid>
      <dc:creator>Jim Walls</dc:creator>
      <dc:date>2008-03-29T06:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: runacct error: Not owner</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/runacct-error-not-owner/m-p/4168673#M320973</link>
      <description>&amp;gt;I see that the errors come from two underlying calls respectively:&lt;BR /&gt;closewtmp and utmp2wtmp&lt;BR /&gt;&lt;BR /&gt;Have you compared the permissions on these two with your other systems?  Are they SUID?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Dusan: Likewise we could use tusc(1) to&lt;BR /&gt;trace system calls&lt;BR /&gt;&lt;BR /&gt;Yes, that would show what file had the problem.</description>
      <pubDate>Sat, 29 Mar 2008 12:43:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/runacct-error-not-owner/m-p/4168673#M320973</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-03-29T12:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: runacct error: Not owner</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/runacct-error-not-owner/m-p/4168674#M320974</link>
      <description>&amp;gt;Have you compared the permissions on these two with your other systems? Are they SUID?&lt;BR /&gt;&lt;BR /&gt;The files have identical permission as those on 11.11 systems - they are not SUID/SGID - but the file sizes and dates are different.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 30 Mar 2008 02:13:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/runacct-error-not-owner/m-p/4168674#M320974</guid>
      <dc:creator>Jim Walls</dc:creator>
      <dc:date>2008-03-30T02:13:27Z</dc:date>
    </item>
  </channel>
</rss>

