Hot Diggety! Edward Ned Harvey was rumored to have written:
> Whenever you want to become root, you run:  sudo su - 

Pardon the digression; just wanted to point out that sudo has (for the
last few years) supported sudo -i, which has almost completely negated
the need for sudo su - here.

To date, we have found exactly one exception in which sudo -i is
unsuitable: when (on a Solaris 10 machine) you need to become a role
user with a role assigned.

E.g. we have a Java glassfish user with a special role that allows it to
bind to ports < 1024 so that it can bind to ports 80 / 443. That role is
not set up if you don't do an actual login or su; sudo was insufficient.

But in all other cases here, sudo -i does the trick.

Of course, if one has older sudo, then it's pretty much sudo su - to the
rescue. ;-)

OK, back to meandering threads. :-)

-Dan
_______________________________________________
Tech mailing list
[email protected]
https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech
This list provided by the League of Professional System Administrators
 http://lopsa.org/

Reply via email to