How to kill a process that says “Operation not permitted” when attempted?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
14
down vote

favorite
2












I have a process I would like to kill:



computer@ubuntu:~$ ps aux | grep socat
root 2092 0.0 0.0 5564 1528 pts/1 T 14:37 0:00 sudo socat TCP:xxx.17.29.152:54321 PTY,link=/dev/ttyGPS0,raw,echo=0,mode=666
computer@ubuntu:~$ kill 2092
-bash: kill: (2092) - Operation not permitted <--------------- How to kill ??









share|improve this question



















  • 3




    The command you list here is running as root. Have you tried running sudo kill 2092?
    – Joel Taylor
    Sep 3 '13 at 22:18















up vote
14
down vote

favorite
2












I have a process I would like to kill:



computer@ubuntu:~$ ps aux | grep socat
root 2092 0.0 0.0 5564 1528 pts/1 T 14:37 0:00 sudo socat TCP:xxx.17.29.152:54321 PTY,link=/dev/ttyGPS0,raw,echo=0,mode=666
computer@ubuntu:~$ kill 2092
-bash: kill: (2092) - Operation not permitted <--------------- How to kill ??









share|improve this question



















  • 3




    The command you list here is running as root. Have you tried running sudo kill 2092?
    – Joel Taylor
    Sep 3 '13 at 22:18













up vote
14
down vote

favorite
2









up vote
14
down vote

favorite
2






2





I have a process I would like to kill:



computer@ubuntu:~$ ps aux | grep socat
root 2092 0.0 0.0 5564 1528 pts/1 T 14:37 0:00 sudo socat TCP:xxx.17.29.152:54321 PTY,link=/dev/ttyGPS0,raw,echo=0,mode=666
computer@ubuntu:~$ kill 2092
-bash: kill: (2092) - Operation not permitted <--------------- How to kill ??









share|improve this question















I have a process I would like to kill:



computer@ubuntu:~$ ps aux | grep socat
root 2092 0.0 0.0 5564 1528 pts/1 T 14:37 0:00 sudo socat TCP:xxx.17.29.152:54321 PTY,link=/dev/ttyGPS0,raw,echo=0,mode=666
computer@ubuntu:~$ kill 2092
-bash: kill: (2092) - Operation not permitted <--------------- How to kill ??






sudo kill






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 3 '13 at 23:02









Gilles

515k12210251554




515k12210251554










asked Sep 3 '13 at 21:45









jdl

2862410




2862410







  • 3




    The command you list here is running as root. Have you tried running sudo kill 2092?
    – Joel Taylor
    Sep 3 '13 at 22:18













  • 3




    The command you list here is running as root. Have you tried running sudo kill 2092?
    – Joel Taylor
    Sep 3 '13 at 22:18








3




3




The command you list here is running as root. Have you tried running sudo kill 2092?
– Joel Taylor
Sep 3 '13 at 22:18





The command you list here is running as root. Have you tried running sudo kill 2092?
– Joel Taylor
Sep 3 '13 at 22:18











3 Answers
3






active

oldest

votes

















up vote
15
down vote



accepted










try kill command with with -9 signal if sudo kill 'pid' does not work:
sudo kill -9 2092






