<?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 Bug or Feature? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/bug-or-feature/m-p/2646448#M44951</link>
    <description># uname -srv&lt;BR /&gt;HP-UX B.11.00 U&lt;BR /&gt;# model&lt;BR /&gt;9000/804/K450&lt;BR /&gt;# id -nu&lt;BR /&gt;root&lt;BR /&gt;# touch /tmp/ttt&lt;BR /&gt;# ll /tmp/ttt&lt;BR /&gt;-rw-r--r--   1 root       sys              0 Jan 16 17:17 /tmp/ttt&lt;BR /&gt;# id nobody&lt;BR /&gt;uid=4294967294(nobody) gid=4294967294(nogroup)&lt;BR /&gt;# chown nobody /tmp/ttt&lt;BR /&gt;/tmp/ttt: Invalid argument&lt;BR /&gt;# echo $?&lt;BR /&gt;1&lt;BR /&gt;# chgrp nogroup /tmp/ttt&lt;BR /&gt;/tmp/ttt: Invalid argument&lt;BR /&gt;# echo $?&lt;BR /&gt;1&lt;BR /&gt;# ll /tmp/ttt&lt;BR /&gt;-rw-r--r--   1 root       sys              0 Jan 16 17:17 /tmp/ttt&lt;BR /&gt;# chown nobody:nogroup /tmp/ttt&lt;BR /&gt;/tmp/ttt: Invalid argument&lt;BR /&gt;# echo $?&lt;BR /&gt;1&lt;BR /&gt;# ll /tmp/ttt&lt;BR /&gt;-rw-r--r--   1 root       sys              0 Jan 16 17:17 /tmp/ttt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I can recall having read in the installation instruction of Apache that you could not run httpd as nobody under HP-UX.&lt;BR /&gt;This seems to be the reason, but why?&lt;BR /&gt;Would it be possible to usermod nobody account to give it a new UID and GID, or would one screw up other services relying on this strange behavior?</description>
    <pubDate>Wed, 16 Jan 2002 16:23:50 GMT</pubDate>
    <dc:creator>Ralph Grothe</dc:creator>
    <dc:date>2002-01-16T16:23:50Z</dc:date>
    <item>
      <title>Bug or Feature?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bug-or-feature/m-p/2646448#M44951</link>
      <description># uname -srv&lt;BR /&gt;HP-UX B.11.00 U&lt;BR /&gt;# model&lt;BR /&gt;9000/804/K450&lt;BR /&gt;# id -nu&lt;BR /&gt;root&lt;BR /&gt;# touch /tmp/ttt&lt;BR /&gt;# ll /tmp/ttt&lt;BR /&gt;-rw-r--r--   1 root       sys              0 Jan 16 17:17 /tmp/ttt&lt;BR /&gt;# id nobody&lt;BR /&gt;uid=4294967294(nobody) gid=4294967294(nogroup)&lt;BR /&gt;# chown nobody /tmp/ttt&lt;BR /&gt;/tmp/ttt: Invalid argument&lt;BR /&gt;# echo $?&lt;BR /&gt;1&lt;BR /&gt;# chgrp nogroup /tmp/ttt&lt;BR /&gt;/tmp/ttt: Invalid argument&lt;BR /&gt;# echo $?&lt;BR /&gt;1&lt;BR /&gt;# ll /tmp/ttt&lt;BR /&gt;-rw-r--r--   1 root       sys              0 Jan 16 17:17 /tmp/ttt&lt;BR /&gt;# chown nobody:nogroup /tmp/ttt&lt;BR /&gt;/tmp/ttt: Invalid argument&lt;BR /&gt;# echo $?&lt;BR /&gt;1&lt;BR /&gt;# ll /tmp/ttt&lt;BR /&gt;-rw-r--r--   1 root       sys              0 Jan 16 17:17 /tmp/ttt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I can recall having read in the installation instruction of Apache that you could not run httpd as nobody under HP-UX.&lt;BR /&gt;This seems to be the reason, but why?&lt;BR /&gt;Would it be possible to usermod nobody account to give it a new UID and GID, or would one screw up other services relying on this strange behavior?</description>
      <pubDate>Wed, 16 Jan 2002 16:23:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bug-or-feature/m-p/2646448#M44951</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2002-01-16T16:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Bug or Feature?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bug-or-feature/m-p/2646449#M44952</link>
      <description>nobody is used only for NFS and is not a regular user. So your chown command won't work.&lt;BR /&gt;&lt;BR /&gt;Not a bug but a feature.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 16 Jan 2002 16:29:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bug-or-feature/m-p/2646449#M44952</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-01-16T16:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Bug or Feature?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bug-or-feature/m-p/2646450#M44953</link>
      <description>Hi Ralph:&lt;BR /&gt;&lt;BR /&gt;I won't go into the why's but you need to create a user www and a group www. You proably already have a user www.&lt;BR /&gt;&lt;BR /&gt;Then in httpd.conf add:&lt;BR /&gt;User www&lt;BR /&gt;Group www&lt;BR /&gt;&lt;BR /&gt;You shoulkd then be able to start httpd without problems.</description>
      <pubDate>Wed, 16 Jan 2002 16:32:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bug-or-feature/m-p/2646450#M44953</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-01-16T16:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Bug or Feature?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bug-or-feature/m-p/2646451#M44954</link>
      <description>If the server in question also acts as an NFS server, changing the uid/gid of the nobody account could possibly screw up clients trying to connect.&lt;BR /&gt;&lt;BR /&gt;...here's another thread on the "nobody" account&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1b9a663ce855d511abcd0090277a778c,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1b9a663ce855d511abcd0090277a778c,00.html&lt;/A&gt;</description>
      <pubDate>Wed, 16 Jan 2002 16:38:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bug-or-feature/m-p/2646451#M44954</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2002-01-16T16:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Bug or Feature?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bug-or-feature/m-p/2646452#M44955</link>
      <description>Hi Sridhar, hi Jim,&lt;BR /&gt;&lt;BR /&gt;I was already aware that the main purpose of a nobody account derrives from the mapping needs of NFS.&lt;BR /&gt;But this to me doesn't look like sufficient evidence against chowning files to this account.&lt;BR /&gt;Please, have a look of how fine this works on the OS of the Network File System's inventors viz. Sun Microsystems :&lt;BR /&gt;&lt;BR /&gt;# uname -srv&lt;BR /&gt;SunOS 5.7 Generic_106541-11&lt;BR /&gt;# id&lt;BR /&gt;uid=0(root) gid=1(other)&lt;BR /&gt;# id nobody&lt;BR /&gt;uid=60001(nobody) gid=60001(nobody)&lt;BR /&gt;# touch /tmp/ttt&lt;BR /&gt;# ls -l /tmp/ttt&lt;BR /&gt;-rw-r-----   1 root     other          0 Jan 17 10:57 /tmp/ttt&lt;BR /&gt;# chown nobody /tmp/ttt&lt;BR /&gt;# ls -l /tmp/ttt&lt;BR /&gt;-rw-r-----   1 nobody   other          0 Jan 17 10:57 /tmp/ttt&lt;BR /&gt;# chgrp nobody /tmp/ttt&lt;BR /&gt;# ls -l /tmp/ttt&lt;BR /&gt;-rw-r-----   1 nobody   nobody         0 Jan 17 10:57 /tmp/ttt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Since this works fine under Solaris 2.7 the restrictions regarding HP-UX's nobody account to me seem to be a bug rather than a feature.</description>
      <pubDate>Thu, 17 Jan 2002 10:21:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bug-or-feature/m-p/2646452#M44955</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2002-01-17T10:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Bug or Feature?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bug-or-feature/m-p/2646453#M44956</link>
      <description>Ralph,&lt;BR /&gt;&lt;BR /&gt;I think the problem is the way the nobody userid is setup on your Sun and HP boxes - they are different.&lt;BR /&gt;&lt;BR /&gt;On an HP nobody is setup as;&lt;BR /&gt;nobody:*:-2:60001::/:&lt;BR /&gt;&lt;BR /&gt;Your Sun box shows that it has a hardset uid of 60001, not so on your HP. The HP uses a sort of random id which is why you cant change it on your ttt file.&lt;BR /&gt;On an HP you can do; chown 6001 ttt and it works fine, so if you change the nobody userid in the password file to a hardset of 6001, like your Sun, it will work. I dont know what other implications it will have for NFS etc, you will need to try it out.&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Jan 2002 10:49:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bug-or-feature/m-p/2646453#M44956</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-01-17T10:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Bug or Feature?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bug-or-feature/m-p/2646454#M44957</link>
      <description>Ralph,&lt;BR /&gt;&lt;BR /&gt;I admit I didn't read your question as I saw the respondees already gave you answers. What I want to state, is thaqt the term "bug" is harsh, let's call it "opportunity for enhancements".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Thu, 17 Jan 2002 13:41:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bug-or-feature/m-p/2646454#M44957</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-01-17T13:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Bug or Feature?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bug-or-feature/m-p/2646455#M44958</link>
      <description>Hi Ralph,&lt;BR /&gt;&lt;BR /&gt;I didn't really compare it with other OSes as my default scope limits to HP.&lt;BR /&gt;&lt;BR /&gt;Below is the excerpt from exportfs man page.&lt;BR /&gt;&lt;BR /&gt;---&amp;gt;&lt;BR /&gt;The default value for uid is the user ID of user          &lt;BR /&gt;nobody.  If user nobody does not exist, the value -2 is   &lt;BR /&gt;used.  Setting the value of anon to -1 disables           &lt;BR /&gt;anonymous access.                                         &lt;BR /&gt;&amp;lt;-----&lt;BR /&gt;&lt;BR /&gt;So, it may not be a problem if you are careful enough to use exportfs options. But people like me wouldn't want to change what's already there. My answer was that this particular user is intended for NFS and HP may not like to change it's feature.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Jan 2002 15:14:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bug-or-feature/m-p/2646455#M44958</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-01-17T15:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Bug or Feature?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bug-or-feature/m-p/2646456#M44959</link>
      <description>I would suspect that the reason you're getting the errors is that the value of UID_MAX on your system is 2147483647.  A glance at the chown.2 manpage reveals that neither uid or guid may be set higher than this constant.&lt;BR /&gt;&lt;BR /&gt;The reason the id command shows the uid and guid to be a large positive number and not -2 probably has to do with how negative numbers are represented in binary to a computer...I'd go into it more, but to be honest, it's been several years since I've had to do that sort of proof, and I don't think I could explain it very well.</description>
      <pubDate>Thu, 17 Jan 2002 15:40:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bug-or-feature/m-p/2646456#M44959</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2002-01-17T15:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Bug or Feature?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bug-or-feature/m-p/2646457#M44960</link>
      <description>A user ID is always numeric and except for NFS where -1 and -2 are defined, a user ID less than 0 is invalid. Note that the actual user name (nobody) is just a crutch for humans. chown simply translates nobody into -2 (via the passwd file) and then performs the ownership change with the number -2, which is invalid since the field is defined as a positive integer only.</description>
      <pubDate>Thu, 17 Jan 2002 18:17:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bug-or-feature/m-p/2646457#M44960</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-01-17T18:17:42Z</dc:date>
    </item>
  </channel>
</rss>

