nge*_*eri 5 linux permissions debian
在使用 Debian 9 获得新的 VPS 后,我使用 root 创建了一个新用户。我用这个命令 adduser joe 创建了一个名为 joe 的新用户名。然后,我使用 usermod -aG sudo joe 授予管理权限。之后,我退出并使用 Putty 以 joe 身份登录。我输入了 joe 的密码。输入密码后,显示此消息:
Could not chdir to home directory /home/joe: Permission denied
-bash: /home/joe/.bash_profile: Permission denied
我使用以下命令检查了 /home/joe 的目录:
sudo ls -al /home/joe
total 20
drw-r--r-- 2 joe joe 4096 Feb 7 16:32 .
drwxr-xr-x 4 root root 4096 Feb 7 16:32 ..
-rw-r--r-- 1 joe joe 220 Feb 7 16:32 .bash_logout
-rw-r--r-- 1 joe joe 3526 Feb 7 16:32 .bashrc
-rw-r--r-- 1 joe joe 675 Feb 7 16:32 .profile
Run Code Online (Sandbox Code Playgroud)
以joe 身份登录后如何进入/home/joe 目录?