유닉스 ttyname failed 오류 처리방법

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

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 2674
32 특정 폴더 제외하고 가장 최근에 생성된 폴더 이름 가져오는 shell file 만들기   황제낙엽 2025.07.28 2592
31 리눅스 OS 버전 확인 (ubuntu, debian)   황제낙엽 2020.07.13 3516
30 우분투(Ubuntu)에서 root로 전환후 비밀번호 변경 file   황제낙엽 2020.07.12 20638
29 cURL file https://zetawiki.com/wiki/%EB%A6%AC%EB%88%85%EC%8A%A4_curl  황제낙엽 2020.07.11 3937
28 VirtualBox에 우분투(ubuntu-20.04-desktop-amd64.iso) 설치하기 file   황제낙엽 2020.07.11 3520
27 Raspberry Pi에 우분투(ubuntu-20.04-preinstalled-server-arm64+raspi.img) 설치하기   황제낙엽 2020.07.10 3766
26 리눅스 하드웨어 정보 및 용량 확인   황제낙엽 2020.07.08 8108
25 shutdown file https://terms.naver.com/entry.nhn?docId=...ryId=59321  황제낙엽 2018.07.06 4038
24 다른 계정으로 전환하는 명령어(sudo / su / su -) file http://www.leafcats.com/168  황제낙엽 2018.06.24 4409
» ttyname failed 오류 처리방법 file http://bemeal2.tistory.com/119  황제낙엽 2018.06.13 4834
22 Samba 설치   황제낙엽 2009.11.13 3847
21 리눅스에서 파일 다운로드   황제낙엽 2009.11.13 3251
20 리눅스 os(kernel) version 정보 확인   황제낙엽 2009.11.13 3452
19 NetworkManager 관련   황제낙엽 2009.11.12 3406
18 Fedora Network Manger(고정IP사용)   황제낙엽 2009.11.02 5304
17 Fedora11 에서 Root로 로그인하는 법   황제낙엽 2009.10.30 3420
16 [Fedora9] yum update 가 되지 않을 경우   황제낙엽 2008.10.17 3317
15 Fedora Yum 저장소 변경하기   황제낙엽 2008.10.17 3284
14 [Fedora 9] 한글 터미널 설정 및 yum 설정   황제낙엽 2008.10.16 3628