유닉스 ttyname failed 오류 처리방법

황제낙엽 2018.06.13 03:42 조회 수 : 1857

sitelink1 http://bemeal2.tistory.com/119 
sitelink2  
sitelink3  
extra_vars6  

root 자동로그인으로 변경하고, 리부팅을 하면, 아래와 같이 오류 메세지가 나온다.

 

2733254E5901CA4D0E.png

 

x window 가 없는 리눅스라면 콘솔에 다음과 같은 오류메세지가 출력된다

 

Code:
Error found when loading /root/.profile
    mesg: ttyname failed: Inappropriate ioctl for device
    As result the session will not be configured correctly.
    You should fix the problem as soon as feasible.

 

 

 

 

터미널을 열어서,

vi /root/.profile

라고 치고, .profile 을 편집한다.

 

vi 에디터에서,

mesg n || true

이렇게 써있는 부분을 아래와 같이 수정해주고, 재부팅

tty -s && mesg n

 

 

 

번호 제목 sitelink1 글쓴이 날짜 조회 수
33 Windows 11 Pro 환경의 WSL2(Windows Subsystem for Linux 2)에서 X11(그래픽 앱)을 실행   황제낙엽 2026.01.06 148
32 특정 폴더 제외하고 가장 최근에 생성된 폴더 이름 가져오는 shell file 만들기   황제낙엽 2025.07.28 177
31 리눅스 OS 버전 확인 (ubuntu, debian)   황제낙엽 2020.07.13 904
30 우분투(Ubuntu)에서 root로 전환후 비밀번호 변경 file   황제낙엽 2020.07.12 18025
29 cURL file https://zetawiki.com/wiki/%EB%A6%AC%EB%88%85%EC%8A%A4_curl  황제낙엽 2020.07.11 922
28 VirtualBox에 우분투(ubuntu-20.04-desktop-amd64.iso) 설치하기 file   황제낙엽 2020.07.11 879
27 Raspberry Pi에 우분투(ubuntu-20.04-preinstalled-server-arm64+raspi.img) 설치하기   황제낙엽 2020.07.10 980
26 리눅스 하드웨어 정보 및 용량 확인   황제낙엽 2020.07.08 3051
25 shutdown file https://terms.naver.com/entry.nhn?docId=...ryId=59321  황제낙엽 2018.07.06 1035
24 다른 계정으로 전환하는 명령어(sudo / su / su -) file http://www.leafcats.com/168  황제낙엽 2018.06.24 1467
» ttyname failed 오류 처리방법 file http://bemeal2.tistory.com/119  황제낙엽 2018.06.13 1857
22 Samba 설치   황제낙엽 2009.11.13 1064
21 리눅스에서 파일 다운로드   황제낙엽 2009.11.13 746
20 리눅스 os(kernel) version 정보 확인   황제낙엽 2009.11.13 877
19 NetworkManager 관련   황제낙엽 2009.11.12 875
18 Fedora Network Manger(고정IP사용)   황제낙엽 2009.11.02 2697
17 Fedora11 에서 Root로 로그인하는 법   황제낙엽 2009.10.30 884
16 [Fedora9] yum update 가 되지 않을 경우   황제낙엽 2008.10.17 818
15 Fedora Yum 저장소 변경하기   황제낙엽 2008.10.17 751
14 [Fedora 9] 한글 터미널 설정 및 yum 설정   황제낙엽 2008.10.16 987