At step 6, instead of passwd
, can you use passwd yourusername
? Also, for changing group membership, I use gpasswd
instead of usermod
:
gpasswd -a $USER input
This will add logged in user to the input
group. Argument after the -a
option specifies the username to be added to the group at the last argument.