as simple user, first I pass root with command :
su
I am now root on Debian 10 buster.
When I hit ufw status
, I have 'command not found'. But it works with sudo ufw status
When I use su -
, the command is ok.
Can someone explain me this problem / this difference between su
and su -
and why the command is not found even if I am root in the first case ?