Changed to avoid using setuidgid