Viony Veronica
Viony Veronica

Reputation: 183

Laravel Forge Cannot run sudo command

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 ?

Upvotes: 5

Views: 10748

Answers (2)

Henry
Henry

Reputation: 7891

I'm using Amazon lightsail with forge.

I have a pem file provided by lightsail that allows access to the ubuntu user which has sudo without a password.

You can ssh in as ubuntu@<ip address> if you have the pem file.

ssh -i ~/.ssh/xxxxxxxxxxxx.pem [email protected]

Upvotes: 0

Ohgodwhy
Ohgodwhy

Reputation: 50798

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

Upvotes: 11

Related Questions