I want to run “sudo rm ing /tmp/instruments_sock” in terminal. I am doing this through code using robotil jar. But I am not able to enter password. Is there any way that I run this command without asking for password in mac.!! I want to remove password ONLY for this command.
What’s more interesting is that you’re removing a file in /tmp. If I remember my Unix correctly, shouldn’t /tmp be world-writable, so anyone should be able to delete a file from this directory?