Hi,
I faced similar issue
I was trying to use usermod command to add my user to sudo group and I was
getting error message that the usermod command was not found.
I checked the PATH env variable and it looks it is the same as for standard
users
root@kali-openbox:/home/kowalczy# echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

in /etc/profile I found

if [ "`id -u`" -eq 0 ]; then
  PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
  PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
fi


my root user id is 0 .
IMHO the if statement should be fixed to

*if [ `id -u` -eq 0 ]; then*

Pozdrawiam serdecznie
Jacek Kowalczyk

http://www.linkedin.com/pub/4/64/480
http://www.goldenline.pl/jacek-kowalczyk6
http://jacekkowalczyk.wordpress.com/
http://fotografia-pierwszekroki.blogspot.com/

Reply via email to