Linux

ssh Authentication refused: bad ownership or modes for directory /root

gagal ssh ke server dengan pesan Authentication refused: bad ownership or modes for directory /root

dicek pada log ada seperti ini,

@server1:~# tail -f /var/log/auth.log
Nov 13 10:17:01 server1 CRON[22087]: pam_unix(cron:session): session opened for user root by (uid=0)
Nov 13 10:17:01 server1 CRON[22088]: pam_env(cron:session): Unable to open env file: /etc/default/locale: No such file or directory
Nov 13 10:17:01 server1 CRON[22088]: pam_unix(cron:session): session opened for user root by (uid=0)
Nov 13 10:17:01 server1 CRON[22087]: pam_unix(cron:session): session closed for user root
Nov 13 10:18:08 server1 sshd[22109]: Authentication refused: bad ownership or modes for directory /root
Nov 13 10:18:08 server1 sshd[22109]: Authentication refused: bad ownership or modes for directory /root
Nov 13 10:18:08 server1 sshd[22109]: Authentication refused: bad ownership or modes for directory /root

cara perbaikinya dengan seperti ini,
yang salah permision(755) dan kemepilikan sxx-cgi.no-ulimit:

@server1:~# ls -ld /root
drwxr-xr-x 5 sxx-cgi no-ulimit 4096 Nov 13 03:03 /root

yang benar seperti ini

@server1:~# ls -ld /root
drwxr-x— 5 root adm 4096 Nov 13 03:03 /root

dengan perintah :

@server1:~# chmod 750 /root
@server1:~# chown root.adm /root

dicoba pada

@server1:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 6.0.10 (squeeze)
Release: 6.0.10
Codename: squeeze

convert tools online chmod https://www.weijers.net/unix/chmod.php?method=three

© http://carauntuk.com/ssh-authentication-refused-bad-ownership-or-modes-for-directory-root

Sponsor 2

Show More

cu.admin

Nama: Arie Ibrahim | Lahir : 16 january 1987 | Lulus : SMA 28 Oktober 1928 jakarta Selatan Tahun 2005 | Keahlian : dibidang komputer. | Ketertarikan: ilmu komputer, ilmu Quran, dan Ilmu Fisika. | Kontak : arie@carauntuk.com adpit31@gmail.com | Pesan : semoga artikel diatas bermanfaat bagi saya pribadi dan yang membutuhkannya, Terimakasih

Related Articles

Leave a Reply

Check Also

Close
Close