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 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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^9: [OT] A New Everything ?
by marto (Cardinal) on Sep 22, 2020 at 06:45 UTC | |
Re^9: [OT] A New Everything ?
by afoken (Chancellor) on Sep 22, 2020 at 19:07 UTC | |
by marto (Cardinal) on Sep 23, 2020 at 10:11 UTC | |
by afoken (Chancellor) on Sep 25, 2020 at 06:30 UTC | |
by Aldebaran (Curate) on Sep 25, 2020 at 07:07 UTC | |
by hippo (Bishop) on Sep 25, 2020 at 08:45 UTC | |
| |
by marto (Cardinal) on Sep 25, 2020 at 11:17 UTC | |
| |
Re^9: [OT] A New Everything ?
by Anonymous Monk on Sep 23, 2020 at 09:58 UTC |
In Section
Seekers of Perl Wisdom