Sudo Problem (File permissions)

Angela Stempfel angela.stempfel at 2wire.ch
Sun May 18 12:08:24 EDT 2003


Hi

>
>sudo nmap -sP -n 192.168.1.0/24 -oG - > \
>    /home/hippie/projektarbeit/java/activeHosts.txt
>

this is working if i execute nmap in a shell but not if i call the nmap 
command from my java program :(

>
>Alternately you could just have your java program create
>/home/hippie/projektarbeit/java/activeHosts.txt if it
>does not exist before running sudo.
>
it seems like this is the only possibility....

angela



More information about the sudo-users mailing list