By default, the “adduser” command is located in the “/usr/sbin” folder of your system.
$ ls -l /usr/sbin/ | grep adduser -rwxr-xr-x 1 root root 37322 Dec 5 2017 adduser
To solve this issue, you need to add “/usr/sbin” to your $PATH.
Edit your .bashrc file and add the following line
$ sudo nano ~/.bashrc export PATH="$PATH:/usr/sbin/"
Source your bashrc file and try to run the adduser command again.
$ source ~/.bashrc $ sudo adduser john Adding user `john' ... Adding new group `john' (1001) ... Adding new user `john' (1001) with group `john' ... Creating home directory `/home/john' ... Copying files from `/etc/skel' ...
You solved the “adduser : command not found” problem on Debian 10.