<?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: Problem adding user via SAM in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-adding-user-via-sam/m-p/3147623#M156865</link>
    <description>Finally called HP and they advise me to install Patch PHCO_28007.  After installing this patch, the problem went away.  Thank all for the responses.</description>
    <pubDate>Thu, 18 Dec 2003 15:14:21 GMT</pubDate>
    <dc:creator>GARY L. JACKSON</dc:creator>
    <dc:date>2003-12-18T15:14:21Z</dc:date>
    <item>
      <title>Problem adding user via SAM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-adding-user-via-sam/m-p/3147610#M156852</link>
      <description>Failed to add the user "username" to the group "groupname".  Could not modify the /etc/group file.  The user was added to the system.&lt;BR /&gt;&lt;BR /&gt;The user is added to the system and is placed in the correct group, but I don't know why I'm getting this error message.&lt;BR /&gt;&lt;BR /&gt;Server=rp7410&lt;BR /&gt;OS=HP-UX 11.11&lt;BR /&gt;&lt;BR /&gt;Thanks for the help.&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Dec 2003 16:11:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-adding-user-via-sam/m-p/3147610#M156852</guid>
      <dc:creator>GARY L. JACKSON</dc:creator>
      <dc:date>2003-12-17T16:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem adding user via SAM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-adding-user-via-sam/m-p/3147611#M156853</link>
      <description>is /etc/group there? What are it's permissions? and, when do you get the error?&lt;BR /&gt;&lt;BR /&gt;try to cp /etc/group to /etc/group.old, then modify /etc/group</description>
      <pubDate>Wed, 17 Dec 2003 16:16:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-adding-user-via-sam/m-p/3147611#M156853</guid>
      <dc:creator>doug mielke</dc:creator>
      <dc:date>2003-12-17T16:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem adding user via SAM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-adding-user-via-sam/m-p/3147612#M156854</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If the group already exsisted there is no need to alter the /etc/group file. If so you now have an number in the homedir in stead of a name. You can try using vi to edit the group file. &lt;BR /&gt;&lt;BR /&gt;Check the SAM log for more errors, you can use lsof ( if installed) to see witch process has the group file open.&lt;BR /&gt;&lt;BR /&gt;Gideon</description>
      <pubDate>Wed, 17 Dec 2003 16:17:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-adding-user-via-sam/m-p/3147612#M156854</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2003-12-17T16:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem adding user via SAM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-adding-user-via-sam/m-p/3147613#M156855</link>
      <description>The permission for /etc/group is 444.  I get the message after I create a new user and just after setting the initial password.</description>
      <pubDate>Wed, 17 Dec 2003 16:21:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-adding-user-via-sam/m-p/3147613#M156855</guid>
      <dc:creator>GARY L. JACKSON</dc:creator>
      <dc:date>2003-12-17T16:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem adding user via SAM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-adding-user-via-sam/m-p/3147614#M156856</link>
      <description>I would check the fuser to see if something has the file open... OR check for any control characters in the file...&lt;BR /&gt;&lt;BR /&gt;Also, I have a script that I use to add users to all my 11 boxes or a combo thereof... I will offer it freely for your modification...&lt;BR /&gt;&lt;BR /&gt;I like to keep all my boxes in sync with the passwd files... &lt;BR /&gt;&lt;BR /&gt;via remsh...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;useradd -g $2 -d /home/${2}/${1} -s /usr/bin/ksh -m -c "${3}" $1&lt;BR /&gt;remsh HOSTNAME2 "/usr/sbin/useradd -g $2 -d /home/${2}/${1} -s /usr/bin/ksh -m -c \"${3}\" $1"&lt;BR /&gt;remsh HOSTNAME3 "/usr/sbin/useradd -g $2 -d /home/${2}/${1} -s /usr/bin/ksh -m -c \"${3}\" $1"&lt;BR /&gt;remsh HOSTNAME4 "/usr/sbin/useradd -g $2 -d /home/${2}/${1} -s /usr/bin/ksh -m -c \"${3}\" $1"&lt;BR /&gt;remsh hostNAME1 "/usr/sbin/useradd -g $2 -d /home/${2}/${1} -s /usr/bin/ksh -m -c \"${3}\" $1"&lt;BR /&gt;remsh hostNAME2 "/usr/sbin/useradd -g $2 -d /home/${2}/${1} -s /usr/bin/ksh -m -c \"${3}\" $1"&lt;BR /&gt;remsh hostNAME3 "/usr/sbin/useradd -g $2 -d /home/${2}/${1} -s /usr/bin/ksh -m -c \"${3}\" $1"&lt;BR /&gt;remsh hostNAME4 "/usr/sbin/useradd -g $2 -d /home/${2}/${1} -s /usr/bin/ksh -m -c \"${3}\" $1"&lt;BR /&gt;remsh hostNAME5 "/usr/sbin/useradd -g $2 -d /home/${2}/${1} -s /usr/bin/ksh -m -c \"${3}\" $1"&lt;BR /&gt;remsh hostNAME6 "/usr/sbin/useradd -g $2 -d /home/${2}/${1} -s /usr/bin/ksh -m -c \"${3}\" $1"&lt;BR /&gt;remsh HOSTname1 "/usr/sbin/useradd -g $2 -d /home/${2}/${1} -s /usr/bin/ksh -m -c \"${3}\" $1"&lt;BR /&gt;for name in hostNAME6 hostNAME5 hostNAME4 hostNAME3 hostNAME2 hostNAME1 HOSTNAME2 HOSTNAME3 HOSTNAME4 HOSTname1&lt;BR /&gt;do&lt;BR /&gt;echo $name&lt;BR /&gt;remsh $name tail -1 /etc/passwd&lt;BR /&gt;done&lt;BR /&gt;uname -n&lt;BR /&gt;tail -1 /etc/passwd&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;echo "Which system do you want a login on?"&lt;BR /&gt;echo "1) hostNAME6 "&lt;BR /&gt;echo "2) hostNAME5 "&lt;BR /&gt;echo "3) hostNAME4 "&lt;BR /&gt;echo "4) hostNAME3 "&lt;BR /&gt;echo "5) hostNAME2 "&lt;BR /&gt;echo "6) hostNAME1 "&lt;BR /&gt;echo "7) HOSTNAME4 "&lt;BR /&gt;echo "8) HOSTNAME3 "&lt;BR /&gt;echo "9) HOSTNAME2 "&lt;BR /&gt;echo "10) HOSTNAME1 "&lt;BR /&gt;echo "11) HOSTname1 "&lt;BR /&gt;echo "12) exit"&lt;BR /&gt;read system_id&lt;BR /&gt;case $system_id in&lt;BR /&gt;  1) remsh hostNAME6 "sed 's/${1}:\*/${1}:/' /etc/passwd &amp;gt; /tmp/passwd; mv /tmp/passwd /etc/passwd;chmod 444 /etc/passwd;";;&lt;BR /&gt;  2) remsh hostNAME5 "sed 's/${1}:\*/${1}:/' /etc/passwd &amp;gt; /tmp/passwd; mv /tmp/passwd /etc/passwd;chmod 444 /etc/passwd;";;&lt;BR /&gt;  3) remsh hostNAME4 "sed 's/${1}:\*/${1}:/' /etc/passwd &amp;gt; /tmp/passwd; mv /tmp/passwd /etc/passwd;chmod 444 /etc/passwd;";;&lt;BR /&gt;  4) remsh hostNAME3 "sed 's/${1}:\*/${1}:/' /etc/passwd &amp;gt; /tmp/passwd; mv /tmp/passwd /etc/passwd;chmod 444 /etc/passwd;";;&lt;BR /&gt;  5) remsh hostNAME2 "sed 's/${1}:\*/${1}:/' /etc/passwd &amp;gt; /tmp/passwd; mv /tmp/passwd /etc/passwd; chmod 444 /etc/passwd;";;&lt;BR /&gt;  6) remsh hostNAME1 "sed 's/${1}:\*/${1}:/' /etc/passwd &amp;gt; /tmp/passwd; mv /tmp/passwd /etc/passwd; chmod 444 /etc/passwd;";;&lt;BR /&gt;  7) remsh HOSTNAME4 "sed 's/${1}:\*/${1}:/' /etc/passwd &amp;gt; /tmp/passwd; mv /tmp/passwd /etc/passwd; chmod 444 /etc/passwd;";;&lt;BR /&gt;  8) remsh HOSTNAME3 "sed 's/${1}:\*/${1}:/' /etc/passwd &amp;gt; /tmp/passwd; mv /tmp/passwd /etc/passwd; chmod 444 /etc/passwd;";;&lt;BR /&gt;  9) remsh HOSTNAME2 "sed 's/${1}:\*/${1}:/' /etc/passwd &amp;gt; /tmp/passwd; mv /tmp/passwd /etc/passwd; chmod 444 /etc/passwd;";;&lt;BR /&gt;  10) remsh HOSTNAME1 "sed 's/${1}:\*/${1}:/' /etc/passwd &amp;gt; /tmp/passwd; mv /tmp/passwd /etc/passwd; chmod 444 /etc/passwd;";;&lt;BR /&gt;  11) remsh HOSTname1 "sed 's/${1}:\*/${1}:/' /etc/passwd &amp;gt; /tmp/passwd; mv /tmp/passwd /etc/passwd; chmod 444 /etc/passwd;";;&lt;BR /&gt;  12) exit 1 &lt;BR /&gt;esac&lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Dec 2003 16:33:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-adding-user-via-sam/m-p/3147614#M156856</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2003-12-17T16:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem adding user via SAM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-adding-user-via-sam/m-p/3147615#M156857</link>
      <description>Hi Gary,&lt;BR /&gt;&lt;BR /&gt;If your /etc/group has permission 444, then&lt;BR /&gt;owner,group and other has read permission only, not allow to modify that file. Changed the permission to 744.</description>
      <pubDate>Wed, 17 Dec 2003 16:58:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-adding-user-via-sam/m-p/3147615#M156857</guid>
      <dc:creator>Kevin Nikiforuk</dc:creator>
      <dc:date>2003-12-17T16:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem adding user via SAM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-adding-user-via-sam/m-p/3147616#M156858</link>
      <description>One thing I've notice is that I only get this message when I try to add a new user to one particular group.  When I create a new user and add that person to a different group, everything works fine.  Is there a maximum number of users allowed in a group?  Thanks.</description>
      <pubDate>Wed, 17 Dec 2003 17:01:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-adding-user-via-sam/m-p/3147616#M156858</guid>
      <dc:creator>GARY L. JACKSON</dc:creator>
      <dc:date>2003-12-17T17:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem adding user via SAM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-adding-user-via-sam/m-p/3147617#M156859</link>
      <description>I checked 2 of my newly built 11.0 systems, and they have 444 as perms for both /etc/passwd and /etc/group.</description>
      <pubDate>Wed, 17 Dec 2003 17:04:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-adding-user-via-sam/m-p/3147617#M156859</guid>
      <dc:creator>doug mielke</dc:creator>
      <dc:date>2003-12-17T17:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem adding user via SAM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-adding-user-via-sam/m-p/3147618#M156860</link>
      <description>/etc/group, 444 , bin bin&lt;BR /&gt;/etc/passwd 444  root  sys</description>
      <pubDate>Wed, 17 Dec 2003 17:06:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-adding-user-via-sam/m-p/3147618#M156860</guid>
      <dc:creator>doug mielke</dc:creator>
      <dc:date>2003-12-17T17:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem adding user via SAM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-adding-user-via-sam/m-p/3147619#M156861</link>
      <description>Weird one.  Possibly your /etc/group file is corrupt (maybe a hidden character or something).  copy the file to a backup (`cp -p /etc/group /etc/group.old`), make sure your logged in as root, then run the grpck command.  Maybe it will find an inconsistency that would explain your error</description>
      <pubDate>Wed, 17 Dec 2003 21:50:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-adding-user-via-sam/m-p/3147619#M156861</guid>
      <dc:creator>Ian Kidd_1</dc:creator>
      <dc:date>2003-12-17T21:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem adding user via SAM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-adding-user-via-sam/m-p/3147620#M156862</link>
      <description>I am assuming that the group already exists, correct? If it does not, create the group first. If it does exist, run grpck as well as pwck. This will check for inconsistencies between the group and password files. One other option, if you are not using that group for any users, try deleting it (groupdel) and recreating it. Maybe there is a conflict with another group id.&lt;BR /&gt;&lt;BR /&gt;-Hazem</description>
      <pubDate>Wed, 17 Dec 2003 22:02:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-adding-user-via-sam/m-p/3147620#M156862</guid>
      <dc:creator>Hazem Mahmoud_3</dc:creator>
      <dc:date>2003-12-17T22:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem adding user via SAM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-adding-user-via-sam/m-p/3147621#M156863</link>
      <description>The best thing would be to run&lt;BR /&gt;&lt;BR /&gt;#pwck&lt;BR /&gt;#grpck&lt;BR /&gt;&lt;BR /&gt;to check the group and password files.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Dec 2003 22:15:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-adding-user-via-sam/m-p/3147621#M156863</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2003-12-17T22:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem adding user via SAM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-adding-user-via-sam/m-p/3147622#M156864</link>
      <description>grpck and pwck are the first steps. Then look at the entries for the problem group name in /etc/group. If it is a massively long line, use vi to edit the file and break up the line into several lines, each with the same group ID. It is fine to have multiple lines with the same group ID. However, if this particular group is the same groupthat appears in the passwd file, it is no longer needed, only additional group memberships need top appear in /etc/group.</description>
      <pubDate>Wed, 17 Dec 2003 22:26:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-adding-user-via-sam/m-p/3147622#M156864</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-12-17T22:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem adding user via SAM</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-adding-user-via-sam/m-p/3147623#M156865</link>
      <description>Finally called HP and they advise me to install Patch PHCO_28007.  After installing this patch, the problem went away.  Thank all for the responses.</description>
      <pubDate>Thu, 18 Dec 2003 15:14:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-adding-user-via-sam/m-p/3147623#M156865</guid>
      <dc:creator>GARY L. JACKSON</dc:creator>
      <dc:date>2003-12-18T15:14:21Z</dc:date>
    </item>
  </channel>
</rss>

