Contents

Views 12778 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
94 System/OS [linux] GD 라이브러리 설치 방법.. file hooni 2013.04.23 11471
93 System/OS [linux] 처음 설치부터 APM 설치까지 (업데이트 할 것) hooni 2013.04.23 38348
92 System/OS [linux] 파일내 문자열 찾아 바꾸기 hooni 2013.04.23 12274
91 System/OS [perl] 영규가 만든 스크립트.. 하하.. hooni 2013.04.23 10677
90 System/OS [switch] 시스코 카탈리스트(Cisco Catalyst) 기본 설정 hooni 2013.04.23 17570
89 System/OS [switch] 시스코 스위치 관리자 암호 초기화 방법 hooni 2013.04.23 17289
88 System/OS [windows] 원격 데스크탑(터미널 서비스) 포트 변경 hooni 2013.04.23 16360
87 System/OS [linux] X환경 GNOME에서 KDE로 바꾸는 법.. hooni 2013.04.23 12415
86 System/OS 무선 인증 서버.. 김도.. ㅋㅋ file hooni 2013.04.23 17692
85 System/OS 해커스랩 깨기.. 후후.. ㅋㅋ file hooni 2013.04.23 18523
84 System/OS [linux] /etc/fstab 설정 방법.. ㅋㅋ hooni 2013.04.23 12159
83 System/OS [owasp] 10대 웹어플리케이션 보안 취약 file hooni 2013.04.23 15999
Board Pagination Prev 1 ... 5 6 7 8 9 10 11 12 13 14 ... 17 Next
/ 17