Stephen Liu wrote:
Hi Paul,# setenforce 0 bash: setenforce: command not found The above was the exact error.That's a result of using "su" rather than "su -" and hence notgetting root's PATH set up.Please advise how to fix it. IIRC fdisk also can't work on running "su". Must run "su -" to get it work.
The simple fix is to get into the habit of suing "su -" rather than "su". If you really must use just "su", you'll need to do something like:
PATH=/sbin:/usr/sbin:$PATH after using "su". Paul.