Bad bad idea! Always have password on sudo! It is the same user that runs the webserver, so if you make any sort of unsafe code, a hacker can do ANYTHING on you server. Create users, delete files, etc. There is password on sudo for a reason
Laravel Forge sudo user asking for password
I'm new to Laravel Forge so I'm still wrapping my head around how it works. I've connected to my Digital Ocean account and provisioned a new server which is up and running. I connected my Github account and I successfully pulled my files to the server. So, all is good on that front.
However, there's one nagging issue. When Laravel Forge sets up the server, they issue a sudo user of "forge" and a password. I can SSH into the server using ssh [email protected] just fine. I do not need to enter a password to do this because I've put my id_rsa.pub into the Forge CP and into the Digital Ocean CP. But, when I try to sudo anything (eg. sudo rm), I'm prompted for my password. I'd like to avoid the step of having to provide my password when using sudo.
Please or to participate in this conversation.