Hi Christian! This is my .bashrc right now:

root@openvas:~# head .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
export
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/nikto:/opt/arachni-v0.3-cde
alias sudo="sudo env PATH=$PATH"

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

# don't put duplicate lines in the history. See bash(1) for more options
root@openvas:~#

But it still doesn't work, actually there's a little difference, i don't
get the "nikto not found" message in my reports now... don't think that's a
coincidence! I really thought this would be a lot easier haha trust me!

El 11 de diciembre de 2011 11:11, Christian Kuersteiner
<ckuer...@gmx.ch>escribió:

> On 12/09/2011 08:53 PM, Juan José Pavlik Salles wrote:
>
>> I tried the alias solution:
>>
>> root@openvas:~/tools/pruebas# tail -3 /root/.bashrc
>> #fi
>> export
>> PATH=/usr/local/sbin:/usr/**local/bin:/usr/sbin:/usr/bin:/**
>> sbin:/bin:/usr/games:/opt/**nikto
>> alias sudo='sudo env PATH=$PATH'
>> root@openvas:~/tools/pruebas#
>>
>
> Just for the record: I have this in my .bashrc:
>
> alias sudo="sudo env PATH=$PATH:/home/user/tools/**nikto"
>
> which works like a charm for me. Note the double quotes: IIRC $PATH will
> be not evaluated in a single quote statement.
>
> Best regards,
>
> Christian
>



-- 
Pavlik Juan José
_______________________________________________
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss

Reply via email to