우분투 초기 세팅시 root로 접속하기위해 su를 입력하면 다음과 같은 에러가 난다.

#root 접속시 에러
kyome-was@kyome-was:$ su
Password: 
su: Authentication failure

root 비밀번호를 애초부터 설정하지 않았기때문!

 

설정방법

#비밀번호 설정
kyome-was@kyome-was:$ sudo passwd root
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully

#root 로그인
kyome-was@kyome-was:/usr/share/tomcat8/bin$ su 
Password: 

+ Recent posts

"여기"를 클릭하면 광고 제거.