Re:The sudo fraud
by advisedwang on Wednesday June 08, 2016 @04:06PM
(#11865212)
Even with unlimited, no-password required sudo, it provides a valuable addition: audit logging.
every command you run with sudo is logged, along with the user than ran it. On GCP each end user is provisioned a separate login user, and logs can be shipped to Stackdriver Logging where they cannot be modified. This makes access really verifiable.
Re:The sudo fraud
by sliken on Wednesday June 08, 2016 @06:01PM
(#11866052)
Seems silly. Why create a pain in the ass for every command, instead of enabling auditing? Of course you should log which ssh credential started the session.
Re:The sudo fraud
by tubs on Wednesday June 08, 2016 @04:47PM
(#11865531)
disclaimer: I have no idea about Linux auditing: If you 'sudo -s' (or one of its friends) does the log still record the commands done in the "root shell"?
Re:The sudo fraud
by organman91 on Wednesday June 08, 2016 @04:11PM
(#11865267)
There's one very good reason to use sudo instead of being in a root shell: audit trails. sudo logs its invocations. While you could always see who is becoming root, you'd have to look through root's shell history to see what's happening (which isn't hard to purge - one of the many reasons a remote syslog server may be called for).
Re:The sudo fraud
by sliken on Thursday June 09, 2016 @01:50AM
(#11867777)
Because sudo only works when you sudo, it's just one more thing to type/mistype. Do you really want to pay your sysadmin to sometimes run sudo and sometimes have logging? Or would you rather automate it and get 100% logging?
Re:The sudo fraud
by dllthomas on Wednesday June 08, 2016 @04:05PM
(#11865203)
> Is it really simpler for you to type sudo all the time rather than having one terminal tab open with a root shell?
Yeesh. Privileged work I do is typically interleaved with commands that do not need to be privileged. Actual security considerations aside, I would rather have the guard rails afforded me by a normal user account for things that don't have some specific reason to be privileged.
Re:The sudo fraud
by AstralStorm on Wednesday June 08, 2016 @03:38PM
(#11864977)
Technically, the main point for sudo is allowing non-root users access to a limited set of commands. That said, if you needed this, you should be using an actual MAC system.
Re:The sudo fraud
by marios on Wednesday June 08, 2016 @04:34PM
(#11865425)
I still prefer sudo to PolKit. The syntax used in the sudo configuration file is quite error prone (which is why it is recommended to use visudo, as a way to not lock yourself out due to an invalid configuration), I still prefer that to PolKit's XML .policy files. Recent version can use JavaScript instead, but as far as I am concerned, it's equally bad.
Re:The sudo fraud
by jessaustin on Wednesday June 08, 2016 @04:00PM
(#11865161)
The argument-via-AWS probably indicts sudo, but it threatens in addition to indict any sort of command line access to production hosts. Why are you fixing your server with a typed command? Why not just kill it and spin up another?
Re:The sudo fraud
by mh-cx on Wednesday June 08, 2016 @04:03PM
(#11865183)
On my severs I often use “sudo -s“ in a separate tmux window. I've changed my PS1 to give me a red prompt for root. Over the years I never had a situation where I accidentally did something stupid as root.
Re:The sudo fraud
by apeacox on Wednesday June 08, 2016 @03:52PM
(#11865100)
The only thing I agreed was: "If you manage a server, use root". sudo is a good way to let unprivileged users to execute a restricted set of commands, it's easy to learn and setup.
Re:The sudo fraud
by ilyash on Thursday June 09, 2016 @02:00AM
(#11867803)
===8<==
Update 2016-07-09 05:58 UTC
Just to be clear: Please note it’s filed under the “Rant” category. The post has some valid points but don’t take it too seriously. Use your best judgment to decide which parts of the above apply to your situation.
===8<===
every command you run with sudo is logged, along with the user than ran it. On GCP each end user is provisioned a separate login user, and logs can be shipped to Stackdriver Logging where they cannot be modified. This makes access really verifiable.
Yeesh. Privileged work I do is typically interleaved with commands that do not need to be privileged. Actual security considerations aside, I would rather have the guard rails afforded me by a normal user account for things that don't have some specific reason to be privileged.
Just to be clear: Please note it’s filed under the “Rant” category. The post has some valid points but don’t take it too seriously. Use your best judgment to decide which parts of the above apply to your situation. ===8<===