This is a question that was brought up to me the other day and I was wondering what you think of it.
How safe is it to use Sudo? Being as it's linux, I know a lot of people automatically assume its safe, but since this grants a lot of access that only the root would normally have, wouldn't this tool make it a whole lot easier to compromise root and thus the entire system?
Using the windows mentality, I would think a lot of new users from Windows would be just using this as an end all to install anything they want, which would make it a whole lot easier to install malware on a linux box.
So basically in a nutshell, if someone compromises the regular user account, wouldn't the sudo command put them very close to being able to compromise root?
Since Linux user accounts are "Least Privileged" by default, any attempts to install programs to root will require user interaction and authorization to install.
Accounts with SUDO configured do not required passwords to be entered when SUDO is run.
I do not configure SUDO for any accounts on any Linux boxes I configure. This forces the user to SU and enter the root password; since only the SysAdmin will know the root pwd, no other users will be able to temporarily elevate to root privileges to install anything. This way if the user tries to run a script that attempts to SUDO, it will fail, as SUDO isn't configured for that account.
Just an added precaution I take, as I trust no one who uses a computer.
When running Linux distros that do not have root enabled by default, SUDO is the only other way to elevate privileges to install additional software, unless the SysAdmin enables root.