I am having a hard time on just mere activation of SSH and SCP, and the error appeared when I tried to run "ssh" (even "ssh" without arguments) is:
Code: Select all
No user exists for uid 1001
Code: Select all
drwxr-xr-x. 10 0 0 4096 Sep 22 12:51 .
drwxr-xr-x. 6 0 0 53 Sep 21 22:37 ..
-rw-------. 1 1001 1001 166 Sep 22 12:16 .bash_history
-rw-r--r--. 1 1001 1001 18 Nov 20 2015 .bash_logout
-rw-r--r--. 1 1001 1001 193 Nov 20 2015 .bash_profile
-rw-r--r--. 1 1001 1001 231 Nov 20 2015 .bashrc
drwxr-xr-x. 2 0 0 81 Sep 22 12:54 bin
drwxr-xr-x. 2 0 0 51 Sep 22 11:31 dev
drwxr-xr-x. 2 0 0 69 Sep 22 12:58 etc
drwxr-xr-x. 2 0 0 4096 Sep 22 12:17 lib64
drwxr-xr-x. 2 0 0 16 Sep 22 12:00 usr
drwxr-xr-x. 12 1001 1001 4096 Sep 22 11:25 www
The etc directory in the chrooted directory contains the following, please take note of the permissions:
Code: Select all
-rw-r--r--. 1 root root 599 Sep 22 11:39 group
-rw-r--r--. 1 root root 1717 Sep 22 12:58 nsswitch.conf
-rw-r--r--. 1 root root 1312 Sep 22 11:39 passwd
-rw-r--r--. 1 root root 68 Sep 22 12:51 resolv.conf