/etc/pki/ca-trust/source/anchors/ 에 인증서를 넣고 update-ca-trust 를 실행했을 때 /etc/pki/ca-trust/extracted/...: Unknown error 13 이 나면 errno 13 = EACCES 다. 일반 사용자로 실행한 것이 대부분의 원인이며 sudo update-ca-trust 로 해결된다. 그래도 나면 다음을 본다.
ls -ld /etc/pki/ca-trust/extracted/ /etc/pki/ca-trust/extracted/*
mount | grep " / " # 루트 파일시스템 read-only 여부
getenforce # SELinux
bash 는 셸이 중첩될 때마다 SHLVL 을 1 씩 올리는데 1000 에 이르면 이 경고를 내며 1 로 되돌린다. .bashrc · .bash_profile · .profile 안에서 exec bash 나 bash 를 다시 부르거나, .bash_profile 이 .bashrc 를, .bashrc 가 다시 .bash_profile 을 source 하는 순환이 있을 때 생긴다.
grep -n 'exec bash\|exec $SHELL\|^bash\|source.*bash_profile' ~/.bashrc ~/.bash_profile ~/.profile 2>/dev/null
echo $SHLVL # 정상이면 1
문제 줄을 주석 처리하고 새 터미널을 열어 SHLVL 이 1 인지 본다.