Code and outputs
apt-cache search adduser
adduser - add and remove users and groups
$ sudo apt-get install adduser
Reading package lists... Done
Building dependency tree
Reading state information... Done
adduser is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ add
add-apt-repository addpart addr2line
$ which adduser
$ echo $PATH
/home/masi/bin:/sbin/:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
which I do not understand since it says that I have adduser
but it is not in the PATH although I have most bin
folders.
There must be other location where adduser
is added in Debian 8.1.
Where is adduser
installed in Debian 8.1?
/usr/sbin/adduser
.PATH="$HOME/bin:/sbin/:/usr/sbin/:$PATH"
in my $HOME/.bashrc./sbin
and/usr/sbin
for root, and without them for normal users. What did you expect?/sbin
and/usr/sbin
to your PATH. The secure path is set in/etc/sudoers
.sudo -i
and searchadd[tab]
.