<?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: Non-Command Line users in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/non-command-line-users/m-p/2471773#M760149</link>
    <description>Or you can just chown the .profile under a different user and all anyone to read it. Thats how I do it.</description>
    <pubDate>Mon, 18 Dec 2000 15:41:04 GMT</pubDate>
    <dc:creator>Paul Frederiksen</dc:creator>
    <dc:date>2000-12-18T15:41:04Z</dc:date>
    <item>
      <title>Non-Command Line users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/non-command-line-users/m-p/2471766#M760142</link>
      <description>We have a number of users that login and immediately go into the application and never see the command line.  Is there a way to prevent them from using ctrl-c or shell escape to break out of the application?  Also, can the same method be used if the user is supposed to go into sqlplus (i.e.:if they exit sqlplus, they are logged off?</description>
      <pubDate>Thu, 07 Dec 2000 19:16:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/non-command-line-users/m-p/2471766#M760142</guid>
      <dc:creator>Brian Atkins</dc:creator>
      <dc:date>2000-12-07T19:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Non-Command Line users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/non-command-line-users/m-p/2471767#M760143</link>
      <description>Brian:&lt;BR /&gt;&lt;BR /&gt;At the very beginning of the user's profile place a trap like this:&lt;BR /&gt;&lt;BR /&gt;# trap "" 1 2 3&lt;BR /&gt;&lt;BR /&gt;At the end of the user's profile do this:&lt;BR /&gt;&lt;BR /&gt;# exec sqlplus&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 07 Dec 2000 19:26:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/non-command-line-users/m-p/2471767#M760143</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-12-07T19:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Non-Command Line users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/non-command-line-users/m-p/2471768#M760144</link>
      <description>James,&lt;BR /&gt;Thanks for the quick response.  But, would you mind expanding on what:&lt;BR /&gt;trap "" 1 2 3 &lt;BR /&gt;does?</description>
      <pubDate>Thu, 07 Dec 2000 19:43:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/non-command-line-users/m-p/2471768#M760144</guid>
      <dc:creator>Brian Atkins</dc:creator>
      <dc:date>2000-12-07T19:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Non-Command Line users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/non-command-line-users/m-p/2471769#M760145</link>
      <description>I use:&lt;BR /&gt;&lt;BR /&gt;stty -isig&lt;BR /&gt;&lt;BR /&gt;in the beginning of their profile.  This disable the terminals checking of special control characters against the INTR and QUIT parameters.  This will not allow them to CTRL-C anywhere, even when running a report, which I don't want them to do either!</description>
      <pubDate>Thu, 07 Dec 2000 19:56:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/non-command-line-users/m-p/2471769#M760145</guid>
      <dc:creator>Tracey</dc:creator>
      <dc:date>2000-12-07T19:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Non-Command Line users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/non-command-line-users/m-p/2471770#M760146</link>
      <description>Another way is to edit /etc/passwd file and in the 7th field put the application binary  with path of instead regular sh or ksh.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. &lt;BR /&gt;...Madhu</description>
      <pubDate>Thu, 07 Dec 2000 20:08:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/non-command-line-users/m-p/2471770#M760146</guid>
      <dc:creator>Madhu Sudhan_1</dc:creator>
      <dc:date>2000-12-07T20:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Non-Command Line users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/non-command-line-users/m-p/2471771#M760147</link>
      <description>Brian:&lt;BR /&gt;&lt;BR /&gt;The 'trap' is an interrupt routine.  A 'trap' command is used to catch a signal such as the CTRL_C key sequence.  If argument to the trap is a null string ('' or ""), as here, each signal specified is simply ignored.  Thus the CTRL_C or "INT" signal becomes a no-op, and the user cannot break-out.  To see a list of signals, do:&lt;BR /&gt;&lt;BR /&gt;# kill -l&lt;BR /&gt;&lt;BR /&gt;The 'exec' command replaces the current shell with a new shell or program. In this case, exiting sqlplus (or an application that you have 'exec'ed) exits the then current environment and logs the user off.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 07 Dec 2000 20:57:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/non-command-line-users/m-p/2471771#M760147</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-12-07T20:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Non-Command Line users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/non-command-line-users/m-p/2471772#M760148</link>
      <description>Brian,&lt;BR /&gt;I would like to add something to what JRF says...&lt;BR /&gt;1&amp;gt; In the . profile you append one more line....&lt;BR /&gt;trap " " 1 2 3&lt;BR /&gt;exec sqlplus&lt;BR /&gt;exit $?&lt;BR /&gt;&lt;BR /&gt;2&amp;gt; OR you can put this in  /etc/profile.  (this is because the .profile may be tampered by the user , as it is owned by him)...as below...&lt;BR /&gt;&lt;BR /&gt;if [ $LOGNAME="xyz&amp;gt;" -o $LOGNAME = "yud" ]&lt;BR /&gt;then&lt;BR /&gt;export SHELL=/bin/false&lt;BR /&gt;exec /usr/oracle/bin/sqlplus&lt;BR /&gt;exit $?&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Thus,&lt;BR /&gt;** you can cover-up multiple users from same file, which is writeable only by the root.&lt;BR /&gt;** Secondly as the SHELL has been exported as /bin/false, even if the user tries to use "!" at sqlplus&amp;gt; prompt , he won't be able to fall into shell.&lt;BR /&gt;** all signal will be trapped.&lt;BR /&gt;** And he will be thrown out of the system, the moment he exits the sqlplus.&lt;BR /&gt;&lt;BR /&gt;Try this...it works fine on our systems.&lt;BR /&gt;Suhas...</description>
      <pubDate>Mon, 18 Dec 2000 15:26:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/non-command-line-users/m-p/2471772#M760148</guid>
      <dc:creator>Suhas_2</dc:creator>
      <dc:date>2000-12-18T15:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Non-Command Line users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/non-command-line-users/m-p/2471773#M760149</link>
      <description>Or you can just chown the .profile under a different user and all anyone to read it. Thats how I do it.</description>
      <pubDate>Mon, 18 Dec 2000 15:41:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/non-command-line-users/m-p/2471773#M760149</guid>
      <dc:creator>Paul Frederiksen</dc:creator>
      <dc:date>2000-12-18T15:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Non-Command Line users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/non-command-line-users/m-p/2471774#M760150</link>
      <description>If your .profile have the line below&lt;BR /&gt;stty erase "^H" kill "^U" intr "^C" eof "^D"&lt;BR /&gt;you may remove intr "^C" eof "^D" for them not to interrupt the system by ^C or ^D. &lt;BR /&gt;Also, I add the trap command options between the menu or command to go go directly to the application.&lt;BR /&gt;&lt;BR /&gt;? Set up Application startup script&lt;BR /&gt;trap "" 2 3 4 5 6 7 8 10 12 13 15 16 17 19 20 21&lt;BR /&gt;. appl_scr.sh&lt;BR /&gt;trap -&lt;BR /&gt;exit 3&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Jan 2001 09:09:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/non-command-line-users/m-p/2471774#M760150</guid>
      <dc:creator>MARISSA GLORIA-RINGOR_1</dc:creator>
      <dc:date>2001-01-12T09:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Non-Command Line users</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/non-command-line-users/m-p/2471775#M760151</link>
      <description>Be sure to check the documentation for the application you are running. Some of them play with trapping the interrupts too and may override what .profile may does.</description>
      <pubDate>Fri, 12 Jan 2001 17:42:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/non-command-line-users/m-p/2471775#M760151</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2001-01-12T17:42:24Z</dc:date>
    </item>
  </channel>
</rss>

