Running any sudo command produces strange output












1















Looks that some script executes every time I run sudo command on my Ubuntu:



sudo apt update
mmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
Unable to stop the stream.: Bad file descriptor
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
[sudo] password for username:
Hit:1 http://ua.archive.ubuntu.com/ubuntu bionic InRelease
...


It doesn't depend on command after sudo, same for sudo apt or sudo sublime. And shows no errors when auth is not required. So looks that it's something about authentication.



Is there any specific script been run? Any log files to check?



OS: Ubuntu 18.04.1 LTS x86_64



Kernel: 4.15.0-43-generic



Shell: bash 4.4.19



sudo is not aliased










share|improve this question




















  • 1





    Is 💋 part of the command? Why is it there?

    – DK Bose
    Dec 28 '18 at 13:06











  • It's just CLI prompt. Command is starting with sudo. Will edit the post.

    – Jeka Kiselyov
    Dec 28 '18 at 13:10






  • 1





    What is the output of which mmap munmap? On my system, I just get back the terminal prompt. Have you searched the internet for mmap: Invalid argument or munmap: Invalid argument?

    – DK Bose
    Dec 28 '18 at 13:42






  • 1





    has anyone had access to your computer? I was playing with a rubber ducky payload that aliases sudo with a command that ncats the entered sudo password off to another computer... github.com/hak5darren/USB-Rubber-Ducky/wiki/…... do you see anything suspicous in .bashrc or .bash_profile???

    – Joshua Besneatte
    Dec 28 '18 at 15:21






  • 1





    does the sudo authentication work? have you tried to sudo apt install --reinstall sudo ?

    – Joshua Besneatte
    Dec 29 '18 at 0:41


















1















Looks that some script executes every time I run sudo command on my Ubuntu:



sudo apt update
mmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
Unable to stop the stream.: Bad file descriptor
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
[sudo] password for username:
Hit:1 http://ua.archive.ubuntu.com/ubuntu bionic InRelease
...


It doesn't depend on command after sudo, same for sudo apt or sudo sublime. And shows no errors when auth is not required. So looks that it's something about authentication.



Is there any specific script been run? Any log files to check?



OS: Ubuntu 18.04.1 LTS x86_64



Kernel: 4.15.0-43-generic



Shell: bash 4.4.19



sudo is not aliased










share|improve this question




















  • 1





    Is 💋 part of the command? Why is it there?

    – DK Bose
    Dec 28 '18 at 13:06











  • It's just CLI prompt. Command is starting with sudo. Will edit the post.

    – Jeka Kiselyov
    Dec 28 '18 at 13:10






  • 1





    What is the output of which mmap munmap? On my system, I just get back the terminal prompt. Have you searched the internet for mmap: Invalid argument or munmap: Invalid argument?

    – DK Bose
    Dec 28 '18 at 13:42






  • 1





    has anyone had access to your computer? I was playing with a rubber ducky payload that aliases sudo with a command that ncats the entered sudo password off to another computer... github.com/hak5darren/USB-Rubber-Ducky/wiki/…... do you see anything suspicous in .bashrc or .bash_profile???

    – Joshua Besneatte
    Dec 28 '18 at 15:21






  • 1





    does the sudo authentication work? have you tried to sudo apt install --reinstall sudo ?

    – Joshua Besneatte
    Dec 29 '18 at 0:41
















1












1








1








Looks that some script executes every time I run sudo command on my Ubuntu:



sudo apt update
mmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
Unable to stop the stream.: Bad file descriptor
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
[sudo] password for username:
Hit:1 http://ua.archive.ubuntu.com/ubuntu bionic InRelease
...


It doesn't depend on command after sudo, same for sudo apt or sudo sublime. And shows no errors when auth is not required. So looks that it's something about authentication.



Is there any specific script been run? Any log files to check?



OS: Ubuntu 18.04.1 LTS x86_64



Kernel: 4.15.0-43-generic



Shell: bash 4.4.19



sudo is not aliased










share|improve this question
















Looks that some script executes every time I run sudo command on my Ubuntu:



sudo apt update
mmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
Unable to stop the stream.: Bad file descriptor
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
[sudo] password for username:
Hit:1 http://ua.archive.ubuntu.com/ubuntu bionic InRelease
...


It doesn't depend on command after sudo, same for sudo apt or sudo sublime. And shows no errors when auth is not required. So looks that it's something about authentication.



Is there any specific script been run? Any log files to check?



