Heads up! To view this whole video, sign in with your Courses Plus account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed App Deployment Accounts!
You have completed App Deployment Accounts!
We've been using the "sudo" command from our developer account. But our deployment account doesn't have "sudo" access, which means it can't perform administrative actions on the system. Let's fix that now.
While logged into the server as your developer account (not the deployment account):
-
sudo visudo -f /etc/sudoers.d/deploy
(no dots in file name, or it will be ignored) - Add this text:
deploy ALL=(ALL:ALL) ALL
- This means that the
deploy
user can run commands on any machine you copy this file to, it can run them while pretending to be any other user, from any user group, and it can run any command.
- This means that the
Don't understand these details? Don't worry about them. It just means that the deploy
user has full control of the system through sudo
.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up