I can't use sudo command in terminal [duplicate]











up vote
-3
down vote

favorite
1













This question already has an answer here:




  • How do I deal with 'sudoers.so must be only be writable by owner'?

    2 answers



  • Sudo comes up with an error, cannot run anything as root

    2 answers




Somebody help me to solve this problem. I can't use sudo command in terminal. gksudo nautilus is also useful in here.












share|improve this question















marked as duplicate by karel, muru, Fabby, George Udosen, Zanna yesterday


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.











  • 7




    Please DON'T use images when you can copy/paste text.
    – Rinzwind
    Aug 17 '16 at 17:29










  • sudo is not a command to be used alone; using sudo elevates the command following it to administrative privilege. A common use might be to edit a system file. Your image suggests that you have used gksudo nautilus which should have launched Nautilus after your password was entered. Try this command ... sudo cat /etc/sudoers
    – pfeiffep
    Aug 17 '16 at 17:33















up vote
-3
down vote

favorite
1













This question already has an answer here:




  • How do I deal with 'sudoers.so must be only be writable by owner'?

    2 answers



  • Sudo comes up with an error, cannot run anything as root

    2 answers




Somebody help me to solve this problem. I can't use sudo command in terminal. gksudo nautilus is also useful in here.












share|improve this question















marked as duplicate by karel, muru, Fabby, George Udosen, Zanna yesterday


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.











  • 7




    Please DON'T use images when you can copy/paste text.
    – Rinzwind
    Aug 17 '16 at 17:29










  • sudo is not a command to be used alone; using sudo elevates the command following it to administrative privilege. A common use might be to edit a system file. Your image suggests that you have used gksudo nautilus which should have launched Nautilus after your password was entered. Try this command ... sudo cat /etc/sudoers
    – pfeiffep
    Aug 17 '16 at 17:33













up vote
-3
down vote

favorite
1









up vote
-3
down vote

favorite
1






1






This question already has an answer here:




  • How do I deal with 'sudoers.so must be only be writable by owner'?

    2 answers



  • Sudo comes up with an error, cannot run anything as root

    2 answers




Somebody help me to solve this problem. I can't use sudo command in terminal. gksudo nautilus is also useful in here.












share|improve this question
















This question already has an answer here:




  • How do I deal with 'sudoers.so must be only be writable by owner'?

    2 answers



  • Sudo comes up with an error, cannot run anything as root

    2 answers




Somebody help me to solve this problem. I can't use sudo command in terminal. gksudo nautilus is also useful in here.







This question already has an answer here:




  • How do I deal with 'sudoers.so must be only be writable by owner'?

    2 answers



  • Sudo comes up with an error, cannot run anything as root

    2 answers








command-line gksudo






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 days ago









muru

134k19282482




134k19282482










asked Aug 17 '16 at 17:11









Moe Thar

111




111




marked as duplicate by karel, muru, Fabby, George Udosen, Zanna yesterday


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by karel, muru, Fabby, George Udosen, Zanna yesterday


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 7




    Please DON'T use images when you can copy/paste text.
    – Rinzwind
    Aug 17 '16 at 17:29










  • sudo is not a command to be used alone; using sudo elevates the command following it to administrative privilege. A common use might be to edit a system file. Your image suggests that you have used gksudo nautilus which should have launched Nautilus after your password was entered. Try this command ... sudo cat /etc/sudoers
    – pfeiffep
    Aug 17 '16 at 17:33














  • 7




    Please DON'T use images when you can copy/paste text.
    – Rinzwind
    Aug 17 '16 at 17:29










  • sudo is not a command to be used alone; using sudo elevates the command following it to administrative privilege. A common use might be to edit a system file. Your image suggests that you have used gksudo nautilus which should have launched Nautilus after your password was entered. Try this command ... sudo cat /etc/sudoers
    – pfeiffep
    Aug 17 '16 at 17:33








7




7




Please DON'T use images when you can copy/paste text.
– Rinzwind
Aug 17 '16 at 17:29




Please DON'T use images when you can copy/paste text.
– Rinzwind
Aug 17 '16 at 17:29












sudo is not a command to be used alone; using sudo elevates the command following it to administrative privilege. A common use might be to edit a system file. Your image suggests that you have used gksudo nautilus which should have launched Nautilus after your password was entered. Try this command ... sudo cat /etc/sudoers
– pfeiffep
Aug 17 '16 at 17:33




sudo is not a command to be used alone; using sudo elevates the command following it to administrative privilege. A common use might be to edit a system file. Your image suggests that you have used gksudo nautilus which should have launched Nautilus after your password was entered. Try this command ... sudo cat /etc/sudoers
– pfeiffep
Aug 17 '16 at 17:33










3 Answers
3






active

oldest

votes

















up vote
-1
down vote













Use



From the man pages



man sudo



Execute a command as super user.
sudo allows a permitted user to execute a command as the superuser or another user, as specified by the security policy.



man gksudo



GTK+ frontend for su and sudo.
gksu is a frontend to su and gksudo is a frontend to sudo.

Their primary purpose is to run graphical commands that need root without the need to run an X terminal emulator and using su directly.




  • If you want to execute a GUI program with root permissions, you should always use gksudo, and avoid sudo, as this might change the applications` permissions and set the application unusable for the user.


  • If you want to execute a non-GUI program with root permissions, you should always use sudo.



Meaning



It originally stood for "superuser do" as the older versions of sudo were designed to run commands only as the "superuser".

However, the later versions added support for running commands not only as the "superuser" but also as other (restricted) users, and thus it is also commonly expanded as "substitute user do".



Although the latter case reflects its current functionality more accurately, sudo is still often called "superuser do" since it is so often used for administrative tasks.






share|improve this answer




























    up vote
    -1
    down vote













    1st open your terminal then type and enter



    pkexec su



    login as root user



    then type and enter



    chmod 440 /etc/sudoers
    chmod 775 /etc/sudoers.d
    chmod 440 /etc/sudoers.d/README






    share|improve this answer




























      up vote
      -2
      down vote













      Try this:



      chmod 644 /usr/lib/sudo/sudoers.so


      Usually it would be sudo chmod ... but as far as you cannot run sudo and according to the error you're getting it seems you have given permission for writing that one with other users, maybe you got lucky...



      If it doesn't work, please, do this:



      ls -l /usr/lib/sudo/sudoers.so


      And cut and paste the result here.






      share|improve this answer























      • htooyannaingkyaw@htooyannaingkyaw-Inspiron-5558:~$ chmod 644 /usr/lib/sudo/sudoers.so chmod: changing permissions of '/usr/lib/sudo/sudoers.so': Operation not permitted htooyannaingkyaw@htooyannaingkyaw-Inspiron-5558:~$ sudo sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policy' sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner sudo: fatal error, unable to load plugins htooyannaingkyaw@htooyannaingkyaw-Inspiron-5558:~$ ls -l /usr/lib/sudo/sudoers.so -rw-rw-r-- 1 root root 316768 4 23:55 /usr/lib/sudo/sudoers.so
        – Moe Thar
        Aug 18 '16 at 4:01












      • Thew only think you can do in such circumstances, AFAIK, is to boot an Ubuntu with an external USB drive, mount your primary hard disk, and change those permissions while running the USB drive Ubuntu instead of the installed one. Then reboot the system.
        – Fran Marzoa
        Aug 19 '16 at 12:27


















      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      -1
      down vote













      Use



      From the man pages



      man sudo



      Execute a command as super user.
      sudo allows a permitted user to execute a command as the superuser or another user, as specified by the security policy.



      man gksudo



      GTK+ frontend for su and sudo.
      gksu is a frontend to su and gksudo is a frontend to sudo.

      Their primary purpose is to run graphical commands that need root without the need to run an X terminal emulator and using su directly.




      • If you want to execute a GUI program with root permissions, you should always use gksudo, and avoid sudo, as this might change the applications` permissions and set the application unusable for the user.


      • If you want to execute a non-GUI program with root permissions, you should always use sudo.



      Meaning



      It originally stood for "superuser do" as the older versions of sudo were designed to run commands only as the "superuser".

      However, the later versions added support for running commands not only as the "superuser" but also as other (restricted) users, and thus it is also commonly expanded as "substitute user do".



      Although the latter case reflects its current functionality more accurately, sudo is still often called "superuser do" since it is so often used for administrative tasks.






      share|improve this answer

























        up vote
        -1
        down vote













        Use



        From the man pages



        man sudo



        Execute a command as super user.
        sudo allows a permitted user to execute a command as the superuser or another user, as specified by the security policy.



        man gksudo



        GTK+ frontend for su and sudo.
        gksu is a frontend to su and gksudo is a frontend to sudo.

        Their primary purpose is to run graphical commands that need root without the need to run an X terminal emulator and using su directly.




        • If you want to execute a GUI program with root permissions, you should always use gksudo, and avoid sudo, as this might change the applications` permissions and set the application unusable for the user.


        • If you want to execute a non-GUI program with root permissions, you should always use sudo.



        Meaning



        It originally stood for "superuser do" as the older versions of sudo were designed to run commands only as the "superuser".

        However, the later versions added support for running commands not only as the "superuser" but also as other (restricted) users, and thus it is also commonly expanded as "substitute user do".



        Although the latter case reflects its current functionality more accurately, sudo is still often called "superuser do" since it is so often used for administrative tasks.






        share|improve this answer























          up vote
          -1
          down vote










          up vote
          -1
          down vote









          Use



          From the man pages



          man sudo



          Execute a command as super user.
          sudo allows a permitted user to execute a command as the superuser or another user, as specified by the security policy.



          man gksudo



          GTK+ frontend for su and sudo.
          gksu is a frontend to su and gksudo is a frontend to sudo.

          Their primary purpose is to run graphical commands that need root without the need to run an X terminal emulator and using su directly.




          • If you want to execute a GUI program with root permissions, you should always use gksudo, and avoid sudo, as this might change the applications` permissions and set the application unusable for the user.


          • If you want to execute a non-GUI program with root permissions, you should always use sudo.



          Meaning



          It originally stood for "superuser do" as the older versions of sudo were designed to run commands only as the "superuser".

          However, the later versions added support for running commands not only as the "superuser" but also as other (restricted) users, and thus it is also commonly expanded as "substitute user do".



          Although the latter case reflects its current functionality more accurately, sudo is still often called "superuser do" since it is so often used for administrative tasks.






          share|improve this answer












          Use



          From the man pages



          man sudo



          Execute a command as super user.
          sudo allows a permitted user to execute a command as the superuser or another user, as specified by the security policy.



          man gksudo



          GTK+ frontend for su and sudo.
          gksu is a frontend to su and gksudo is a frontend to sudo.

          Their primary purpose is to run graphical commands that need root without the need to run an X terminal emulator and using su directly.




          • If you want to execute a GUI program with root permissions, you should always use gksudo, and avoid sudo, as this might change the applications` permissions and set the application unusable for the user.


          • If you want to execute a non-GUI program with root permissions, you should always use sudo.



          Meaning



          It originally stood for "superuser do" as the older versions of sudo were designed to run commands only as the "superuser".

          However, the later versions added support for running commands not only as the "superuser" but also as other (restricted) users, and thus it is also commonly expanded as "substitute user do".



          Although the latter case reflects its current functionality more accurately, sudo is still often called "superuser do" since it is so often used for administrative tasks.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Aug 17 '16 at 17:58









          Panagiotis Tabakis

          1,028517




          1,028517
























              up vote
              -1
              down vote













              1st open your terminal then type and enter



              pkexec su



              login as root user



              then type and enter



              chmod 440 /etc/sudoers
              chmod 775 /etc/sudoers.d
              chmod 440 /etc/sudoers.d/README






              share|improve this answer

























                up vote
                -1
                down vote













                1st open your terminal then type and enter



                pkexec su



                login as root user



                then type and enter



                chmod 440 /etc/sudoers
                chmod 775 /etc/sudoers.d
                chmod 440 /etc/sudoers.d/README






                share|improve this answer























                  up vote
                  -1
                  down vote










                  up vote
                  -1
                  down vote









                  1st open your terminal then type and enter



                  pkexec su



                  login as root user



                  then type and enter



                  chmod 440 /etc/sudoers
                  chmod 775 /etc/sudoers.d
                  chmod 440 /etc/sudoers.d/README






                  share|improve this answer












                  1st open your terminal then type and enter



                  pkexec su



                  login as root user



                  then type and enter



                  chmod 440 /etc/sudoers
                  chmod 775 /etc/sudoers.d
                  chmod 440 /etc/sudoers.d/README







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 13 at 10:14









                  Ex Engineer

                  1




                  1






















                      up vote
                      -2
                      down vote













                      Try this:



                      chmod 644 /usr/lib/sudo/sudoers.so


                      Usually it would be sudo chmod ... but as far as you cannot run sudo and according to the error you're getting it seems you have given permission for writing that one with other users, maybe you got lucky...



                      If it doesn't work, please, do this:



                      ls -l /usr/lib/sudo/sudoers.so


                      And cut and paste the result here.






                      share|improve this answer























                      • htooyannaingkyaw@htooyannaingkyaw-Inspiron-5558:~$ chmod 644 /usr/lib/sudo/sudoers.so chmod: changing permissions of '/usr/lib/sudo/sudoers.so': Operation not permitted htooyannaingkyaw@htooyannaingkyaw-Inspiron-5558:~$ sudo sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policy' sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner sudo: fatal error, unable to load plugins htooyannaingkyaw@htooyannaingkyaw-Inspiron-5558:~$ ls -l /usr/lib/sudo/sudoers.so -rw-rw-r-- 1 root root 316768 4 23:55 /usr/lib/sudo/sudoers.so
                        – Moe Thar
                        Aug 18 '16 at 4:01












                      • Thew only think you can do in such circumstances, AFAIK, is to boot an Ubuntu with an external USB drive, mount your primary hard disk, and change those permissions while running the USB drive Ubuntu instead of the installed one. Then reboot the system.
                        – Fran Marzoa
                        Aug 19 '16 at 12:27















                      up vote
                      -2
                      down vote













                      Try this:



                      chmod 644 /usr/lib/sudo/sudoers.so


                      Usually it would be sudo chmod ... but as far as you cannot run sudo and according to the error you're getting it seems you have given permission for writing that one with other users, maybe you got lucky...



                      If it doesn't work, please, do this:



                      ls -l /usr/lib/sudo/sudoers.so


                      And cut and paste the result here.






                      share|improve this answer























                      • htooyannaingkyaw@htooyannaingkyaw-Inspiron-5558:~$ chmod 644 /usr/lib/sudo/sudoers.so chmod: changing permissions of '/usr/lib/sudo/sudoers.so': Operation not permitted htooyannaingkyaw@htooyannaingkyaw-Inspiron-5558:~$ sudo sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policy' sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner sudo: fatal error, unable to load plugins htooyannaingkyaw@htooyannaingkyaw-Inspiron-5558:~$ ls -l /usr/lib/sudo/sudoers.so -rw-rw-r-- 1 root root 316768 4 23:55 /usr/lib/sudo/sudoers.so
                        – Moe Thar
                        Aug 18 '16 at 4:01












                      • Thew only think you can do in such circumstances, AFAIK, is to boot an Ubuntu with an external USB drive, mount your primary hard disk, and change those permissions while running the USB drive Ubuntu instead of the installed one. Then reboot the system.
                        – Fran Marzoa
                        Aug 19 '16 at 12:27













                      up vote
                      -2
                      down vote










                      up vote
                      -2
                      down vote









                      Try this:



                      chmod 644 /usr/lib/sudo/sudoers.so


                      Usually it would be sudo chmod ... but as far as you cannot run sudo and according to the error you're getting it seems you have given permission for writing that one with other users, maybe you got lucky...



                      If it doesn't work, please, do this:



                      ls -l /usr/lib/sudo/sudoers.so


                      And cut and paste the result here.






                      share|improve this answer














                      Try this:



                      chmod 644 /usr/lib/sudo/sudoers.so


                      Usually it would be sudo chmod ... but as far as you cannot run sudo and according to the error you're getting it seems you have given permission for writing that one with other users, maybe you got lucky...



                      If it doesn't work, please, do this:



                      ls -l /usr/lib/sudo/sudoers.so


                      And cut and paste the result here.







                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Aug 17 '16 at 19:10

























                      answered Aug 17 '16 at 19:03









                      Fran Marzoa

                      28428




                      28428












                      • htooyannaingkyaw@htooyannaingkyaw-Inspiron-5558:~$ chmod 644 /usr/lib/sudo/sudoers.so chmod: changing permissions of '/usr/lib/sudo/sudoers.so': Operation not permitted htooyannaingkyaw@htooyannaingkyaw-Inspiron-5558:~$ sudo sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policy' sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner sudo: fatal error, unable to load plugins htooyannaingkyaw@htooyannaingkyaw-Inspiron-5558:~$ ls -l /usr/lib/sudo/sudoers.so -rw-rw-r-- 1 root root 316768 4 23:55 /usr/lib/sudo/sudoers.so
                        – Moe Thar
                        Aug 18 '16 at 4:01












                      • Thew only think you can do in such circumstances, AFAIK, is to boot an Ubuntu with an external USB drive, mount your primary hard disk, and change those permissions while running the USB drive Ubuntu instead of the installed one. Then reboot the system.
                        – Fran Marzoa
                        Aug 19 '16 at 12:27


















                      • htooyannaingkyaw@htooyannaingkyaw-Inspiron-5558:~$ chmod 644 /usr/lib/sudo/sudoers.so chmod: changing permissions of '/usr/lib/sudo/sudoers.so': Operation not permitted htooyannaingkyaw@htooyannaingkyaw-Inspiron-5558:~$ sudo sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policy' sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner sudo: fatal error, unable to load plugins htooyannaingkyaw@htooyannaingkyaw-Inspiron-5558:~$ ls -l /usr/lib/sudo/sudoers.so -rw-rw-r-- 1 root root 316768 4 23:55 /usr/lib/sudo/sudoers.so
                        – Moe Thar
                        Aug 18 '16 at 4:01












                      • Thew only think you can do in such circumstances, AFAIK, is to boot an Ubuntu with an external USB drive, mount your primary hard disk, and change those permissions while running the USB drive Ubuntu instead of the installed one. Then reboot the system.
                        – Fran Marzoa
                        Aug 19 '16 at 12:27
















                      htooyannaingkyaw@htooyannaingkyaw-Inspiron-5558:~$ chmod 644 /usr/lib/sudo/sudoers.so chmod: changing permissions of '/usr/lib/sudo/sudoers.so': Operation not permitted htooyannaingkyaw@htooyannaingkyaw-Inspiron-5558:~$ sudo sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policy' sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner sudo: fatal error, unable to load plugins htooyannaingkyaw@htooyannaingkyaw-Inspiron-5558:~$ ls -l /usr/lib/sudo/sudoers.so -rw-rw-r-- 1 root root 316768 4 23:55 /usr/lib/sudo/sudoers.so
                      – Moe Thar
                      Aug 18 '16 at 4:01






                      htooyannaingkyaw@htooyannaingkyaw-Inspiron-5558:~$ chmod 644 /usr/lib/sudo/sudoers.so chmod: changing permissions of '/usr/lib/sudo/sudoers.so': Operation not permitted htooyannaingkyaw@htooyannaingkyaw-Inspiron-5558:~$ sudo sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policy' sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner sudo: fatal error, unable to load plugins htooyannaingkyaw@htooyannaingkyaw-Inspiron-5558:~$ ls -l /usr/lib/sudo/sudoers.so -rw-rw-r-- 1 root root 316768 4 23:55 /usr/lib/sudo/sudoers.so
                      – Moe Thar
                      Aug 18 '16 at 4:01














                      Thew only think you can do in such circumstances, AFAIK, is to boot an Ubuntu with an external USB drive, mount your primary hard disk, and change those permissions while running the USB drive Ubuntu instead of the installed one. Then reboot the system.
                      – Fran Marzoa
                      Aug 19 '16 at 12:27




                      Thew only think you can do in such circumstances, AFAIK, is to boot an Ubuntu with an external USB drive, mount your primary hard disk, and change those permissions while running the USB drive Ubuntu instead of the installed one. Then reboot the system.
                      – Fran Marzoa
                      Aug 19 '16 at 12:27



                      Popular posts from this blog

                      數位音樂下載

                      格利澤436b

                      When can things happen in Etherscan, such as the picture below?