Issue
When you log in to a Debian 12-based host as a generic user (non-root) and then obtain superuser permissions with su
, you may encounter this error:
bash: sacli: command not found
This can also occur when running the Access Server installation script:
/dev/fd/63: line 178: sacli: command not found
Cause
This issue is due to how Debian 12 manages the $PATH
environment variable.
- Non-root users on Debian 12 don't have
/usr/sbin/
in their$PATH
. - The
sacli
binary is symlinked in/usr/sbin/
. - Using
su
without a dash (-
) regains the original user's$PATH
, which can lead to this error.
Solution
To avoid this issue, use either of the following methods:
- Recommended: Use
sudo su -
to become root. This updates the$PATH
to match the root user's defaults, including/usr/sbin/
. - Alternative: Use
su -
instead ofsu
(note the dash). This also loads the root user’s environment and ensures the correct$PATH
.
If you continue to experience issues or have further questions, please submit a support request here.
Comments
0 comments
Article is closed for comments.