littlebizzy / slickstack

Lightning-fast WordPress on Nginx
https://slickstack.io
GNU General Public License v3.0
641 stars 112 forks source link

SUDO_USER and SFTP_USER validation check to avoid conflicts? #192

Closed skygunner closed 8 months ago

skygunner commented 1 year ago

Maybe the script should warn the user shall not use the same account for sudo and sftp. After the setup, sftp user does not allow to login.

jcroy commented 1 year ago

Yeah same thing happened to me the first time just breezing through the install. Then I go to ssh and was like huh, I know I saved all values correctly.

jessuppi commented 8 months ago

Thanks for your feedback @skygunner and @jcroy

This should no longer be an issue because SlickStack now generates random usernames during installation, with the exception of the sudo user which can be manually specified in the wizard.

However I've updated comments in ss-config to make things a bit more clear to new users:

## SUDO_USER = [*must be unique*] username for SSH (must be different than SFTP_USER) ##

Ref: https://github.com/littlebizzy/slickstack/commit/8e0d0d2ac090bd4d9226fad8c44a9ee7788b8f2d