I've been advised by AWS documentation not to access the server as root but create a new user, and do so without a password using this flag:
--disabled-password
I now need to run a sudo command to install nginx.
How can I run a sudo command, it keeps asking for a password, for which none is set. Every time I need to use a sudo command, do I need to log in as the root user?
If I allow the new user account to have sudo access - does this not remove the entire point of having a separate account from the root for security reasons?