<?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: gid incorrect as user in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/gid-incorrect-as-user/m-p/3073791#M141273</link>
    <description>run these utils&lt;BR /&gt;&lt;BR /&gt;pwck&lt;BR /&gt;&lt;BR /&gt;grpck&lt;BR /&gt;&lt;BR /&gt;They will help you validate your errors.&lt;BR /&gt;&lt;BR /&gt;Might I suggest regular fbackups and ignite backups.&lt;BR /&gt;&lt;BR /&gt;Attaching the ignite script.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Thu, 18 Sep 2003 20:20:08 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2003-09-18T20:20:08Z</dc:date>
    <item>
      <title>gid incorrect as user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gid-incorrect-as-user/m-p/3073788#M141270</link>
      <description>I did a terrible thing last week and overwrote the passwd file. &lt;BR /&gt;I struggled to get it restored and finally ended up doing a lot of editing and praying.&lt;BR /&gt;&lt;BR /&gt;Non of the users have complained .... yet, but one of the dbas says that a user they use does not have the correct gid. But if I do an id on the user as root it comes up correct.&lt;BR /&gt;&lt;BR /&gt;user$ id&lt;BR /&gt;uid=5017(user) gid=400(usergroup) groups=1000(dba),422(othergrp),192(othergrp2)&lt;BR /&gt;&lt;BR /&gt;root# id user&lt;BR /&gt;uid=5017(user) gid=1000(dba) groups=400(usergroup),422(othergrp),192(othergrp2)&lt;BR /&gt;&lt;BR /&gt;The passwd file entry states that 1000 (dba) is the user's group.&lt;BR /&gt;&lt;BR /&gt;I've done a pwck on the passwd file and all it seems to be fine.&lt;BR /&gt;I've done a grpck on the group file and it seems fine too.&lt;BR /&gt;And yes, logingroup is linked to group.&lt;BR /&gt;&lt;BR /&gt;What have I done?&lt;BR /&gt;What do I do?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Sep 2003 03:54:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gid-incorrect-as-user/m-p/3073788#M141270</guid>
      <dc:creator>Ronelle van Niekerk</dc:creator>
      <dc:date>2003-09-18T03:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: gid incorrect as user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gid-incorrect-as-user/m-p/3073789#M141271</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;  Can u post&lt;BR /&gt;&lt;BR /&gt;  # grep user /etc/passwd /etc/groups&lt;BR /&gt;&lt;BR /&gt;  I know this might sound stupid but check for newgrp command in the user profile</description>
      <pubDate>Thu, 18 Sep 2003 04:28:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gid-incorrect-as-user/m-p/3073789#M141271</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2003-09-18T04:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: gid incorrect as user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gid-incorrect-as-user/m-p/3073790#M141272</link>
      <description># grep user /etc/passwd /etc/group&lt;BR /&gt;/etc/passwd:user::5017:1000:user:/home/dirs/user:/bin/sh&lt;BR /&gt;/etc/group:usergroup::400:user&lt;BR /&gt;/etc/group:dba::1000:oracle,user&lt;BR /&gt;/etc/group:othergrp::422:user&lt;BR /&gt;/etc/group:othergrp2::192:user&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;No newgrp command in the user profile.</description>
      <pubDate>Thu, 18 Sep 2003 20:17:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gid-incorrect-as-user/m-p/3073790#M141272</guid>
      <dc:creator>Ronelle van Niekerk</dc:creator>
      <dc:date>2003-09-18T20:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: gid incorrect as user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gid-incorrect-as-user/m-p/3073791#M141273</link>
      <description>run these utils&lt;BR /&gt;&lt;BR /&gt;pwck&lt;BR /&gt;&lt;BR /&gt;grpck&lt;BR /&gt;&lt;BR /&gt;They will help you validate your errors.&lt;BR /&gt;&lt;BR /&gt;Might I suggest regular fbackups and ignite backups.&lt;BR /&gt;&lt;BR /&gt;Attaching the ignite script.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 18 Sep 2003 20:20:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gid-incorrect-as-user/m-p/3073791#M141273</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-09-18T20:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: gid incorrect as user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gid-incorrect-as-user/m-p/3073792#M141274</link>
      <description>Check the user's profile for 'newgrp' entries.&lt;BR /&gt;The newgrp command changes your group ID without changing your user ID and replaces your current shell with a new one.</description>
      <pubDate>Thu, 18 Sep 2003 20:39:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gid-incorrect-as-user/m-p/3073792#M141274</guid>
      <dc:creator>Vitek Pepas</dc:creator>
      <dc:date>2003-09-18T20:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: gid incorrect as user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gid-incorrect-as-user/m-p/3073793#M141275</link>
      <description>As mentioned in original question, I did run the pwck and grpck commands - they both seem fine.&lt;BR /&gt;&lt;BR /&gt;As mentioned in my previous reply, there is no newgrp command in the user's profile.&lt;BR /&gt;&lt;BR /&gt;We do ignite backups once a month, should I try restore the passwd file from there rather than from the OBII backups?</description>
      <pubDate>Thu, 18 Sep 2003 20:46:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gid-incorrect-as-user/m-p/3073793#M141275</guid>
      <dc:creator>Ronelle van Niekerk</dc:creator>
      <dc:date>2003-09-18T20:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: gid incorrect as user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gid-incorrect-as-user/m-p/3073794#M141276</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try to create a new user, i.e "user2" with the same groups that "user". What happens? If the new user2 has the correct gid, check again "passwd" and "group" files and look for a clue.&lt;BR /&gt;Try also to remove "user" from the "groups" file, in the line "/etc/group:dba::1000:oracle,user"&lt;BR /&gt;Only an idea.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;Kind regards,&lt;BR /&gt;Zigor</description>
      <pubDate>Fri, 19 Sep 2003 03:24:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gid-incorrect-as-user/m-p/3073794#M141276</guid>
      <dc:creator>Zigor Buruaga</dc:creator>
      <dc:date>2003-09-19T03:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: gid incorrect as user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gid-incorrect-as-user/m-p/3073795#M141277</link>
      <description>I think I solved the problem.&lt;BR /&gt;&lt;BR /&gt;The users are added automatically and a passwd file is pushed out to my server when a new user is added. We're using something called KEON.&lt;BR /&gt;&lt;BR /&gt;So I don't seem to have any control over my passwd file - thankfully I don't have to say the same about the group file.&lt;BR /&gt;&lt;BR /&gt;I just got the guys who administer the KEON system to push a new passwd file to my server and everything seems to be OK.&lt;BR /&gt;&lt;BR /&gt;I'm still not sure how it works because root seems to read the passwd file in /etc (as you can see from the id user output) but when you su into the user it doesn't read the right data.&lt;BR /&gt;I'll have to look into it some more</description>
      <pubDate>Fri, 19 Sep 2003 03:38:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gid-incorrect-as-user/m-p/3073795#M141277</guid>
      <dc:creator>Ronelle van Niekerk</dc:creator>
      <dc:date>2003-09-19T03:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: gid incorrect as user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gid-incorrect-as-user/m-p/3073796#M141278</link>
      <description>Yes,the best way would be not to guess on the password options.&lt;BR /&gt;&lt;BR /&gt;Backup your current passwd file&lt;BR /&gt;#cp /etc/passwd /etc/passwd.&lt;DATE&gt;&lt;BR /&gt;Just insert your ignite tape&lt;BR /&gt;#cd /tmp&lt;BR /&gt;#mt -f /dev/rmt/0mn rewind&lt;BR /&gt;#mt -f /dev/rmt/0mn fsf 1&lt;BR /&gt;#tar tvf /dev/rmt/0m passwd&lt;BR /&gt;#tar xvf /dev/rmt/0 passwd&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"Make sure you have atleast one session with root logged in" for&lt;BR /&gt;Any password problems with the old file.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DATE&gt;</description>
      <pubDate>Fri, 19 Sep 2003 03:48:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gid-incorrect-as-user/m-p/3073796#M141278</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-09-19T03:48:25Z</dc:date>
    </item>
  </channel>
</rss>

