>That can be done by running the program with sudo. >Is there any other way? sudo is the best secured and controled way. > Can anybody write to /tmp? /tmp available for all users for all actions I suggest you to use /tmp/<your app name> for IPC communication.