Contents

Views 12683 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
리눅스에서 일반 유저가 root 전환시 패스워드 없이 su (substitute user) 명령 사용하는 방법

1. /etc/pam.d/su 파일 수정

/etc/pam.d/su 파일에서 아래 라인의 주석을 제거한다.
auth  sufficient pam_wheel.so trust use_uid
의미는 wheel 그룹에 속한 사용자를 전적으로 신뢰하겠다는 뜻이다.


2. wheel 그룹에 등록
아래와 같은 명령으로 일반 유저를 wheel 그룹에 등록할 수 있다.
# usermod -G wheel picomax

또는 /etc/group 파일에 직접 test 유저를 아래와 같이 추가해도 된다. (콤마 찍으면서 계속 추가 가능)
wheel:x:10:picomax


3. 결과 확인
whoami 명령 사용.

?

List of Articles
No. Category Subject Author Date Views
142 System/OS [mac] 맥에서 기본 실행 앱 변경하기 file hooni 2018.03.02 1802
141 System/OS [mac] 맥에서 APM(apache,php,mysql) 구성하기 hooni 2013.04.23 38614
140 System/OS [mac] 맥OSX에서 NTFS 쓰기 기능 활성화 hooni 2014.03.12 4284
139 System/OS [mac] 맥(OSX)에서 root 패스워드 설정하기 hooni 2013.04.23 22416
138 System/OS [mac] 맥(OSX)에서 NTFS, 윈도우에서 HFS+ 사용하기 file hooni 2014.03.12 5115
137 System/OS [mac] VirtualBox 실행 스크립트와 bash_profile 설정 file hooni 2020.07.08 951
136 System/OS [mac] SVN 1.8 업데이트 방법 hooni 2013.09.24 14559
135 System/OS [mac] OSX(맥) 단축키 설명 ㅎㅎ file hooni 2013.04.23 29561
134 System/OS [mac] OS X 요세미티 사용자가 많이 겪는 버그와 몇몇 불편사항 file hooni 2015.01.04 1518
133 System/OS [mac] OS X 엘 캐피탄에서 Soudflower 사용하기 2 file hooni 2016.10.03 876
132 System/OS [mac] Mac에서 Mac으로 원격제어하기 (맥에서 맥으로) file hooni 2013.10.08 36987
131 System/OS [mac] Mac OS에서 재생되는 사운드를 녹음하는 방법 file hooni 2016.10.03 1440
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 17 Next
/ 17