When logging in with ssh, Permission denied appears and cannot log in.

Asked 2 years ago, Updated 2 years ago, 67 views

ssh [email protected]
[email protected]'s password: 
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Last login:Tue May 30 22:02:38 2017 from 172.31.25.73
Could not chdir to home directory/data01/home/hogehoge —Permission denied
-bash:/data01/home/hogehoge/.bash_profile: Permission denied
-bash -4.1$ 

By the way.bash_profile Other Permissions are as follows

[root@queen~]#ls-al/data01/home/hogehoge
total204
drwx --------- 19 hogehoge snp 4096 May 15 13:46.
drwxr-x--- 11 root root root 117 Apr 7 17:10..
-rw -r --r --1 hogehoge snp 419 May 15 23:57.bash_history
-rw -r --r --1 hogehoge snp 18 Apr 7 17:04.bash_logout
-rw-r--r--1 hogehoge snp176 Apr 7 17:04.bash_profile
-rw-r--r--1 hogehoge snp391 Apr 7 17:04.bashrc
drwxr-x--- 8 hogehoge snp 4096 May 11:46 bin
drwxr-x--- 3 hogehoge snp 20 Apr 13 15:21.cache
drwxr-x--- 4 hogehoge snp 56 May 1509:53.config
-rw-r--r--1 hogehoge snp272 Apr 7 17:04.cshrc
drwxr-x--- 3 hogehoge snp 19 May 12 10:54 data
drwxr-x--- 3 hogehoge snp 24 Apr 13 15:21.dbus
drwxr-x----- 2 hogehoge snp 6 Apr 13 15:21 Desktop
-rwxr-x--- 1 hogehoge snp 500 Apr 7 17:04.emacs
drwxr-x--- 2 hogehoge snp 6 Apr 11 11:38.felix
drwxr-x--- 2 hogehoge snp 100 May 15 14:11.filezilla
drwxr-x--- 2 hogehoge snp6 Apr 13 17:47.gconf
drwxr-x----- 2 hogehoge snp 24 Apr 13 19:08.gconfd
drwxr-x--- 3 hogehoge snp 19 Apr 13 15:21.gnome 2
drwxr-x--- 2 hogehoge snp 6 Apr 13 15:21.gnome2_private
-rwxr-x--- 1 hogehoge snp 39 Apr 7 17:04.i18n
-rw-r--r--1 hogehoge snp171 Apr 7 17:04.kshrc
-rw -r --r -- 1 hogehoge snp 124 Apr 7 17:04.mkshrc
drwxr-x--- 5 hogehoge snp51 Apr 13 15:21.mozilla
-rwxr-x--- 1 hogehoge snp 24 Apr 7 17:04.mpd.conf
-rwxr-x--- 1 hogehoge snp 256 Apr 13 15:22.pulse-cookie
drwxr-x --- 6 hogehoge snp 66 Apr 7 17:04 qsubsamples
-rw ----------- 1 hogehoge snp 429 Apr 7 17:04.rhosts
drwx ----------- 2 hogehoge snp 24 Apr 7 17:04.ssh
-rw ----------- 1 hogehoge snp 102 May 15 13:46.Xauthority
-rw-r--r--1 hogehoge snp658 Apr 7 17:04.zshrc

Does anyone know the cause?

linux ssh

2022-09-30 14:39

1 Answers

If you look at the ls output, you don't have the /data01/home directory read and run rights (r), so the effect appears to be causing an error.
I think that if you give it, the event will be improved.
(If /data01 is the same, I think it would be good to give it the same way.)

 [Output point of "/data01/home" (="...")]
[root@queen~] #ls-al/data01/home/hogehoge
total204
drwx --------- 19 hogehoge snp 4096 May 15 13:46.
drwxr-x--- 11 root root root 117 Apr 7 17:10..
(hereinafter abbreviated)

Also, I expect that you are able to log in.


2022-09-30 14:39

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.