-bash: sudo: command not found in centos

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











up vote
-1
down vote

favorite
1












enter image description here



I did not set my root passwod. i can not do anything without root or sudo. how do i fix the sudo issue? i can not even copy those files from other rhel machine because permissions denied










share|improve this question









New contributor




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



















  • Please do not post images instead of text. And you can try /usr/libexec/sudo su
    – Romeo Ninov
    Oct 7 at 15:52






  • 1




    @RomeoNinov if you're going to use sudo you shouldn't need su too. It's like saying "Please can I have root? Ah, thank you. Oh, now that I'm root, please can I have root access?" - it just doesn't make sense.
    – roaima
    Oct 7 at 17:51











  • @roaima, right. But it depend what is configured for sudo. :)
    – Romeo Ninov
    Oct 7 at 17:58










  • @RomeoNinov what's your exception use case? I've yet to see one, so I'd be interested.
    – roaima
    Oct 7 at 18:27










  • @roaima, when is defined explicit list of commands
    – Romeo Ninov
    Oct 7 at 19:03














up vote
-1
down vote

favorite
1












enter image description here



I did not set my root passwod. i can not do anything without root or sudo. how do i fix the sudo issue? i can not even copy those files from other rhel machine because permissions denied










share|improve this question









New contributor




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



















  • Please do not post images instead of text. And you can try /usr/libexec/sudo su
    – Romeo Ninov
    Oct 7 at 15:52






  • 1




    @RomeoNinov if you're going to use sudo you shouldn't need su too. It's like saying "Please can I have root? Ah, thank you. Oh, now that I'm root, please can I have root access?" - it just doesn't make sense.
    – roaima
    Oct 7 at 17:51











  • @roaima, right. But it depend what is configured for sudo. :)
    – Romeo Ninov
    Oct 7 at 17:58










  • @RomeoNinov what's your exception use case? I've yet to see one, so I'd be interested.
    – roaima
    Oct 7 at 18:27










  • @roaima, when is defined explicit list of commands
    – Romeo Ninov
    Oct 7 at 19:03












up vote
-1
down vote

favorite
1









up vote
-1
down vote

favorite
1






1





enter image description here



I did not set my root passwod. i can not do anything without root or sudo. how do i fix the sudo issue? i can not even copy those files from other rhel machine because permissions denied










share|improve this question









New contributor




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











enter image description here



I did not set my root passwod. i can not do anything without root or sudo. how do i fix the sudo issue? i can not even copy those files from other rhel machine because permissions denied







rhel sudo aws command-not-found






share|improve this question









New contributor




Nitin Kumar 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 question









New contributor




Nitin Kumar 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 question




share|improve this question








edited 5 mins ago





















New contributor




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









asked Oct 7 at 15:06









Nitin Kumar

43




43




New contributor




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





New contributor





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






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











  • Please do not post images instead of text. And you can try /usr/libexec/sudo su
    – Romeo Ninov
    Oct 7 at 15:52






  • 1




    @RomeoNinov if you're going to use sudo you shouldn't need su too. It's like saying "Please can I have root? Ah, thank you. Oh, now that I'm root, please can I have root access?" - it just doesn't make sense.
    – roaima
    Oct 7 at 17:51











  • @roaima, right. But it depend what is configured for sudo. :)
    – Romeo Ninov
    Oct 7 at 17:58










  • @RomeoNinov what's your exception use case? I've yet to see one, so I'd be interested.
    – roaima
    Oct 7 at 18:27










  • @roaima, when is defined explicit list of commands
    – Romeo Ninov
    Oct 7 at 19:03
















  • Please do not post images instead of text. And you can try /usr/libexec/sudo su
    – Romeo Ninov
    Oct 7 at 15:52






  • 1




    @RomeoNinov if you're going to use sudo you shouldn't need su too. It's like saying "Please can I have root? Ah, thank you. Oh, now that I'm root, please can I have root access?" - it just doesn't make sense.
    – roaima
    Oct 7 at 17:51











  • @roaima, right. But it depend what is configured for sudo. :)
    – Romeo Ninov
    Oct 7 at 17:58










  • @RomeoNinov what's your exception use case? I've yet to see one, so I'd be interested.
    – roaima
    Oct 7 at 18:27










  • @roaima, when is defined explicit list of commands
    – Romeo Ninov
    Oct 7 at 19:03















Please do not post images instead of text. And you can try /usr/libexec/sudo su
– Romeo Ninov
Oct 7 at 15:52




Please do not post images instead of text. And you can try /usr/libexec/sudo su
– Romeo Ninov
Oct 7 at 15:52




1




1




@RomeoNinov if you're going to use sudo you shouldn't need su too. It's like saying "Please can I have root? Ah, thank you. Oh, now that I'm root, please can I have root access?" - it just doesn't make sense.
– roaima
Oct 7 at 17:51





@RomeoNinov if you're going to use sudo you shouldn't need su too. It's like saying "Please can I have root? Ah, thank you. Oh, now that I'm root, please can I have root access?" - it just doesn't make sense.
– roaima
Oct 7 at 17:51













@roaima, right. But it depend what is configured for sudo. :)
– Romeo Ninov
Oct 7 at 17:58




@roaima, right. But it depend what is configured for sudo. :)
– Romeo Ninov
Oct 7 at 17:58












@RomeoNinov what's your exception use case? I've yet to see one, so I'd be interested.
– roaima
Oct 7 at 18:27




@RomeoNinov what's your exception use case? I've yet to see one, so I'd be interested.
– roaima
Oct 7 at 18:27












@roaima, when is defined explicit list of commands
– Romeo Ninov
Oct 7 at 19:03




@roaima, when is defined explicit list of commands
– Romeo Ninov
Oct 7 at 19:03















active

oldest

votes











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
);



);






Nitin Kumar is a new contributor. Be nice, and check out our Code of Conduct.









 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f473802%2fbash-sudo-command-not-found-in-centos%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes








Nitin Kumar is a new contributor. Be nice, and check out our Code of Conduct.









 

draft saved


draft discarded


















Nitin Kumar is a new contributor. Be nice, and check out our Code of Conduct.












Nitin Kumar is a new contributor. Be nice, and check out our Code of Conduct.











Nitin Kumar is a new contributor. Be nice, and check out our Code of Conduct.













 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f473802%2fbash-sudo-command-not-found-in-centos%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