Sudo Problem (File permissions)

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


>sudo nmap -sP -n -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....


More information about the sudo-users mailing list