On Fri, Dec 01, 2023 at 07:46:28PM +0000, Andy Smith wrote: > My first guess is that you may have done "su" which results in you > not having /sbin in your path. So you need to execute it as > /sbin/fdisk, or "su -", or become root by some other means.
At this point, we no longer need to guess. It's immediately clear. Using "su -" is an acceptable solution, though not my preferred one if this is your own system, as opposed to one where you are a "guest admin". I'd rather fix the problem permanently, by putting appropriate content into the /etc/default/su file. unicorn:~$ cat /etc/default/su ALWAYS_SET_PATH yes unicorn:~$ su Password: root@unicorn:/home/greg# declare -p PATH declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" root@unicorn:/home/greg#