in reply to Re^7: [OT] A New Everything ?
in thread [OT] A New Everything ?

I've been through this a couple times now, and I've managed to lock myself out twice. So, now I'm trying to follow instructions carefully.

create an unprivileged user
root@third:~# useradd fred root@third:~# passwd fred New password: Retype new password: passwd: password updated successfully root@third:~# usermod -aG sudo fred root@third:~# groups fred

I thought the point here was that I was to log out as root and back in as fred. I get nothing that way:

root@third:~# exit logout Connection to closed. $ ssh fred@ fred@ Permission denied (publickey). $

After the useradd, I go in, and there's nothing in home. That doesn't make sense to me.

Oh, and by the way: sudo su is still around in far too many HOWTOs. You do not need su at all, uninstall it. Use sudo -i if you insist on getting an interactive root shell. Use sudo -e somefile to edit a file as root.

Okay, copy that.

root@third:/# which su /usr/bin/su

Is that as easy as

rm /usr/bin/su

Thanks for your explanations and advice.