Add newline to end of files and remove whitespace from end of lines
This doesn't do any password checking or anything. Just sets uid and gid before execvp()