Quote:
Originally Posted by SharpyWarpy
I have a single user system and I've been running with root privileges since 2002.
|
Good for you! Except you shouldn't mistake the fact that
you do for something to advertise or even a security best practice.
...back to the main topic if you please. Malware may not be the reason to prefer Sudo over su but as John VV already said, this being the most important reason for preferring Sudo over su, 0) su requires you to share the root password which you shouldn't want on a multi-user system. Also people tend to forget 1) root is the
administrative account and not something regular users should access for tasks other than systems administration. (And the OP never posted back any reason other than ""give access on whole file system" so this might be another case of
doing the right thing the wrong way.) Finally, using Sudo for specific tasks 2) limits risks (unless you're stupid enough to allow "Cmnd_Alias rm = /bin/rm *" or equivalent badness, that is).