adduser, can't login via SSH, now what?
Okay, I've dealt with Linux on a basic level for years now, but I've never needed to manage a server until now. I've made the leap to a dedicated box from a reseller account and need to secure the server.
My first step is to create a user that is in the wheel group so that I can sudo when I need root access. I have no idea what are the proper steps, so here is what I've tried:
1. Created user:
adduser <username>
2. Needed to add a password:
usermod -p <password> <username>
3. Added new user to the wheel group:
vi /etc/group
-> Changed from:
wheel:x:10:root
to:
wheel:x:10:root,<username>
I checked home and see there is a folder for the username, but when I try to login via SSH the username and password do not work.
What am I missing?
Thanks.
|