@bobnoordam

Add usr/sbin to path for a local user

What do we want to archieve

Add /usr/sbin to the path of the local user

Requirements

Debian 10, Bash shell

How do we get there

The directories /sbin, /usr/sbin and /usr/local/sbin are not in a normal user’s path because they contain executables for system maintenance that need administrative priveleges. These are normally only in root’s path, since you need to be root to run them. However, for sudo users it can be very helpfull to add them.

Add the following line to the users’ ~/.bashrc file:

export PATH=$PATH:/usr/sbin