<?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: problems with vipw in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-vipw/m-p/5017877#M427870</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Modifying the root shell using vipw is causing problems.&lt;BR /&gt;Try the following:&lt;BR /&gt;&lt;BR /&gt;1. /sbin/sh&lt;BR /&gt;Result: Can vi old /etc/passwd file and quit out.&lt;BR /&gt;&lt;BR /&gt;2. /sbin/ksh&lt;BR /&gt;Result: Cannot vi new /etc/passwd file and quit out&lt;BR /&gt;&lt;BR /&gt;3. vi /etc/passwd and change the root shell to /sbin/sh&lt;BR /&gt;&lt;BR /&gt;4. save file&lt;BR /&gt;&lt;BR /&gt;5. vipw and quit out&lt;BR /&gt;Result: This was successful.&lt;BR /&gt;&lt;BR /&gt;For further information, see the vipw(1m) command man page&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Prashanth</description>
    <pubDate>Fri, 08 Dec 2006 22:24:09 GMT</pubDate>
    <dc:creator>Prashanth.D.S</dc:creator>
    <dc:date>2006-12-08T22:24:09Z</dc:date>
    <item>
      <title>problems with vipw</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-vipw/m-p/5017872#M427865</link>
      <description>hi there,&lt;BR /&gt;when i try to modify my /etc/passwd file using vipw i keep getting following message:&lt;BR /&gt;&lt;BR /&gt;vipw: you mangled the temp file, /etc/passwd unchanged&lt;BR /&gt;&lt;BR /&gt;when i try to modify root's start-up program (/data/prog/rootmenu) using sam i receive this:&lt;BR /&gt;&lt;BR /&gt;Failed to modify user "root".&lt;BR /&gt;An invalid argument was supplied to an option in the command "usr/sam/lbin/usermod.sam".&lt;BR /&gt;&lt;BR /&gt;hope someone of you experts out there can help me solve this problems. it's hp-ux 10.20 running on an hp9000 model 817s.</description>
      <pubDate>Fri, 08 Dec 2006 17:21:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-vipw/m-p/5017872#M427865</guid>
      <dc:creator>hpux-fan</dc:creator>
      <dc:date>2006-12-08T17:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: problems with vipw</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-vipw/m-p/5017873#M427866</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Unless you want to create an un-startable system, don't modify the 'root' account's initial program in '/etc/passwd'.  You *must* use '/sbin/sh'.  This is the statically linked Posix shell available when nothing but the root filesystem is mounted.&lt;BR /&gt;&lt;BR /&gt;The 'vipw' utility is being helpful and is alerting you to that fact that you are attempting to create chaos.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 08 Dec 2006 17:26:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-vipw/m-p/5017873#M427866</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-12-08T17:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: problems with vipw</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-vipw/m-p/5017874#M427867</link>
      <description>hi JRF&lt;BR /&gt;okay, i agree it's not clever to abuse root account for this. i've tried to select another start-up file for another (low-priority) user, but it won't work. i just want to achive following: when a user logs on s/he gets a menu to see instead of a shell. i don't know what's chaos with this? do you have another (more elegant) idea how to realize this?&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;hpux-fan</description>
      <pubDate>Fri, 08 Dec 2006 18:09:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-vipw/m-p/5017874#M427867</guid>
      <dc:creator>hpux-fan</dc:creator>
      <dc:date>2006-12-08T18:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: problems with vipw</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-vipw/m-p/5017875#M427868</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;OK, use a non-root account and in lieu of the shell program in '/etc/passwd' [the last field], substitute the absolute path and name of your menu script.  You can use 'vipw' to make this change.  When you exit your menu, your user will be logged-off.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 08 Dec 2006 18:18:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-vipw/m-p/5017875#M427868</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-12-08T18:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: problems with vipw</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-vipw/m-p/5017876#M427869</link>
      <description>i just followed your advice and then i was confrontated with a message saying:&lt;BR /&gt;&lt;BR /&gt;lckpwdf: Permission denied&lt;BR /&gt;vipw: Cannot obtain lock for /etc/.pwd.lock&lt;BR /&gt;&lt;BR /&gt;finally, Alex' advice helped me through this.&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=84458" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=84458&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Dec 2006 19:41:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-vipw/m-p/5017876#M427869</guid>
      <dc:creator>hpux-fan</dc:creator>
      <dc:date>2006-12-08T19:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: problems with vipw</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-vipw/m-p/5017877#M427870</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Modifying the root shell using vipw is causing problems.&lt;BR /&gt;Try the following:&lt;BR /&gt;&lt;BR /&gt;1. /sbin/sh&lt;BR /&gt;Result: Can vi old /etc/passwd file and quit out.&lt;BR /&gt;&lt;BR /&gt;2. /sbin/ksh&lt;BR /&gt;Result: Cannot vi new /etc/passwd file and quit out&lt;BR /&gt;&lt;BR /&gt;3. vi /etc/passwd and change the root shell to /sbin/sh&lt;BR /&gt;&lt;BR /&gt;4. save file&lt;BR /&gt;&lt;BR /&gt;5. vipw and quit out&lt;BR /&gt;Result: This was successful.&lt;BR /&gt;&lt;BR /&gt;For further information, see the vipw(1m) command man page&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Prashanth</description>
      <pubDate>Fri, 08 Dec 2006 22:24:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-vipw/m-p/5017877#M427870</guid>
      <dc:creator>Prashanth.D.S</dc:creator>
      <dc:date>2006-12-08T22:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: problems with vipw</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-vipw/m-p/5017878#M427871</link>
      <description>now it works!</description>
      <pubDate>Sat, 09 Dec 2006 20:36:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-vipw/m-p/5017878#M427871</guid>
      <dc:creator>hpux-fan</dc:creator>
      <dc:date>2006-12-09T20:36:28Z</dc:date>
    </item>
  </channel>
</rss>

