我不小心在根目录中使用了这个命令,现在 ipa.ddr.ess:7080 不会让我进去;它说“无效的凭据”。我使用的命令是
chown -R www-data:www-data /.
然后我意识到这是一个错误然后将大多数目录更改为 root:root 使用
chown -R root:root /to-some-directories manually one by one
the directories in root
drwxr-xr-x 19 root root 4096 May 23 09:32 ./
drwxr-xr-x 19 root root 4096 May 23 09:32 ../
lrwxrwxrwx 1 root root 7 May 15 2020 bin -> usr/bin/
drwxr-xr-x 4 root root 4096 May 22 15:17 boot/
-rwxr-xr-x 1 root root 79639 Oct 1 2020 certbot-auto*
-rw------- 1 root root 1028653056 Jun 24 2020 cyberpanel.swap
drwxr-xr-x 16 root root 3780 Jun 15 14:04 dev/
drwxr-xr-x 117 root root 12288 Jun 15 14:38 etc/
drwxr-xr-x 8 root root 4096 Jun 4 17:00 home/
lrwxrwxrwx 1 root root 7 May 15 2020 lib -> usr/lib/
lrwxrwxrwx 1 root root 9 May 15 2020 lib32 -> usr/lib32/
lrwxrwxrwx 1 root root 9 May 15 2020 lib64 -> usr/lib64/
lrwxrwxrwx 1 root root 10 May 15 2020 libx32 -> usr/libx32/
drwx------ 2 root root 16384 May 15 2020 lost+found/
drwxr-xr-x 2 root root 4096 May 15 2020 media/
drwxr-xr-x 5 root root 4096 Jul 24 2020 mnt/
drwxr-xr-x 4 root root 4096 Jun 29 2020 opt/
dr-xr-xr-x 144 root root 0 Jun 9 04:50 proc/
drwx------ 11 root root 4096 Jun 23 10:00 root/
drwxr-xr-x 32 root root 1000 Jun 23 09:55 run/
lrwxrwxrwx 1 root root 8 May 15 2020 sbin -> usr/sbin/
drwxr-xr-x 7 root root 4096 Jun 17 07:19 snap/
drwxr-xr-x 3 root root 4096 Feb 4 09:40 srv/
dr-xr-xr-x 13 root root 0 Jun 9 04:50 sys/
drwxrwxrwt 23 root root 4481024 Jun 23 10:05 tmp/
drwxr-xr-x 15 root root 4096 May 22 15:16 usr/
drwxr-xr-x 13 root root 4096 May 15 2020 var/
-rw-r--r-- 1 root root 384 Jun 9 04:49 webadmin.csr
然后将 /home/example.com/public_html 更改为 www-data:www-data openlitespeed:7080 不让我使用正确的凭据