8 Nov
2022
8 Nov
'22
19:48
On 11/8/22 19:42, Simon Becherer wrote:
i never use sudo, even if google tells me that, reason is: for your example i have to use 5 times sudo, but if i once enter su i am fine. And that's also how I'm doing it on my personal desktop system.
Well, you could also do: sudo su - ;-)
but i am willing to learn, so if you could explain me why i should use sudo instead of su..... ?
It depends on the use-case: An admin maintaining a remote system for which no (known) root password was set probably has to use sudo with his personal password. (It might be possible to also use su with some specific PAM config but it's rather unusual.) And as said recent sudo versions now provide additional features like audit logging. Ciao, Michael.