[RndTbl] Finally, a use for "sudo su -" !

Adam Thompson athompson at avant.ca
Tue Jun 23 16:37:25 CDT 2015

I finally found a legitimate use for "sudo su -", which is otherwise a
redundant construct (juse use "sudo -i" instead).


Sudo cleans the environment, but fails to re-read /etc/environment.
Su(8) does, when invoked with "-", read /etc/environment.

AFAIK, this is only a problem on Ubuntu (and possibly Debian etc., I
haven't checked).

  [image: Avant logo] *Adam Thompson*
Senior Systems Administrator
*voice:* 204.789.9596 x24 | *email:* athompson at avant.ca | *web:* avant.ca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.muug.mb.ca/pipermail/roundtable/attachments/20150623/f6452758/attachment.html>

More information about the Roundtable mailing list