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

Re: setting path for root after "sudo su" and "sudo" for Debian Bullseye (11)





On Thu, May 19, 2022, 4:14 AM 황병희 <soyeomul@doraji.xyz> wrote:
Tom Browder <tom.browder@gmail.com> writes:

> I need a special path setting for root after both "sudo" and "sudo
> su." (...)

Just you try like as "sudo su -". Sometimes i use it that way.

Sincerely, Linux fan Byung-Hee

--
^고맙습니다 _白衣從軍_ 감사합니다_^))//

When I need Root on a Desktop, I bring up a shell, enter "su -" and give it the Root Password. 

Note, Debian (at least in the Expert Installation Mode) lets me set a Root Password.   Ubuntu doesn't, so one of my early actions after the Install is to enter "sudo su -" and, on the resulting Root Shell, type "passwd root".

On a Virtual Terminal, I simply login as Root on one terminal, and on the next one, sign on as my "Normal User" (and then do most of my work there).

I know there have been Discussions here about sudo vs "su -". They both work, but both can get you in trouble (but possibly in different ways).

Kenneth Parker 

Kenneth Parker 

Reply to: