public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Kevin O'Gorman" <kogorman@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Rooted/compromised Gentoo, seeking advice
Date: Tue, 10 Aug 2010 06:03:19 -0700	[thread overview]
Message-ID: <AANLkTi=x3ttjbgf0pXcwiYKRF_dcE0OHoRKD-U+2bdr4@mail.gmail.com> (raw)
In-Reply-To: <20100810011805.GA15816@linux1>

[-- Attachment #1: Type: text/plain, Size: 1368 bytes --]

On Mon, Aug 9, 2010 at 6:18 PM, William Hubbs <williamh@gentoo.org> wrote:

> On Mon, Aug 09, 2010 at 05:30:40PM -0700, Kevin O'Gorman wrote:
> > On Mon, Aug 9, 2010 at 1:20 PM, Bill Longman <bill.longman@gmail.com>
> wrote:
> > > I actually prefer "sudo su -" -- as long as I'm giving it away!  :o)
>
> Afaik, there is no reason for "sudo su -"  It should be either
>
> su -
>
> or, if you are using sudo,
>
> sudo -i
>
> The disadvantage of "su -" is that it requires the user to know the root
> password.  But, "sudo -i" does the same thing without requiring the user
> to know the root password.
>
> You either didn't think or didn't actually try it.   "sudo su -" needs a
password, but it's the
user password.  Running su as root never needs a password.  Accordingly,
this works on
a stock Ubuntu with no root password.

"su -" requires the root password unless you're already root, and the root
password may or may not exist.

I didn't know about "sudo -i" (thanks), but when I tried "sudo -i" it
immediately asked for a password, for which
the user password was sufficient.  So it's entirely equivalent to but
slightly shorter than my version.  I'll stick with
mine because it's made of parts I already know and won't forget.

I think that if sudoers don't need to enter passwords, they're still
equivalent, but I have  not tried this.

-- 
Kevin O'Gorman, PhD

[-- Attachment #2: Type: text/html, Size: 2005 bytes --]

  parent reply	other threads:[~2010-08-10 13:04 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-09 16:25 [gentoo-user] Rooted/compromised Gentoo, seeking advice Paul Hartman
2010-08-09 16:48 ` Alan McKinnon
2010-08-09 18:48   ` Paul Hartman
2010-08-09 18:59 ` [gentoo-user] " 7v5w7go9ub0o
2010-08-09 19:08   ` Paul Hartman
2010-08-09 19:46   ` Mick
2010-08-10 13:50     ` Kyle Bader
2010-08-09 19:09 ` [gentoo-user] " Mick
2010-08-09 20:08   ` Robert Bridge
2010-08-09 20:20     ` Bill Longman
2010-08-10  0:30       ` Kevin O'Gorman
2010-08-10  1:18         ` William Hubbs
2010-08-10  6:42           ` Alan McKinnon
2010-08-10 13:03           ` Kevin O'Gorman [this message]
2010-08-10 18:50             ` Alan McKinnon
2010-08-10 19:22               ` Hazen Valliant-Saunders
2010-08-10 23:23                 ` Peter Humphrey
2010-08-11 16:55                 ` Stroller
2010-08-11 18:16                   ` Dale
2010-08-11 20:30                     ` Alan McKinnon
2010-08-11 22:11                       ` [gentoo-user] Rooted/compromised Gentoo, seeking advice - AKA passwords Bill Longman
2010-08-11 23:09                         ` Alan McKinnon
2010-08-12  4:30                           ` Bill Longman
2010-08-12 13:01                       ` [gentoo-user] Rooted/compromised Gentoo, seeking advice Stroller
2010-08-12 19:21                         ` Alan McKinnon
2010-08-12 19:43                           ` Peter Humphrey
2010-08-12 20:14                             ` Alan McKinnon
2010-08-12 12:56                     ` Stroller
2010-08-13  2:11                       ` Dale
2010-08-11 16:58               ` Stroller
2010-08-11 20:26                 ` Alan McKinnon
2010-08-09 20:25     ` Dale
2010-08-09 21:22       ` Mick
2010-08-09 22:19         ` Dale
2010-08-09 21:17     ` Philip Webb
2010-08-09 23:07   ` Paul Hartman
2010-08-10  2:14     ` Frank Steinmetzger
2010-08-10  2:24       ` Indexer
2010-08-11  1:05       ` Walter Dnes
2010-08-11  2:16         ` Dale
2010-08-11  4:36           ` Walter Dnes
2010-08-11  5:37             ` Dale
2010-08-10  2:30     ` Keith Dart
2010-08-10  3:06 ` Adam Carter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTi=x3ttjbgf0pXcwiYKRF_dcE0OHoRKD-U+2bdr4@mail.gmail.com' \
    --to=kogorman@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox