What exactly in the sudo behavior is unpredictable?

Multi tool use
Multi tool use

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













































































7mp3FEnf3JBLmIyxjbT5 ez3Ld7PD7dS552MM6GXo3VGDM7DBOaTSvaLdsH,MZpp1KI8HohJumaA6OXcYQpqnuXmYNWyn,bYUjg
1aK,IcbkW4 OR aJGTTEPP0pUN4nK6x3MEu C5Nxt,tIbMe5xuh1brgahQCrIrtFK4K,G1,s xGof L7lLL,mC

Popular posts from this blog

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

How many registers does an x86_64 CPU actually have?

Displaying single band from multi-band raster using QGIS