Linux系统非root帐号执行ssh发生Segmentation fault错误
1. 执行strace ssh <IP>
在open("/usr/share/passwd.h", O_WRONLY|O_CREAT|O_APPEND, 0666)=EACESS错误
初步判断是/usr/share/passwd.h的访问权限问题
2. 处理过程
root@H03 share]# ls -l /usr/share/passwd.h -rw-r--r-- 1 root root 110 01-04 14:27 /usr/share/passwd.h [root@H03 share]# chmod a+w /usr/share/passwd.h [root@H03 share]# ls -l /usr/share/passwd.h -rw-rw-rw- 1 root root 110 01-04 14:27 /usr/share/passwd.h
3. 问题解决