help with sudo and path

Mark Haney mhaney at ercbroadband.org
Tue Aug 12 17:50:04 UTC 2008


SwampYankee wrote:
> 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
> 

The down and dirty way?  Add it to the PATH.  Or, use the full path 
name: sudo -s <password> /usr/games/nethack




-- 
Libenter homines id quod volunt credunt -- Caius Julius Caesar


Mark Haney
Sr. Systems Administrator
ERC Broadband
(828) 350-2415

Call (866) ERC-7110 for after hours support




More information about the ubuntu-users mailing list