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
In reply to Re^9: [OT] A New Everything ?
by afoken
in thread [OT] A New Everything ?
by Aldebaran
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |