in reply to Interactive SSH and sudo -s

Why do you want to do this, other than the annoyance of typing sudo over and over?

I know it can be tiresome typing sudo over and over, but avoiding the effort of typing it basically defeats half the purpose of using sudo. One half of the purpose of sudo is to allow users selective access to root-only (or other privileged user) commands. The other half of sudo is to make you conscious each time you are doing something that is potentially risky.

Best, beth

Replies are listed 'Best First'.
Re^2: Interactive SSH and sudo -s
by cstrong (Beadle) on Feb 24, 2009 at 15:04 UTC
    Beth - as you said, this is simply to stop repeatedly typing in sudo each time I login. I know its not the best, but for the last seven years I've had root access and now having to use sudo is a real pain and I just want to make life as easy as possible!
      Why don't you just log in as root, then? Running sudo -s will effectively do that. And if the reason is that your ssh is configured to disallow root logins (and many are for security reasons), is doing it via sudo really a good idea? What makes it better doing it via sudo?

      I'd like to hear more on your thoughts about this.

      Best, beth