share|improve this answer




















  • I have a process that cannot be killed even with root (i'm running bash as root already). Any ideas what to try next?
    – danbru1211
    Jan 15 at 15:57










  • What process are you trying to kill and the error you are receiving?
    – Gr33n
    Jan 17 at 0:44










  • It is a stuck iftop and I get a "permission denied". Both iftop and kill are run by root itself. I started iftop from a bash and I can't kill that bash either.
    – danbru1211
    Jan 17 at 9:45










  • there are times even kill -9 may not work.. then try sudo kill -9 pid
    – Gautam
    Jun 4 at 7:32










  • I have a process in which I did sudo kill -9 2091 and it still gives this message. Why would that be (os/x high sierra)
    – javadba
    Sep 29 at 19:05

















up vote
15
down vote













That command is running under sudo as root, your kill command must as well:



sudo kill 2092






share|improve this answer



























    up vote
    0
    down vote













    What if I am not a sudo user? What is the command to kill the processes then?






    share|improve this answer








    New contributor




    Kishore BharathKumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

















      Your Answer







      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "106"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      convertImagesToLinks: false,
      noModals: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













       

      draft saved


      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f89316%2fhow-to-kill-a-process-that-says-operation-not-permitted-when-attempted%23new-answer', 'question_page');

      );

      Post as a guest






























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      15
      down vote



      accepted










      try kill command with with -9 signal if sudo kill 'pid' does not work:
      sudo kill -9 2092






      share|improve this answer




















      • I have a process that cannot be killed even with root (i'm running bash as root already). Any ideas what to try next?
        – danbru1211
        Jan 15 at 15:57










      • What process are you trying to kill and the error you are receiving?
        – Gr33n
        Jan 17 at 0:44










      • It is a stuck iftop and I get a "permission denied". Both iftop and kill are run by root itself. I started iftop from a bash and I can't kill that bash either.
        – danbru1211
        Jan 17 at 9:45










      • there are times even kill -9 may not work.. then try sudo kill -9 pid
        – Gautam
        Jun 4 at 7:32










      • I have a process in which I did sudo kill -9 2091 and it still gives this message. Why would that be (os/x high sierra)
        – javadba
        Sep 29 at 19:05














      up vote
      15
      down vote



      accepted










      try kill command with with -9 signal if sudo kill 'pid' does not work:
      sudo kill -9 2092






      share|improve this answer




















      • I have a process that cannot be killed even with root (i'm running bash as root already). Any ideas what to try next?
        – danbru1211
        Jan 15 at 15:57










      • What process are you trying to kill and the error you are receiving?
        – Gr33n
        Jan 17 at 0:44










      • It is a stuck iftop and I get a "permission denied". Both iftop and kill are run by root itself. I started iftop from a bash and I can't kill that bash either.
        – danbru1211
        Jan 17 at 9:45










      • there are times even kill -9 may not work.. then try sudo kill -9 pid
        – Gautam
        Jun 4 at 7:32










      • I have a process in which I did sudo kill -9 2091 and it still gives this message. Why would that be (os/x high sierra)
        – javadba
        Sep 29 at 19:05












      up vote
      15
      down vote



      accepted







      up vote
      15
      down vote



      accepted






      try kill command with with -9 signal if sudo kill 'pid' does not work:
      sudo kill -9 2092






      share|improve this answer












      try kill command with with -9 signal if sudo kill 'pid' does not work:
      sudo kill -9 2092







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Sep 4 '13 at 6:37









      Gr33n

      1743




      1743











      • I have a process that cannot be killed even with root (i'm running bash as root already). Any ideas what to try next?
        – danbru1211
        Jan 15 at 15:57










      • What process are you trying to kill and the error you are receiving?
        – Gr33n
        Jan 17 at 0:44










      • It is a stuck iftop and I get a "permission denied". Both iftop and kill are run by root itself. I started iftop from a bash and I can't kill that bash either.
        – danbru1211
        Jan 17 at 9:45










      • there are times even kill -9 may not work.. then try sudo kill -9 pid
        – Gautam
        Jun 4 at 7:32










      • I have a process in which I did sudo kill -9 2091 and it still gives this message. Why would that be (os/x high sierra)
        – javadba
        Sep 29 at 19:05
















      • I have a process that cannot be killed even with root (i'm running bash as root already). Any ideas what to try next?
        – danbru1211
        Jan 15 at 15:57










      • What process are you trying to kill and the error you are receiving?
        – Gr33n
        Jan 17 at 0:44










      • It is a stuck iftop and I get a "permission denied". Both iftop and kill are run by root itself. I started iftop from a bash and I can't kill that bash either.
        – danbru1211
        Jan 17 at 9:45










      • there are times even kill -9 may not work.. then try sudo kill -9 pid
        – Gautam
        Jun 4 at 7:32










      • I have a process in which I did sudo kill -9 2091 and it still gives this message. Why would that be (os/x high sierra)
        – javadba
        Sep 29 at 19:05















      I have a process that cannot be killed even with root (i'm running bash as root already). Any ideas what to try next?
      – danbru1211
      Jan 15 at 15:57




      I have a process that cannot be killed even with root (i'm running bash as root already). Any ideas what to try next?
      – danbru1211
      Jan 15 at 15:57












      What process are you trying to kill and the error you are receiving?
      – Gr33n
      Jan 17 at 0:44




      What process are you trying to kill and the error you are receiving?
      – Gr33n
      Jan 17 at 0:44












      It is a stuck iftop and I get a "permission denied". Both iftop and kill are run by root itself. I started iftop from a bash and I can't kill that bash either.
      – danbru1211
      Jan 17 at 9:45




      It is a stuck iftop and I get a "permission denied". Both iftop and kill are run by root itself. I started iftop from a bash and I can't kill that bash either.
      – danbru1211
      Jan 17 at 9:45












      there are times even kill -9 may not work.. then try sudo kill -9 pid
      – Gautam
      Jun 4 at 7:32




      there are times even kill -9 may not work.. then try sudo kill -9 pid
      – Gautam
      Jun 4 at 7:32












      I have a process in which I did sudo kill -9 2091 and it still gives this message. Why would that be (os/x high sierra)
      – javadba
      Sep 29 at 19:05




      I have a process in which I did sudo kill -9 2091 and it still gives this message. Why would that be (os/x high sierra)
      – javadba
      Sep 29 at 19:05












      up vote
      15
      down vote













      That command is running under sudo as root, your kill command must as well:



      sudo kill 2092






      share|improve this answer
























        up vote
        15
        down vote













        That command is running under sudo as root, your kill command must as well:



        sudo kill 2092






        share|improve this answer






















          up vote
          15
          down vote










          up vote
          15
          down vote









          That command is running under sudo as root, your kill command must as well:



          sudo kill 2092






          share|improve this answer












          That command is running under sudo as root, your kill command must as well:



          sudo kill 2092







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 3 '13 at 22:20









          wingedsubmariner

          2,213819




          2,213819




















              up vote
              0
              down vote













              What if I am not a sudo user? What is the command to kill the processes then?






              share|improve this answer








              New contributor




              Kishore BharathKumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.





















                up vote
                0
                down vote













                What if I am not a sudo user? What is the command to kill the processes then?






                share|improve this answer








                New contributor




                Kishore BharathKumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.



















                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  What if I am not a sudo user? What is the command to kill the processes then?






                  share|improve this answer








                  New contributor




                  Kishore BharathKumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  What if I am not a sudo user? What is the command to kill the processes then?







                  share|improve this answer








                  New contributor




                  Kishore BharathKumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  share|improve this answer



                  share|improve this answer






                  New contributor




                  Kishore BharathKumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  answered 14 mins ago









                  Kishore BharathKumar

                  1




                  1




                  New contributor




                  Kishore BharathKumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.





                  New contributor





                  Kishore BharathKumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






                  Kishore BharathKumar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.



























                       

                      draft saved


                      draft discarded















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f89316%2fhow-to-kill-a-process-that-says-operation-not-permitted-when-attempted%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Popular posts from this blog

                      How to check contact read email or not when send email to Individual?

                      Bahrain

                      Postfix configuration issue with fips on centos 7; mailgun relay