June 2017
Beginner
502 pages
11h 26m
English
Let's use a scenario where we will create a completely new user; whatever we will do here will be applicable to a preexisting user. First, let's create our new user test user on the remote host, and let's configure it so that it will be available through key authentication only:
root:# useradd -m test_user
So, we just created the test_user account and provided it with a home directory:
root:# ls -lah /home/test_user/total 20Kdrwxr-xr-x 2 test_user test_user 4.0K Apr 24 12:50 .drwxr-xr-x 4 root root 4.0K Apr 24 12:50 ..-rw-r--r-- 1 test_user test_user 220 Nov 5 17:22 .bash_logout-rw-r--r-- 1 test_user test_user 3.5K Nov 5 17:22 .bashrc-rw-r--r-- 1 test_user test_user 675 Nov 5 17:22 .profile
Notice that there is ...
Read now
Unlock full access