Contents

Views 12685 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
166 System/OS iptime 공유기 해킹 기술문서 4 file hooni 2015.01.01 1941
165 System/OS 서버 확장을 위한 두 가지 방법 file hooni 2018.08.29 2098
164 System/OS [mac][추천 무료앱] 구름 입력기 - 국내 맥 사용자를 위한 한글 대안 입력기 1 file hooni 2015.01.04 2150
163 System/OS 무료로 HTTPS 적용하기 (Lets' Encrypt) file hooni 2017.02.16 2174
162 System/OS Apache CORS 설정 1 hooni 2020.09.04 2710
161 System/OS How to Setup an Email Server on CentOS 7 hooni 2018.04.05 2779
160 System/OS [android] 초간단 HTTP, POST 전송 샘플 1 file hooni 2017.02.16 3449
159 System/OS Mac에서 Node.js 설치하기 file hooni 2018.09.28 4187
158 System/OS [mac] 맥OSX에서 NTFS 쓰기 기능 활성화 hooni 2014.03.12 4286
157 System/OS [linux] split 명령어 hooni 2014.03.11 4305
156 System/OS [linux] 초간단 SquirrelMail 설치/설정 (다람쥐 메일) hooni 2017.12.11 4457
155 System/OS [linux] CentOS Apache Httpd에 https 적용 hooni 2014.03.05 4480
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 17 Next
/ 17