Laravel Forge Cannot run sudo command

Viony Veronica picture Viony Veronica · Jun 18, 2016 · Viewed 7.6k times · Source

I'm using "Laravel Forge" and want to run sudo to create swap file, but it's failed because i cannot run sudo command from forge user. how to have root access or run sudo comment ?

Answer

Ohgodwhy picture Ohgodwhy · Jun 18, 2016

When you provisioned your forge server an email was sent to you with the SUDO password. You can su or sudo using this password.