write with sudo permissions hack