<?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: Login Shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/login-shell/m-p/4977529#M783902</link>
    <description>What was the error you got?  What did it do?&lt;BR /&gt;&lt;BR /&gt;If all else fails you should be able to edit the /etc/passwd file and set the users default shell the what you need it to be.&lt;BR /&gt;&lt;BR /&gt;Just be sure that the user has access to run that particular script/program.</description>
    <pubDate>Fri, 05 May 2006 10:35:52 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2006-05-05T10:35:52Z</dc:date>
    <item>
      <title>Login Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-shell/m-p/4977528#M783901</link>
      <description>Hi Again,&lt;BR /&gt;&lt;BR /&gt;I'm trying to create a new user with the only atribute to execute a menu shell, so I open sam and at Start-Up Program I put the path to the executable script but i wasn't able to set it. At older server i can proceed like this. Somebody?</description>
      <pubDate>Fri, 05 May 2006 10:29:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-shell/m-p/4977528#M783901</guid>
      <dc:creator>Gamaliel</dc:creator>
      <dc:date>2006-05-05T10:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Login Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-shell/m-p/4977529#M783902</link>
      <description>What was the error you got?  What did it do?&lt;BR /&gt;&lt;BR /&gt;If all else fails you should be able to edit the /etc/passwd file and set the users default shell the what you need it to be.&lt;BR /&gt;&lt;BR /&gt;Just be sure that the user has access to run that particular script/program.</description>
      <pubDate>Fri, 05 May 2006 10:35:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-shell/m-p/4977529#M783902</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-05-05T10:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Login Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-shell/m-p/4977530#M783903</link>
      <description>Joaquin -&lt;BR /&gt; We'll routinely put a menu call in the individual's .profile with an exit following.&lt;BR /&gt;Thus they have a choice of going into the menu and upon exiting the menu they are logged out.&lt;BR /&gt;Of course you will have to trap for cntrl-c, etc.&lt;BR /&gt;&lt;BR /&gt;Best of luck.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;dl</description>
      <pubDate>Fri, 05 May 2006 10:45:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-shell/m-p/4977530#M783903</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2006-05-05T10:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Login Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-shell/m-p/4977531#M783904</link>
      <description>It's a lot easier than you described. Simply run the chsh command to specify the menu script as the shell rather than /usr/bin/sh. Make sure you use the full path for the script, that the user can run the script (not in a restricted directory) and that the menu script has the first line:&lt;BR /&gt; &lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt; &lt;BR /&gt;(or whatever shell interpreter you are using). The #! line should be in 100% of all your shell scripts along with replacing (never appending) PATH with the necessary paths, something like this:&lt;BR /&gt; &lt;BR /&gt;export PATH=/usr/bin&lt;BR /&gt; &lt;BR /&gt;And to prevent potential problems, always use set -u to halt/exit on spelling errors.</description>
      <pubDate>Fri, 05 May 2006 10:59:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-shell/m-p/4977531#M783904</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-05-05T10:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Login Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-shell/m-p/4977532#M783905</link>
      <description>Pat,&lt;BR /&gt;&lt;BR /&gt;The message is /path/menu is not a valid shell, i edit the passwd file and when connecting get the msg "no shell" ... I'll try the first line cmd.</description>
      <pubDate>Fri, 05 May 2006 11:05:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-shell/m-p/4977532#M783905</guid>
      <dc:creator>Gamaliel</dc:creator>
      <dc:date>2006-05-05T11:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Login Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-shell/m-p/4977533#M783906</link>
      <description>Add an entry into /etc/shells of the script you are running. This file contains the list of allowed shells for user login.&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Fri, 05 May 2006 11:08:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-shell/m-p/4977533#M783906</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2006-05-05T11:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Login Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-shell/m-p/4977534#M783907</link>
      <description>Bill,&lt;BR /&gt;&lt;BR /&gt;I did what 'u suggest and everything works fine! &lt;BR /&gt;&lt;BR /&gt;Thk 'u all!</description>
      <pubDate>Fri, 05 May 2006 11:34:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-shell/m-p/4977534#M783907</guid>
      <dc:creator>Gamaliel</dc:creator>
      <dc:date>2006-05-05T11:34:53Z</dc:date>
    </item>
  </channel>
</rss>

