<?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: root passwd in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/root-passwd/m-p/2631051#M41239</link>
    <description>thanks dungen / eugen,&lt;BR /&gt;&lt;BR /&gt;I gotta it.....</description>
    <pubDate>Thu, 13 Dec 2001 10:08:25 GMT</pubDate>
    <dc:creator>SSP_1</dc:creator>
    <dc:date>2001-12-13T10:08:25Z</dc:date>
    <item>
      <title>root passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-passwd/m-p/2631042#M41230</link>
      <description>Hi All,&lt;BR /&gt;Just came to know with a starnge discovery....would like ur comments on the same.&lt;BR /&gt;&lt;BR /&gt;If I created a login with uid "0" say toor and after logging with this "toor" id if I am going to change the passwd with only "passwd" command, it changes the root passwd also. Is it so? how to restrict?</description>
      <pubDate>Thu, 13 Dec 2001 09:33:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-passwd/m-p/2631042#M41230</guid>
      <dc:creator>SSP_1</dc:creator>
      <dc:date>2001-12-13T09:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: root passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-passwd/m-p/2631043#M41231</link>
      <description>... don't let anyone create an account with UID 0!&lt;BR /&gt;&lt;BR /&gt;I am assuming the proble here is that you have some utility which allows non-root users to add users to the system/change passwords etc. Any utility which allows you to do this, should prevent the assignment of UID 0 for a new user, and prevent the change of passwords for any account with UID 0.&lt;BR /&gt;&lt;BR /&gt;If the problem is others who do not understand this who have access to the root account to create/change accounts - well you have a bigger problem!&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Thu, 13 Dec 2001 09:38:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-passwd/m-p/2631043#M41231</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2001-12-13T09:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: root passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-passwd/m-p/2631044#M41232</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The superuser root account also uses the uid of 0. A superuser, whose effective user ID is zero is allowed to change any password and is not forced to comply with password aging.&lt;BR /&gt;&lt;BR /&gt;Hope I interpreted your question correctly and this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;</description>
      <pubDate>Thu, 13 Dec 2001 09:41:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-passwd/m-p/2631044#M41232</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2001-12-13T09:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: root passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-passwd/m-p/2631045#M41233</link>
      <description>Hi Duncan,&lt;BR /&gt;&lt;BR /&gt;It's me only who has created this "toor" login, equivalent root id. So that if something goes wrong with root , I may not die.</description>
      <pubDate>Thu, 13 Dec 2001 09:41:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-passwd/m-p/2631045#M41233</guid>
      <dc:creator>SSP_1</dc:creator>
      <dc:date>2001-12-13T09:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: root passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-passwd/m-p/2631046#M41234</link>
      <description>UID 0 is reserved exclusively for root!!&lt;BR /&gt;Make sure your /etc/passwd file reflects this correctly, or you're just asking for trouble.</description>
      <pubDate>Thu, 13 Dec 2001 09:41:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-passwd/m-p/2631046#M41234</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2001-12-13T09:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: root passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-passwd/m-p/2631047#M41235</link>
      <description>As Deepak says, having another account with UID 0 is asking for trouble, and I wouldn't advise doing what you are proposing... but if your determined to do it, rather than creating the user and setting a password in the normal way, just use 'vipw' and copy and paste the root acccount onto the last line, then change the user name... you now have another account the same as root, with the same password.&lt;BR /&gt;&lt;BR /&gt;Of course it won't work if you are running as a trusted system.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Thu, 13 Dec 2001 09:49:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-passwd/m-p/2631047#M41235</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2001-12-13T09:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: root passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-passwd/m-p/2631048#M41236</link>
      <description>Friends,&lt;BR /&gt;&lt;BR /&gt;But if I am login into the system with id "toor" and then issuing "passwd" command why is it changing the passwd for "root" and not specifically for "toor" id.</description>
      <pubDate>Thu, 13 Dec 2001 09:56:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-passwd/m-p/2631048#M41236</guid>
      <dc:creator>SSP_1</dc:creator>
      <dc:date>2001-12-13T09:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: root passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-passwd/m-p/2631049#M41237</link>
      <description>Because root is the first UID 0 entry in the /etc/passwd file... (I think) If you want to test this out, try moving the toor user to the top of your passwd file and try again - all the usual caveats about having another 'logged in' session available apply... remember to change this back when your done.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Thu, 13 Dec 2001 10:05:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-passwd/m-p/2631049#M41237</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2001-12-13T10:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: root passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-passwd/m-p/2631050#M41238</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;This is because the 'passwd' command is not based on the username but on id of the user.&lt;BR /&gt;&lt;BR /&gt;Actually, usernames is just the 'friendly' part of the SO, all operations should be done based on id of the user. Most of the programs do so.&lt;BR /&gt;&lt;BR /&gt;E.</description>
      <pubDate>Thu, 13 Dec 2001 10:06:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-passwd/m-p/2631050#M41238</guid>
      <dc:creator>Eugen Cocalea</dc:creator>
      <dc:date>2001-12-13T10:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: root passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-passwd/m-p/2631051#M41239</link>
      <description>thanks dungen / eugen,&lt;BR /&gt;&lt;BR /&gt;I gotta it.....</description>
      <pubDate>Thu, 13 Dec 2001 10:08:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-passwd/m-p/2631051#M41239</guid>
      <dc:creator>SSP_1</dc:creator>
      <dc:date>2001-12-13T10:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: root passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-passwd/m-p/2631052#M41240</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;This is from the man pages:&lt;BR /&gt;&lt;BR /&gt;man passwd:&lt;BR /&gt;&lt;BR /&gt;The passwd command modifies the password as well as the attributes associated with the login name. If name is omitted, it defaults to the invoking user's login name, which is determined using getlogin(3C).&lt;BR /&gt;&lt;BR /&gt;man getlogin:&lt;BR /&gt;&lt;BR /&gt;The getlogin() function can be used in conjunction with getpwnam() to locate the correct password file entry when the same user ID is shared by several login names.&lt;BR /&gt;&lt;BR /&gt;If passwd uses getpwnam () (I am not sure if it uses it), then given that the user ID (uid) is 0 and is shared by several login names (ie. root and toor), then getpwnam () should return the correct passwd file entry for toor.&lt;BR /&gt;&lt;BR /&gt;Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;</description>
      <pubDate>Thu, 13 Dec 2001 10:25:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-passwd/m-p/2631052#M41240</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2001-12-13T10:25:52Z</dc:date>
    </item>
  </channel>
</rss>

