help with sudo and path

SwampYankee SwampYankee at optonline.net
Tue Aug 12 17:37:41 UTC 2008


Hi,
I am trying to run nethack wizard mode but when I do so using sudo the 
path can not be found. So, if I type nethack, no problem However, I 
enter sudo -s, provide the password and type 'nethack' I get this:

Command 'nethack' is available in '/usr/games/nethack'
The command could not be located because '/usr/games' is not included in 
the PATH environment variable.

What can I do to run this as sudo?
thanks




More information about the ubuntu-users mailing list