▲ 409 ▼ Life finds a way (lemmy.ml) submitted 5 months ago by cm0002@libretechni.ca to c/programmer_humor@programming.dev 45 comments fedilink hide all child comments
[–] cornshark@lemmy.world 52 points 5 months ago (7 children) Sudo makes you enter your password and docker doesn't? permalink fedilink source parent hideshow 7 child comments replies: [–] Zikeji@programming.dev 26 points 5 months ago Or don't give your user docker and use sudo to use the docker CLI to get the same effect. Hell, you could even alias docker as sudo docker to get the same feel. permalink fedilink source parent [–] locuester@lemmy.zip 43 points 5 months ago (1 child) Docker does by default - it only works if you use sudo. But the docs tell you to add yourself to the docker group (which requires sudo to do). Then running docker doesn’t require sudo anymore. permalink fedilink source parent hideshow 1 child comment replies: [–] squaresinger@lemmy.world 51 points 5 months ago Yeah, that's a terrible decision in the docs. Don't ever add a path where anything on the shell can execute user-modifyable code as root. As soon as you do that, you lose any protection that comes from separating root users and non-root users. Because now any malicious program can just use docker to elevate its code to root. permalink fedilink source parent [–] tabular@lemmy.world 9 points 5 months ago (2 children) Sudo can/usually does ask for password - but if you're feeling lucky you can use sudo without a password. (Currently doing that after repeatedly failing to install an OS and have not yet felt compelled to change it back). permalink fedilink source parent hideshow 2 child comments replies: [–] mkwt@lemmy.world 1 point 5 months ago (1 child) Most systems I use will keep a sudo authentication session open for several minutes, so you don't have to repeatedly enter your password on every single command. permalink fedilink source parent hideshow 1 child comment replies: [–] tabular@lemmy.world 1 point 5 months ago It's a great feature - a necessary feature even. Tired using doas Linux port and that feature isn't supported - it was depressing. permalink fedilink source parent [–] hperrin@lemmy.ca 5 points 5 months ago Only if you tell it to. permalink fedilink source parent
[–] Zikeji@programming.dev 26 points 5 months ago Or don't give your user docker and use sudo to use the docker CLI to get the same effect. Hell, you could even alias docker as sudo docker to get the same feel. permalink fedilink source parent
[–] locuester@lemmy.zip 43 points 5 months ago (1 child) Docker does by default - it only works if you use sudo. But the docs tell you to add yourself to the docker group (which requires sudo to do). Then running docker doesn’t require sudo anymore. permalink fedilink source parent hideshow 1 child comment replies: [–] squaresinger@lemmy.world 51 points 5 months ago Yeah, that's a terrible decision in the docs. Don't ever add a path where anything on the shell can execute user-modifyable code as root. As soon as you do that, you lose any protection that comes from separating root users and non-root users. Because now any malicious program can just use docker to elevate its code to root. permalink fedilink source parent
[–] squaresinger@lemmy.world 51 points 5 months ago Yeah, that's a terrible decision in the docs. Don't ever add a path where anything on the shell can execute user-modifyable code as root. As soon as you do that, you lose any protection that comes from separating root users and non-root users. Because now any malicious program can just use docker to elevate its code to root. permalink fedilink source parent
[–] tabular@lemmy.world 9 points 5 months ago (2 children) Sudo can/usually does ask for password - but if you're feeling lucky you can use sudo without a password. (Currently doing that after repeatedly failing to install an OS and have not yet felt compelled to change it back). permalink fedilink source parent hideshow 2 child comments replies: [–] mkwt@lemmy.world 1 point 5 months ago (1 child) Most systems I use will keep a sudo authentication session open for several minutes, so you don't have to repeatedly enter your password on every single command. permalink fedilink source parent hideshow 1 child comment replies: [–] tabular@lemmy.world 1 point 5 months ago It's a great feature - a necessary feature even. Tired using doas Linux port and that feature isn't supported - it was depressing. permalink fedilink source parent
[–] mkwt@lemmy.world 1 point 5 months ago (1 child) Most systems I use will keep a sudo authentication session open for several minutes, so you don't have to repeatedly enter your password on every single command. permalink fedilink source parent hideshow 1 child comment replies: [–] tabular@lemmy.world 1 point 5 months ago It's a great feature - a necessary feature even. Tired using doas Linux port and that feature isn't supported - it was depressing. permalink fedilink source parent
[–] tabular@lemmy.world 1 point 5 months ago It's a great feature - a necessary feature even. Tired using doas Linux port and that feature isn't supported - it was depressing. permalink fedilink source parent