Re: Sudo
On Thu 24 Mar 2016 at 09:42:51 (-0400), Stefan Monnier wrote:
> > Or simply "sudo bash --login"
> > I haven't needed to use root login for years,
>
> In which sense is this not a "root login"?
You don't log in. You don't get the shell specified in /etc/passwd.
You're just running bash as a login shell, ie it starts up differently.
> Or would "su -" not be considered a root login either?
No.
> What about "ssh root@localhost"?
Yes. Type w and you'll see the time at which you just logged in.
Try all these methods as an ordinary user. Then touch /etc/nologin
and try them again. Shells work, logins don't.
Cheers,
David.
Reply to:
- Follow-Ups:
- Re: Sudo
- From: Stefan Monnier <monnier@iro.umontreal.ca>
- References:
- Re: Sudo
- From: Michael Milliman <michael.e.milliman@gmail.com>
- Re: Sudo
- From: Thomas D Dial <tdial@cox.net>
- Re: Sudo
- From: Stefan Monnier <monnier@iro.umontreal.ca>