OS: Ubuntu 18.04.1 LTS x86_64



Kernel: 4.15.0-43-generic



Shell: bash 4.4.19



sudo is not aliased







bash sudo authentication






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 28 '18 at 13:10







Jeka Kiselyov

















asked Dec 28 '18 at 12:59









Jeka KiselyovJeka Kiselyov

465




465








  • 1





    Is 💋 part of the command? Why is it there?

    – DK Bose
    Dec 28 '18 at 13:06











  • It's just CLI prompt. Command is starting with sudo. Will edit the post.

    – Jeka Kiselyov
    Dec 28 '18 at 13:10






  • 1





    What is the output of which mmap munmap? On my system, I just get back the terminal prompt. Have you searched the internet for mmap: Invalid argument or munmap: Invalid argument?

    – DK Bose
    Dec 28 '18 at 13:42






  • 1





    has anyone had access to your computer? I was playing with a rubber ducky payload that aliases sudo with a command that ncats the entered sudo password off to another computer... github.com/hak5darren/USB-Rubber-Ducky/wiki/…... do you see anything suspicous in .bashrc or .bash_profile???

    – Joshua Besneatte
    Dec 28 '18 at 15:21






  • 1





    does the sudo authentication work? have you tried to sudo apt install --reinstall sudo ?

    – Joshua Besneatte
    Dec 29 '18 at 0:41
















  • 1





    Is 💋 part of the command? Why is it there?

    – DK Bose
    Dec 28 '18 at 13:06











  • It's just CLI prompt. Command is starting with sudo. Will edit the post.

    – Jeka Kiselyov
    Dec 28 '18 at 13:10






  • 1





    What is the output of which mmap munmap? On my system, I just get back the terminal prompt. Have you searched the internet for mmap: Invalid argument or munmap: Invalid argument?

    – DK Bose
    Dec 28 '18 at 13:42






  • 1





    has anyone had access to your computer? I was playing with a rubber ducky payload that aliases sudo with a command that ncats the entered sudo password off to another computer... github.com/hak5darren/USB-Rubber-Ducky/wiki/…... do you see anything suspicous in .bashrc or .bash_profile???

    – Joshua Besneatte
    Dec 28 '18 at 15:21






  • 1





    does the sudo authentication work? have you tried to sudo apt install --reinstall sudo ?

    – Joshua Besneatte
    Dec 29 '18 at 0:41










1




1





Is 💋 part of the command? Why is it there?

– DK Bose
Dec 28 '18 at 13:06





Is 💋 part of the command? Why is it there?

– DK Bose
Dec 28 '18 at 13:06













It's just CLI prompt. Command is starting with sudo. Will edit the post.

– Jeka Kiselyov
Dec 28 '18 at 13:10





It's just CLI prompt. Command is starting with sudo. Will edit the post.

– Jeka Kiselyov
Dec 28 '18 at 13:10




1




1





What is the output of which mmap munmap? On my system, I just get back the terminal prompt. Have you searched the internet for mmap: Invalid argument or munmap: Invalid argument?

– DK Bose
Dec 28 '18 at 13:42





What is the output of which mmap munmap? On my system, I just get back the terminal prompt. Have you searched the internet for mmap: Invalid argument or munmap: Invalid argument?

– DK Bose
Dec 28 '18 at 13:42




1




1





has anyone had access to your computer? I was playing with a rubber ducky payload that aliases sudo with a command that ncats the entered sudo password off to another computer... github.com/hak5darren/USB-Rubber-Ducky/wiki/…... do you see anything suspicous in .bashrc or .bash_profile???

– Joshua Besneatte
Dec 28 '18 at 15:21





has anyone had access to your computer? I was playing with a rubber ducky payload that aliases sudo with a command that ncats the entered sudo password off to another computer... github.com/hak5darren/USB-Rubber-Ducky/wiki/…... do you see anything suspicous in .bashrc or .bash_profile???

– Joshua Besneatte
Dec 28 '18 at 15:21




1




1





does the sudo authentication work? have you tried to sudo apt install --reinstall sudo ?

– Joshua Besneatte
Dec 29 '18 at 0:41







does the sudo authentication work? have you tried to sudo apt install --reinstall sudo ?

– Joshua Besneatte
Dec 29 '18 at 0:41












0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1105109%2frunning-any-sudo-command-produces-strange-output%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1105109%2frunning-any-sudo-command-produces-strange-output%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents