What exactly in the sudo behavior is unpredictable?

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











up vote
3
down vote

favorite
1












In the Best practices for writing Dockerfiles guide of the docker documentation, we can read:




Avoid installing or using sudo since it has unpredictable TTY and signal-forwarding behavior that can cause problems. If you absolutely need functionality similar to sudo, such as initializing the daemon as root but running it as non-root), consider using “gosu”.




My questions are:



  • What exactly in the sudo behavior is unpredictable?

  • Which problems can it cause?

  • Is it a feature or a bug of sudo?






share|improve this question


















  • 1




    Maybe this is one of reason ruderich.org/simon/notes/su-sudo-from-root-tty-hijacking
    – cuonglm
    Apr 11 at 10:40














up vote
3
down vote

favorite
1












In the Best practices for writing Dockerfiles guide of the docker documentation, we can read:




Avoid installing or using sudo since it has unpredictable TTY and signal-forwarding behavior that can cause problems. If you absolutely need functionality similar to sudo, such as initializing the daemon as root but running it as non-root), consider using “gosu”.




My questions are:



  • What exactly in the sudo behavior is unpredictable?

  • Which problems can it cause?

  • Is it a feature or a bug of sudo?






share|improve this question


















  • 1




    Maybe this is one of reason ruderich.org/simon/notes/su-sudo-from-root-tty-hijacking
    – cuonglm
    Apr 11 at 10:40












up vote
3
down vote

favorite
1









up vote
3
down vote

favorite
1






1





In the Best practices for writing Dockerfiles guide of the docker documentation, we can read:




Avoid installing or using sudo since it has unpredictable TTY and signal-forwarding behavior that can cause problems. If you absolutely need functionality similar to sudo, such as initializing the daemon as root but running it as non-root), consider using “gosu”.




My questions are:



  • What exactly in the sudo behavior is unpredictable?

  • Which problems can it cause?

  • Is it a feature or a bug of sudo?






share|improve this question














In the Best practices for writing Dockerfiles guide of the docker documentation, we can read:




Avoid installing or using sudo since it has unpredictable TTY and signal-forwarding behavior that can cause problems. If you absolutely need functionality similar to sudo, such as initializing the daemon as root but running it as non-root), consider using “gosu”.




My questions are:



  • What exactly in the sudo behavior is unpredictable?

  • Which problems can it cause?

  • Is it a feature or a bug of sudo?








share|improve this question













share|improve this question




share|improve this question








edited Apr 11 at 10:12

























asked Apr 11 at 8:35









Ortomala Lokni

2,07511240




2,07511240







  • 1




    Maybe this is one of reason ruderich.org/simon/notes/su-sudo-from-root-tty-hijacking
    – cuonglm
    Apr 11 at 10:40












  • 1




    Maybe this is one of reason ruderich.org/simon/notes/su-sudo-from-root-tty-hijacking
    – cuonglm
    Apr 11 at 10:40







1




1




Maybe this is one of reason ruderich.org/simon/notes/su-sudo-from-root-tty-hijacking
– cuonglm
Apr 11 at 10:40




Maybe this is one of reason ruderich.org/simon/notes/su-sudo-from-root-tty-hijacking
– cuonglm
Apr 11 at 10:40















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



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f436949%2fwhat-exactly-in-the-sudo-behavior-is-unpredictable%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f436949%2fwhat-exactly-in-the-sudo-behavior-is-unpredictable%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