On Tue, 2016-02-09 at 14:15 -0800, Joe Zeff wrote:
On 02/09/2016 01:10 PM, Patrick O'Callaghan wrote:
> SUdo is useful even when you do have root. I use it all the time
> because I don't like actually logging in as root if I can avoid it.
> I
> know you can use "su -c bla bla" but sudo is quicker and easier to
> remember.
I, OTOH, find su -c quite satisfactory, TYVM. The only reason I
have
sudo installed is that there are some install scripts that use
it. Of
course, back when I first started using Linux at home, almost 20
years
ago, RedHat didn't come with sudo so I never got in the habit of
using
it. I knew about it because I had to telnet to various Unix/Linux
servers (all inside the corporate firewall) at work, and worked with
shell scripts that used sudo, but that's it.
I'm surprised that RH didn't come with sudo. I was using it on Solaris
long before Linux was even a thing.
And, as far as security goes, all you need to do is disable Telnet
and
configure ssh to disallow direct root login.
Of course, SOP. I also use fail2ban so in fact the baddies don't even
get as far as the SSH login.
That way, even if somebody
manages to crack your password and get shell access via ssh, they
can't
use sudo to do any major damage. (I'm never in wheel, and my
username
isn't in /etc/sudoers, just to be safe.) Paranoid? Not really,
it's
just that I see no reason to have sudo set up if I'm not using it.
My password is long, but I do find sudo useful. To each his own.
poc