use the sudo commands instead of the shell commands with sudo.