2

I have an htop config in /etc/skel/.config/htop/htoprc copied to all new user home directories. When I run htop as a regular user I see the expected settings. However under 18.04 if I ran sudo -s then htop Ubuntu would still use my regular user's htoprc from .config and work fine.

On 20.04 I notice when I sudo -s then htop it is no longer reads the user's config from their shell, it creates a new file in /root/.config/htop/htoprc with default htop settings. Is this something new about how sudo works in Focal? I thought the -s would keep utilizing the calling users shell as opposed to -i which switches to the root user's shell?

K7AAY
  • 17,202
xref
  • 141

0 Answers0