Su is not always the best tool to grand permission to users, so I installed sudo on my Arch Linux system. However when I tried to issue visudo, I got the following error:
bash-3.2# visudoThe reason of this is quite simple - /usr/sbin is not in the PATH environment variable by default, and you can locate the visudo command by:
bash: visudo: command not found
bash-3.2# whereis visudoso just use the full path to visudo:
visudo: /usr/sbin/visudo /usr/share/man/man8/visudo.8.gz
bash-3.2# /usr/sbin/visudothen everything goes right.
No comments:
Post a Comment