<?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: User with Admin Rights in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715970#M385441</link>
    <description>&amp;gt;Jayakrishnan: As mentioned by Handly you need to use vipw to modify passwd file if the system is trusted.&lt;BR /&gt;&lt;BR /&gt;Actually I was saying the opposite.  If it isn't trusted, you can use vipw to just copy entries and passwords.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;if you are logged in you cannot remove the logged in user.&lt;BR /&gt;&lt;BR /&gt;For 11.31 there is -F and vipw(1m) doesn't care.</description>
    <pubDate>Mon, 22 Nov 2010 12:43:01 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2010-11-22T12:43:01Z</dc:date>
    <item>
      <title>User with Admin Rights</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715952#M385423</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to create a user with admin rights.&lt;BR /&gt;I dont want to use root for all the cases.&lt;BR /&gt;I need a user with all admin rights.&lt;BR /&gt;The user can able start and stop the application, start and stop the oracle packages, shutdown or restart the server, etc..&lt;BR /&gt;pls guide me....&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Suriya</description>
      <pubDate>Mon, 22 Nov 2010 06:13:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715952#M385423</guid>
      <dc:creator>Suriya Prakash</dc:creator>
      <dc:date>2010-11-22T06:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: User with Admin Rights</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715953#M385424</link>
      <description>Hi Suriya,&lt;BR /&gt;&lt;BR /&gt;  You can do this by creating another user with uid 0.&lt;BR /&gt;&lt;BR /&gt;There is an  option "-o" for creating users with non unique user ids&lt;BR /&gt;&lt;BR /&gt;useradd&lt;BR /&gt; -o     Allow the UID to be non-unique (that is, a duplicate).&lt;BR /&gt;&lt;BR /&gt;Hope this helps.... if helpful give appropriate points.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards&lt;BR /&gt;Jayakrishnan G Naik</description>
      <pubDate>Mon, 22 Nov 2010 06:27:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715953#M385424</guid>
      <dc:creator>Jayakrishnan G Naik</dc:creator>
      <dc:date>2010-11-22T06:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: User with Admin Rights</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715954#M385425</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply.&lt;BR /&gt;&lt;BR /&gt;If i create the user with the id 0.&lt;BR /&gt;&lt;BR /&gt;what about the root user with id 0.&lt;BR /&gt;&lt;BR /&gt;and tell me the full command to create the user with admin rights bcoz i'm new to unix.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Suriya.</description>
      <pubDate>Mon, 22 Nov 2010 06:33:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715954#M385425</guid>
      <dc:creator>Suriya Prakash</dc:creator>
      <dc:date>2010-11-22T06:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: User with Admin Rights</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715955#M385426</link>
      <description>Hi Suriya,&lt;BR /&gt;&lt;BR /&gt;  # useradd -u 0 -o  -g (group id) -d /home/user -m -s /bin/sh  username&lt;BR /&gt;&lt;BR /&gt;-u uid&lt;BR /&gt;-g gid&lt;BR /&gt;-d home directory&lt;BR /&gt;-m create the home directory for the new login&lt;BR /&gt;-s login shell&lt;BR /&gt;&lt;BR /&gt;set  the values for "(group id), /home/user , /bin/sh , username " etc depending on your need and environment.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;New to unix&lt;BR /&gt; Manpages for the commands are always useful, and you can develop a habit to read manpages which can solve many doubts.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards &lt;BR /&gt;Jayakrishnan G Naik</description>
      <pubDate>Mon, 22 Nov 2010 06:51:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715955#M385426</guid>
      <dc:creator>Jayakrishnan G Naik</dc:creator>
      <dc:date>2010-11-22T06:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: User with Admin Rights</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715956#M385427</link>
      <description>Thanks Jayakrishnan,&lt;BR /&gt;&lt;BR /&gt;If i create the user with uid 0.&lt;BR /&gt;&lt;BR /&gt;the root user will take which uid.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Suriya.</description>
      <pubDate>Mon, 22 Nov 2010 06:58:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715956#M385427</guid>
      <dc:creator>Suriya Prakash</dc:creator>
      <dc:date>2010-11-22T06:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: User with Admin Rights</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715957#M385428</link>
      <description>Hi Suriya,&lt;BR /&gt;&lt;BR /&gt;   root user always use uid 0 and the -o option allows you to use duplicate uid &lt;BR /&gt;for another user. It means you can create multiple users with same uid.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please read my first reply which clearly tells what more on the option &lt;BR /&gt;" -o"&lt;BR /&gt;&lt;BR /&gt;Please assign appropriate points to the replies.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards&lt;BR /&gt;Jayakrishnan G Naik</description>
      <pubDate>Mon, 22 Nov 2010 07:02:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715957#M385428</guid>
      <dc:creator>Jayakrishnan G Naik</dc:creator>
      <dc:date>2010-11-22T07:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: User with Admin Rights</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715958#M385429</link>
      <description>Thanks Jayakrishnan.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Nov 2010 07:05:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715958#M385429</guid>
      <dc:creator>Suriya Prakash</dc:creator>
      <dc:date>2010-11-22T07:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: User with Admin Rights</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715959#M385430</link>
      <description>Instead of two superusers, you may want to look into sudo or RBAC that allow other users to do a carefully tailored list of root tasks.</description>
      <pubDate>Mon, 22 Nov 2010 09:22:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715959#M385430</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-11-22T09:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: User with Admin Rights</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715960#M385431</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I try the two super user option, it was not working. its not able to process even the swlist command. Pls tell me to configure sudo or RBAC which one is better.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Suriya.</description>
      <pubDate>Mon, 22 Nov 2010 09:25:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715960#M385431</guid>
      <dc:creator>Suriya Prakash</dc:creator>
      <dc:date>2010-11-22T09:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: User with Admin Rights</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715961#M385432</link>
      <description>&amp;gt;I try the two super user option, it was not working.&lt;BR /&gt;&lt;BR /&gt;This can't fail if you set it up correctly.  If not trusted, vipw(1m) can do it.  What does id(1) show?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;tell me to configure sudo or RBAC which one is better.&lt;BR /&gt;&lt;BR /&gt;You need to download both, one form the porting center and one from HP.&lt;BR /&gt;You can search for more threads on the two:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=805956" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=805956&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1238372" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1238372&lt;/A&gt;</description>
      <pubDate>Mon, 22 Nov 2010 09:35:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715961#M385432</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-11-22T09:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: User with Admin Rights</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715962#M385433</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I create the user like this&lt;BR /&gt;&lt;BR /&gt;# useradd -u 0 -o -m -s /bin/sh admin&lt;BR /&gt;&lt;BR /&gt;but its not working, unable to list the softwares using swlist, its not process the cmviewcl command.&lt;BR /&gt;Is there is any mistake in the above command.&lt;BR /&gt;Pls inform me.&lt;BR /&gt;&lt;BR /&gt;check the below result of cat /etc/passwd for the user admin.&lt;BR /&gt;admin:UAXJtsEWLA5uw:0:20::/home/admin:/sbin/sh&lt;BR /&gt;&lt;BR /&gt;Unable to delete the user account, check the below result.&lt;BR /&gt;&lt;BR /&gt;# userdel -r admin&lt;BR /&gt;Login admin is currently in use&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Suriya.&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Nov 2010 09:56:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715962#M385433</guid>
      <dc:creator>Suriya Prakash</dc:creator>
      <dc:date>2010-11-22T09:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: User with Admin Rights</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715963#M385434</link>
      <description>As specified, your command will add a user with uid 0, but no default group and no password.  At the very least, you need to specify the group to be sys and supply a password.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 22 Nov 2010 11:25:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715963#M385434</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2010-11-22T11:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: User with Admin Rights</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715964#M385435</link>
      <description>Suriya,&lt;BR /&gt;&lt;BR /&gt;If the admin account is already created, then you cannot use useradd and besides the command in your query says /bin/sh rather than /sbin/sh&lt;BR /&gt;.&lt;BR /&gt;&lt;BR /&gt;Anyways, answer to your question "login currently in use"&lt;BR /&gt;&lt;BR /&gt;This means you have not exited from the session gracefully and the session is still running. Execute the following commands to delete the user.&lt;BR /&gt;&lt;BR /&gt;ps -ef | grep -i admin&lt;BR /&gt;kill -9 &lt;PID&gt;&lt;BR /&gt;and then userdel...&lt;BR /&gt;&lt;BR /&gt;This will remove the account!!. Do assign points if it is helpful.&lt;/PID&gt;</description>
      <pubDate>Mon, 22 Nov 2010 11:40:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715964#M385435</guid>
      <dc:creator>Ismail Azad</dc:creator>
      <dc:date>2010-11-22T11:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: User with Admin Rights</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715965#M385436</link>
      <description>&amp;gt;unable to list the software using swlist,&lt;BR /&gt;&lt;BR /&gt;What does "id" show?  Did you try logging in again?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;# userdel -r admin&lt;BR /&gt;&amp;gt;Login admin is currently in use&lt;BR /&gt;&lt;BR /&gt;As admin logged on?  If not, that's why you don't add duplicate users.  You'll need to use vipw(1m) to remove.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Pete: As specified, your command will add a user with uid 0, but no default group and no password.&lt;BR /&gt;&lt;BR /&gt;The passwd entry seems to have those.</description>
      <pubDate>Mon, 22 Nov 2010 11:42:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715965#M385436</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-11-22T11:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: User with Admin Rights</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715966#M385437</link>
      <description>Dennis,&lt;BR /&gt;&lt;BR /&gt;You're right.  I didn't see that.  However, the group is 20 and I think it ought to be 3 and, like you, I would really like to see the output of the "id" command.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 22 Nov 2010 12:12:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715966#M385437</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2010-11-22T12:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: User with Admin Rights</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715967#M385438</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;How to specify the group and passwd.&lt;BR /&gt;which group should i specify.&lt;BR /&gt;pls reply with example.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Suriya.</description>
      <pubDate>Mon, 22 Nov 2010 12:29:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715967#M385438</guid>
      <dc:creator>Suriya Prakash</dc:creator>
      <dc:date>2010-11-22T12:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: User with Admin Rights</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715968#M385439</link>
      <description>Hi suriya,&lt;BR /&gt;&lt;BR /&gt;      Is your system a trusted system?&lt;BR /&gt;you can check this by searching a directory named /tcb in root. If there is a directory like that it means system is trusted.&lt;BR /&gt;&lt;BR /&gt;As mentioned by Handly you need to use vipw to modify passwd file if the system is trusted.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;# userdel -r admin&lt;BR /&gt;&amp;gt;Login admin is currently in use&lt;BR /&gt;Have you logged in with user "admin"? either by su or by normal login?if you are logged in you cannot remove the logged in user.&lt;BR /&gt;&lt;BR /&gt;If the system is not trusted you try to  modify the user group details with usermod. Use the same group as root. Set proper password. and then try logging in. It worked for me when ever used.&lt;BR /&gt;&lt;BR /&gt;usermod -g 0 admin&lt;BR /&gt;-g group&lt;BR /&gt;An existing group's integer ID or character-string name. It redefines the user's primary group membership. This option is ignored if the login is administered by the Network Information Service (NIS).  &lt;BR /&gt;&lt;BR /&gt;Regards &lt;BR /&gt;Jayakrishnan G Naik&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Nov 2010 12:33:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715968#M385439</guid>
      <dc:creator>Jayakrishnan G Naik</dc:creator>
      <dc:date>2010-11-22T12:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: User with Admin Rights</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715969#M385440</link>
      <description>Hi Suriya&lt;BR /&gt;     The following command helps to change the password and you can set a new passwd with this command&lt;BR /&gt;&lt;BR /&gt;#passwd admin&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Jayakrishnan G Naik</description>
      <pubDate>Mon, 22 Nov 2010 12:36:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715969#M385440</guid>
      <dc:creator>Jayakrishnan G Naik</dc:creator>
      <dc:date>2010-11-22T12:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: User with Admin Rights</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715970#M385441</link>
      <description>&amp;gt;Jayakrishnan: As mentioned by Handly you need to use vipw to modify passwd file if the system is trusted.&lt;BR /&gt;&lt;BR /&gt;Actually I was saying the opposite.  If it isn't trusted, you can use vipw to just copy entries and passwords.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;if you are logged in you cannot remove the logged in user.&lt;BR /&gt;&lt;BR /&gt;For 11.31 there is -F and vipw(1m) doesn't care.</description>
      <pubDate>Mon, 22 Nov 2010 12:43:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715970#M385441</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-11-22T12:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: User with Admin Rights</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715971#M385442</link>
      <description>Ok Handly, &lt;BR /&gt;&lt;BR /&gt;  Thanks for the correction &amp;amp; Sorry for the confusion. &lt;BR /&gt;&lt;BR /&gt;Suriya, &lt;BR /&gt;&lt;BR /&gt;  If the system is not trusted (/tcb dont exist)then go ahead with changing the group to 0 and setting a passwd. Do this with your original root login.&lt;BR /&gt;&lt;BR /&gt;usermod -g 0 admin&lt;BR /&gt;passwd admin&lt;BR /&gt;&lt;BR /&gt;connect to the system using another session and try logging in with admin. see if there are any errors. see whether you have all privileges.&lt;BR /&gt;&lt;BR /&gt;Hope you are using duplicate root as there is no other alternative. This is actually a &lt;BR /&gt;security flaw.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Jayakrishnan G Naik&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Nov 2010 12:57:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-with-admin-rights/m-p/4715971#M385442</guid>
      <dc:creator>Jayakrishnan G Naik</dc:creator>
      <dc:date>2010-11-22T12:57:39Z</dc:date>
    </item>
  </channel>
</rss>

