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 userroot@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 143.110.153.42 closed. $ ssh fred@143.110.153.42 fred@143.110.153.42: 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/suThanks for your explanations and advice.
In reply to Re^8: [OT] A New Everything ?
by Aldebaran
in thread [OT] A New Everything ?
by Aldebaran
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |