[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PATH nfg after su



On Sat, Oct 24, 2020 at 07:12:20PM +0000, Andrew M.A. Cater wrote:

[...]

> sudo su - has one advantage: it gives you root's path and root's home directory - so you end up in /home/root or wherever root's
> home is set to. Otherwise, you end up, potentially, in the calling user's home directory.

Not with sudo -i. This one runs a login shell for the user
you "sudo" to and puts you in its home directory. More or
less what "su -" does.

Cheers
 - t

Attachment: signature.asc
Description: Digital signature


Reply to: