I'm using Laravel's Envoy library for deployment. When I get to the end of deployment, I need to change a bunch of files' ownership; in order to do this, I need to switch to the root user, because chown
and chmod
don't work as an unprivileged user.
How do I get Envoy to run a specific server using a tty so that sudo chown ...
will work?