in reply to Re^8: [OT] A New Everything ?
in thread [OT] A New Everything ?
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). $
It seems fred lacks his public key in the file ~fred/.ssh/authorized_keys. You need to upload that before blocking password logins, e.g. using ssh-copy-id, add add it to the autorhized_keys file. Once that is set up, you should be able to log in using the public key.
Is that as easy as
rm /usr/bin/su
Yes and no. It does remove su, but you are supposed to uninstall the entire package, e.g. using apt-get remove package-name on Debian-based distributions. The package name depends on the distribution. On Ubuntu, it's in util-linux, and you really don't want to uninstall that package. Just leave su as is. It won't hurt for now.
After the useradd, I go in, and there's nothing in home. That doesn't make sense to me.
Home is supposed to be empty, or a copy of /etc/skel/. How should the operating system know what you want to put there?
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: [OT] A New Everything ?
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 (Archbishop) on Sep 25, 2020 at 08:45 UTC | |
by soonix (Chancellor) on Sep 25, 2020 at 11:08 UTC | |
| |
by marto (Cardinal) on Sep 25, 2020 at 11:17 UTC | |
by Aldebaran (Curate) on Sep 27, 2020 at 22:50 UTC | |
|