OS환경 : Oracle Linux 7.6 (64bit)
에러 : /usr/bin/xauth: file /root/.Xauthority does not exist
root 계정으로 shell 접속 시 발생하는 메세지
1 2 3 4 5 6 7 8 | Xshell:\> Connecting to 192.168.137.50:22... Connection established. Escape character is '^@]'. Last login: Tue Mar 17 15:01:02 2020 /usr/bin/xauth: file /root/.Xauthority does not exist |
.Xauthority 파일 확인
1 2 | # ls -al /root/.Xauthority ls: cannot access /root/.Xauthority: No such file or directory |
해당 파일이 존재하지 않음
해결 방법 : xauth 명령을 한번 실행시켜준다
xauth 명령 실행 후 info 확인
1 2 3 4 5 6 7 8 9 10 | # xauth Using authority file /root/.Xauthority xauth> info Authority file: /root/.Xauthority File new: no File locked: no Number of entries: 1 Changes honored: yes Changes made: no Current input: (stdin):4 |
.Xauthority 파일 확인
1 2 | # ls -al /root/.Xauthority -rw-------. 1 root root 100 Mar 22 18:39 /root/.Xauthority |
파일이 만들어짐
root 계정으로 shell 다시 접속
1 2 3 4 5 6 7 | Connecting to 192.168.137.50:22... Connection established. Escape character is '^@]'. Last login: Sun Mar 22 18:39:36 2020 from 192.168.137.1 # pwd /root |
처음 발생했던 메세지가 더이상 발생하지 않음
원인 : /root/.Xauthority 파일이 없어서 발생한 문제
/root/.Xauthority 파일이 없어서 발생한 문제
추가 명령어
xauth 리스트 확인
1 2 3 4 | # xauth list oel7/unix:10 MIT-MAGIC-COOKIE-1 05efbdf64cd0cea0493c0b2199738b50 oel7/unix:11 MIT-MAGIC-COOKIE-1 4d6f31e92bafdb32d1c30a67e09a39f5 oel7/unix:12 MIT-MAGIC-COOKIE-1 912d965c95db437628ca2373e92d0c4a |
참조 :
https://www.zdnet.co.kr/view/?no=00000010034860
https://superuser.com/questions/806637/xauth-not-creating-xauthority-file
https://skylit.tistory.com/183
'Linux, Unix > Trouble Shooting' 카테고리의 다른 글
-bash: /bin/rm: Argument list too long (2) | 2020.04.24 |
---|---|
Another app is currently holding the yum lock; waiting for it to exit... (0) | 2020.04.22 |
/bin/sh^M: bad interpreter: No such file or directory (0) | 2020.03.14 |
configure: error: *** A compiler with support for C++11 language features is required. (0) | 2019.10.27 |
gzip: ~~ invalid compressed data--format violated (0) | 2018.12.28 |