Views 12685 Votes 0 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
26 System/OS [linux] iptables 초간단 세팅 스크립트 hooni 2017.09.26 1237
25 System/OS 무료로 HTTPS 적용하기 (Let's Encrypt) file hooni 2017.10.28 1401
24 System/OS OpenSSL로 ROOT CA 생성 및 SSL 인증서 발급하기 hooni 2017.10.28 1455
23 System/OS [mac] How to uninstall MySQL on Mac OS. hooni 2017.11.08 884
22 System/OS [linux] 초간단 Postfix, Covecot, SSL/TLS (SMTP) file hooni 2017.12.11 9323
21 System/OS [linux] 초간단 SquirrelMail 설치/설정 (다람쥐 메일) hooni 2017.12.11 4457
20 System/OS 콘솔에서 패스워드 걸린 zip 압축하는 명령 hooni 2018.03.02 937
19 System/OS [mac] 맥에서 기본 실행 앱 변경하기 file hooni 2018.03.02 1804
18 System/OS How to Setup an Email Server on CentOS 7 hooni 2018.04.05 2779
17 System/OS 서버 확장을 위한 두 가지 방법 file hooni 2018.08.29 2098
16 System/OS Mac에서 Node.js 설치하기 file hooni 2018.09.28 4187
15 System/OS [virtualbox] VirtualBox에 Ubuntu 설치하기 file hooni 2019.11.22 906
14 System/OS SSH Passwordless Login Using SSH Keygen in 5 Easy Steps file hooni 2019.11.22 1388
13 System/OS RPA란? 어디에 어떻게 쓰이고 누가 만드나? file hooni 2020.01.28 1355
12 System/OS Configure Postfix to Use Gmail SMTP on Ubuntu 18.04 file hooni 2020.02.07 1248
11 System/OS [linux] The Ultimate Wget Download Guide With 15 Awesome Examples hooni 2020.05.26 799
Board Pagination Prev 1 ... 9 10 11 12 13 Next
/ 13