<?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: Disable Control-C on Linux in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/disable-control-c-on-linux/m-p/3313963#M12840</link>
    <description>hi,&lt;BR /&gt;.profile should be placed in $HOME, if is not , create it.&lt;BR /&gt;&lt;BR /&gt;other way how to forbid Ctrl+C is following row in .profile:&lt;BR /&gt;&lt;BR /&gt;stty intr =&lt;BR /&gt;&lt;BR /&gt;(all tty settings you get by stty -a)&lt;BR /&gt;&lt;BR /&gt;br Jan</description>
    <pubDate>Thu, 24 Jun 2004 06:42:18 GMT</pubDate>
    <dc:creator>Jan Sladky</dc:creator>
    <dc:date>2004-06-24T06:42:18Z</dc:date>
    <item>
      <title>Disable Control-C on Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/disable-control-c-on-linux/m-p/3313958#M12835</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I have created a user TEST. How do i disable the Control-C(to break some operation) button and it should only affect this particular user, and not everybody.&lt;BR /&gt;&lt;BR /&gt;I know we can do that in HPUX, but how is it in Redhat 7.0?&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Jun 2004 03:24:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/disable-control-c-on-linux/m-p/3313958#M12835</guid>
      <dc:creator>M.A.</dc:creator>
      <dc:date>2004-06-24T03:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Control-C on Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/disable-control-c-on-linux/m-p/3313959#M12836</link>
      <description>You can do this in the users .profile with the following near the top&lt;BR /&gt; &lt;BR /&gt;trap "" 2 &lt;BR /&gt; &lt;BR /&gt;Of course, you need to make sure that the .profile is read.  If they log in via xdm/gdm/kdm and then run some type of terminal, you need to make sure that the terminal is started with a "-ls" to ensure the .profile is read.  Anyway, however they log in, put the above in .profile and make sure th e .profile is sourced.  If it a normal telnet log in, you won't need to do anything else.</description>
      <pubDate>Thu, 24 Jun 2004 04:19:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/disable-control-c-on-linux/m-p/3313959#M12836</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-06-24T04:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Control-C on Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/disable-control-c-on-linux/m-p/3313960#M12837</link>
      <description>Im sorry, but which .profile are you referring to? I tried to find but all i have is .bash_profile. Is this the one?&lt;BR /&gt;&lt;BR /&gt;btw, the user is trying to access using normal telnet from any other server.&lt;BR /&gt;&lt;BR /&gt;TQ.</description>
      <pubDate>Thu, 24 Jun 2004 04:28:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/disable-control-c-on-linux/m-p/3313960#M12837</guid>
      <dc:creator>M.A.</dc:creator>
      <dc:date>2004-06-24T04:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Control-C on Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/disable-control-c-on-linux/m-p/3313961#M12838</link>
      <description>Abdullah,&lt;BR /&gt;Mark is talking about the users profile file .profile in the users home directory.&lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;Mobeen</description>
      <pubDate>Thu, 24 Jun 2004 05:45:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/disable-control-c-on-linux/m-p/3313961#M12838</guid>
      <dc:creator>Mobeen_1</dc:creator>
      <dc:date>2004-06-24T05:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Control-C on Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/disable-control-c-on-linux/m-p/3313962#M12839</link>
      <description>Hi Abdullah,&lt;BR /&gt;     Yeah you are correct, You can find .bash_profile in /home/user_name directory.&lt;BR /&gt;&lt;BR /&gt;     There you have to edit as per Mark has said. I hope this will work.&lt;BR /&gt;&lt;BR /&gt;Shetty.</description>
      <pubDate>Thu, 24 Jun 2004 06:40:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/disable-control-c-on-linux/m-p/3313962#M12839</guid>
      <dc:creator>shetty</dc:creator>
      <dc:date>2004-06-24T06:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Control-C on Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/disable-control-c-on-linux/m-p/3313963#M12840</link>
      <description>hi,&lt;BR /&gt;.profile should be placed in $HOME, if is not , create it.&lt;BR /&gt;&lt;BR /&gt;other way how to forbid Ctrl+C is following row in .profile:&lt;BR /&gt;&lt;BR /&gt;stty intr =&lt;BR /&gt;&lt;BR /&gt;(all tty settings you get by stty -a)&lt;BR /&gt;&lt;BR /&gt;br Jan</description>
      <pubDate>Thu, 24 Jun 2004 06:42:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/disable-control-c-on-linux/m-p/3313963#M12840</guid>
      <dc:creator>Jan Sladky</dc:creator>
      <dc:date>2004-06-24T06:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Control-C on Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/disable-control-c-on-linux/m-p/3313964#M12841</link>
      <description>Jan has the best idea.&lt;BR /&gt;&lt;BR /&gt;CTRL-C is just the shell sending a signal.  All you have to do is stop the shell, which is done through 'stty'.  The 'intr' (Interrupt, SIGINT) is what you're trying to stop.&lt;BR /&gt;&lt;BR /&gt;Unfortunately, Jan's post will change the CTRL-C to just the '=' key ;)&lt;BR /&gt;&lt;BR /&gt;To disable it, use the following:&lt;BR /&gt;&lt;BR /&gt;stty intr undef&lt;BR /&gt;&lt;BR /&gt;Put this in '/etc/profile' to disable it for all users, or in the users '.bash_profile' (or '.bashrc') file for an individual user (reccomended).</description>
      <pubDate>Thu, 24 Jun 2004 18:37:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/disable-control-c-on-linux/m-p/3313964#M12841</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2004-06-24T18:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Disable Control-C on Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/disable-control-c-on-linux/m-p/3313965#M12842</link>
      <description>hai,&lt;BR /&gt;&lt;BR /&gt; For every user contains .bash_profile file in their home directory to define it's environment variables or settings. &lt;BR /&gt;&lt;BR /&gt; Else copy the root /.bash_profile file to your home directory and change the owner and file permissions.&lt;BR /&gt;&lt;BR /&gt; Control-C is normally known with intr signal. We can remove that signal as &lt;BR /&gt; &lt;BR /&gt; # stty -isig intr&lt;BR /&gt; # ^C &lt;BR /&gt; After that it will print that control+c value on the screen. It won't do the action.&lt;BR /&gt;&lt;BR /&gt; You can use stty raw intr to do the same effect. But the prompting will be not as like normal &lt;BR /&gt;&lt;BR /&gt; To know more about control+c ,use ksh man page on intr keyword&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Muthukumar.&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Jun 2004 00:48:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/disable-control-c-on-linux/m-p/3313965#M12842</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-06-25T00:48:45Z</dc:date>
    </item>
  </channel>
</rss>

