<?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: Shell script qustion in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-qustion/m-p/2907242#M106325</link>
    <description>Pure shell idea:&lt;BR /&gt;&lt;BR /&gt;while IFS=: read user pw uid gid text home shell&lt;BR /&gt;do&lt;BR /&gt;[[ $user = wsat1221 ]] &amp;amp;&amp;amp; user=wsat1221\$&lt;BR /&gt;echo "$user\$:$pw:$uid:$gid:$text:$home:$shell"&lt;BR /&gt;done</description>
    <pubDate>Tue, 18 Feb 2003 17:18:41 GMT</pubDate>
    <dc:creator>Dietmar Konermann</dc:creator>
    <dc:date>2003-02-18T17:18:41Z</dc:date>
    <item>
      <title>Shell script qustion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-qustion/m-p/2907240#M106323</link>
      <description>I know "this is not good idea", but I still have to do this. &lt;BR /&gt;I need to add the workstation in the /etc/passwd (using the useradd command) and then I have to edit the same user.&lt;BR /&gt;This is what I'm talking about:&lt;BR /&gt;after adding the new user (workstation) I have this entry in the /etc/passwd&lt;BR /&gt;&lt;BR /&gt;wsat1221:*:284:102:,,,,:/baan/bse/home/wgr:/sbin/sh&lt;BR /&gt;&lt;BR /&gt;and I need to change in to these&lt;BR /&gt;wsat1221$:*:284:102:,,,,:/dev/null:/bin/false&lt;BR /&gt;&lt;BR /&gt;Note $ in the end of the user name as well as home directory and the shell&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;&lt;BR /&gt;Miro&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Feb 2003 17:10:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-qustion/m-p/2907240#M106323</guid>
      <dc:creator>mvr</dc:creator>
      <dc:date>2003-02-18T17:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script qustion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-qustion/m-p/2907241#M106324</link>
      <description>This is what I came up so far with .... (attached)</description>
      <pubDate>Tue, 18 Feb 2003 17:12:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-qustion/m-p/2907241#M106324</guid>
      <dc:creator>mvr</dc:creator>
      <dc:date>2003-02-18T17:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script qustion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-qustion/m-p/2907242#M106325</link>
      <description>Pure shell idea:&lt;BR /&gt;&lt;BR /&gt;while IFS=: read user pw uid gid text home shell&lt;BR /&gt;do&lt;BR /&gt;[[ $user = wsat1221 ]] &amp;amp;&amp;amp; user=wsat1221\$&lt;BR /&gt;echo "$user\$:$pw:$uid:$gid:$text:$home:$shell"&lt;BR /&gt;done</description>
      <pubDate>Tue, 18 Feb 2003 17:18:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-qustion/m-p/2907242#M106325</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2003-02-18T17:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script qustion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-qustion/m-p/2907243#M106326</link>
      <description>Oops... forgor the home dir and the shell.&lt;BR /&gt;&lt;BR /&gt;while IFS=: read user pw uid gid text home shell&lt;BR /&gt;do&lt;BR /&gt;[[ $user = wsat1221 ]] &amp;amp;&amp;amp; user=wsat1221\$&lt;BR /&gt;echo "$user\$:$pw:$uid:$gid:$text:/dev/null:/bin/false"&lt;BR /&gt;done</description>
      <pubDate>Tue, 18 Feb 2003 17:21:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-qustion/m-p/2907243#M106326</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2003-02-18T17:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script qustion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-qustion/m-p/2907244#M106327</link>
      <description>Wasn't my day, today. Will go home now. :( Sorry.&lt;BR /&gt;&lt;BR /&gt;while IFS=: read user pw uid gid text home shell&lt;BR /&gt;do&lt;BR /&gt;if [[ $user = wsat1221 ]]; then&lt;BR /&gt;user=wsat1221\$&lt;BR /&gt;home=/dev/null&lt;BR /&gt;shell=/bin/false&lt;BR /&gt;fi&lt;BR /&gt;echo "$user\$:$pw:$uid:$gid:$text:$home:$shell"&lt;BR /&gt;done</description>
      <pubDate>Tue, 18 Feb 2003 17:25:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-qustion/m-p/2907244#M106327</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2003-02-18T17:25:54Z</dc:date>
    </item>
  </channel>
</rss>

