<?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: su - user .........No Shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/su-user-no-shell/m-p/3867082#M277745</link>
    <description>Hi spex,&lt;BR /&gt;Actually i am able to access the shell when using telnet ..but when i try to login through ssh i am not able 2 login....the window just opens and gets killed immediately...............</description>
    <pubDate>Fri, 22 Sep 2006 05:57:03 GMT</pubDate>
    <dc:creator>dattu_1</dc:creator>
    <dc:date>2006-09-22T05:57:03Z</dc:date>
    <item>
      <title>su - user .........No Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-user-no-shell/m-p/3867072#M277735</link>
      <description>Hi guys,&lt;BR /&gt;i am getting no shell message when i am doing su - user .The users default shell is called /abc/rgf/rtf.sh.......its shell mentioned in systems  passwd file....&lt;BR /&gt;&lt;BR /&gt;and when i run grep zxw /etc/passwd | od -x&lt;BR /&gt;i get 00000...what is this....And when i login throgh his id the window gets closed after entering password..........plz help me its urgent...............&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Sep 2006 06:14:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-user-no-shell/m-p/3867072#M277735</guid>
      <dc:creator>dattu_1</dc:creator>
      <dc:date>2006-09-21T06:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: su - user .........No Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-user-no-shell/m-p/3867073#M277736</link>
      <description>dattu,&lt;BR /&gt;&lt;BR /&gt;The user shell listed in /etc/passwd for must be valid, and must appear in /etc/shells.&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Thu, 21 Sep 2006 06:18:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-user-no-shell/m-p/3867073#M277736</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-09-21T06:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: su - user .........No Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-user-no-shell/m-p/3867074#M277737</link>
      <description>Dattu,&lt;BR /&gt;&lt;BR /&gt;Those are the shells that you might want to use:&lt;BR /&gt;&lt;BR /&gt;#ll /usr/bin/ksh /usr/bin/sh /usr/bin/csh&lt;BR /&gt;-r-xr-xr-x 1 bin bin 155648 Jun 21 2004 /usr/bin/csh&lt;BR /&gt;-r-xr-xr-x 2 bin bin 159744 Jul 14 2004 /usr/bin/ksh&lt;BR /&gt;-r-xr-xr-x 2 bin bin 204800 Oct 21 2003 /usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;For more information, please refer to this old thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1042841" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1042841&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Jaime.</description>
      <pubDate>Thu, 21 Sep 2006 06:22:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-user-no-shell/m-p/3867074#M277737</guid>
      <dc:creator>Jaime Bolanos Rojas.</dc:creator>
      <dc:date>2006-09-21T06:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: su - user .........No Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-user-no-shell/m-p/3867075#M277738</link>
      <description>May you can check with 'pwck' command. It will check and tell what are all the errors you have in /etc/passwd file.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sudhakaran.K</description>
      <pubDate>Thu, 21 Sep 2006 06:23:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-user-no-shell/m-p/3867075#M277738</guid>
      <dc:creator>sudhapage</dc:creator>
      <dc:date>2006-09-21T06:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: su - user .........No Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-user-no-shell/m-p/3867076#M277739</link>
      <description>hi spex,&lt;BR /&gt;Actually i need to access an applicn with help of script /abc/def/Mydef.sh ...And what do u mean by shell  is valid or not..please explain.......when the user logs in..he gets an menu....&lt;BR /&gt;And reg pwck shows some login directories not found and everything ok.....&lt;BR /&gt;grpck gives nothing.........&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Sep 2006 06:38:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-user-no-shell/m-p/3867076#M277739</guid>
      <dc:creator>dattu_1</dc:creator>
      <dc:date>2006-09-21T06:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: su - user .........No Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-user-no-shell/m-p/3867077#M277740</link>
      <description>dattu,&lt;BR /&gt;&lt;BR /&gt;By valid shell, I mean an actual shell--not a shell script.  Furthermore, the shell executable must have appropriate ownership/permissions.  Examples of valid shells:&lt;BR /&gt;&lt;BR /&gt;# cat /etc/shells&lt;BR /&gt;/usr/bin/csh&lt;BR /&gt;/usr/bin/ksh&lt;BR /&gt;/usr/bin/sh&lt;BR /&gt;/sbin/sh&lt;BR /&gt;&lt;BR /&gt;To force a user to use a front-end program:&lt;BR /&gt;&lt;BR /&gt;1) Make sure the user has a valid shell assigned in /etc/passwd (e.g. /usr/bin/sh).&lt;BR /&gt;&lt;BR /&gt;2) Add a reference to the front-end script to ~user/.profile:&lt;BR /&gt;exec abc/rgf/rtf.sh&lt;BR /&gt;exit&lt;BR /&gt;&lt;BR /&gt;3) Optionally:&lt;BR /&gt;# chown root:root ~user/.profile&lt;BR /&gt;so that the user cannot make changes.&lt;BR /&gt;&lt;BR /&gt;'exec' replaces the user's current environment with that of &lt;CMD&gt; and exits once &lt;CMD&gt; terminates.&lt;BR /&gt;&lt;BR /&gt;PCS&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/CMD&gt;&lt;/CMD&gt;</description>
      <pubDate>Thu, 21 Sep 2006 07:04:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-user-no-shell/m-p/3867077#M277740</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-09-21T07:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: su - user .........No Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-user-no-shell/m-p/3867078#M277741</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Check if user has read privileges to .profile and .login files.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Carles</description>
      <pubDate>Thu, 21 Sep 2006 08:00:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-user-no-shell/m-p/3867078#M277741</guid>
      <dc:creator>Carles Viaplana</dc:creator>
      <dc:date>2006-09-21T08:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: su - user .........No Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-user-no-shell/m-p/3867079#M277742</link>
      <description>Give him a valid shell in the /etc/passwd file. If you need to bring up a menu when he logs in, It can be achieved by a .profile or some tweaking in /etc/profile(not recommended)&lt;BR /&gt;&lt;BR /&gt;Regds,&lt;BR /&gt;&lt;BR /&gt;Kaps&lt;BR /&gt;&lt;BR /&gt;But guys, It should work in any case though it is a shell script right ?.</description>
      <pubDate>Thu, 21 Sep 2006 08:59:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-user-no-shell/m-p/3867079#M277742</guid>
      <dc:creator>KapilRaj</dc:creator>
      <dc:date>2006-09-21T08:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: su - user .........No Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-user-no-shell/m-p/3867080#M277743</link>
      <description>Hi guys,&lt;BR /&gt;I think my password file is corrupt....B'coz i have ftp'd this file from the server where the backup was kept..now i am planning to create all users agin through script....Let us see.....I will surely let u know the status..........</description>
      <pubDate>Thu, 21 Sep 2006 09:15:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-user-no-shell/m-p/3867080#M277743</guid>
      <dc:creator>dattu_1</dc:creator>
      <dc:date>2006-09-21T09:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: su - user .........No Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-user-no-shell/m-p/3867081#M277744</link>
      <description>Kapil,&lt;BR /&gt;&lt;BR /&gt;Technically, you can set a user's shell to a script, as long as the script is +x and has correct ownership.  However, this is not recommended.&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Thu, 21 Sep 2006 10:09:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-user-no-shell/m-p/3867081#M277744</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-09-21T10:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: su - user .........No Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-user-no-shell/m-p/3867082#M277745</link>
      <description>Hi spex,&lt;BR /&gt;Actually i am able to access the shell when using telnet ..but when i try to login through ssh i am not able 2 login....the window just opens and gets killed immediately...............</description>
      <pubDate>Fri, 22 Sep 2006 05:57:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-user-no-shell/m-p/3867082#M277745</guid>
      <dc:creator>dattu_1</dc:creator>
      <dc:date>2006-09-22T05:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: su - user .........No Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-user-no-shell/m-p/3867083#M277746</link>
      <description>uhmm that sounds like ssh is not allowing a connection which has a bad shell. Why not try adding (appending) this shell script on /etc/shells and give it a try ?&lt;BR /&gt;&lt;BR /&gt;Regds,&lt;BR /&gt;&lt;BR /&gt;Kaps</description>
      <pubDate>Fri, 22 Sep 2006 08:51:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-user-no-shell/m-p/3867083#M277746</guid>
      <dc:creator>KapilRaj</dc:creator>
      <dc:date>2006-09-22T08:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: su - user .........No Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-user-no-shell/m-p/3867084#M277747</link>
      <description>Hi Kapil,&lt;BR /&gt;Actually the scripts entry is already therein /etc/shells......what should be the permission for /etc/shells.......</description>
      <pubDate>Fri, 22 Sep 2006 10:26:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-user-no-shell/m-p/3867084#M277747</guid>
      <dc:creator>dattu_1</dc:creator>
      <dc:date>2006-09-22T10:26:46Z</dc:date>
    </item>
  </channel>
</rss>

