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
138 System/OS [linux] 스케쥴링 순서(nice) 변경하기 hooni 2003.04.23 12538
137 System/OS [linux] 기존 환경설정 저장하면서 커널 컴파일.. hooni 2003.04.23 13460
136 System/OS [linux] Proftpd 설치 가이드 hooni 2003.04.23 13023
135 System/OS [sql] 내 방명록 답글 찾는 쿼리문.. (JOIN 구문) hooni 2003.04.23 12845
134 System/OS [sql] alter table 쿼리 예제 hooni 2003.04.23 12459
133 System/OS [dos] 노트북 백업 스크립트 xcopy 명령 예제 hooni 2003.04.23 40805
132 System/OS [linux] 터미널에서 문자 깨질 때 설정 ㅋㅋ hooni 2003.04.23 13914
131 System/OS [linux] root도 삭제하지 못하는 파일 속성 hooni 2003.04.23 12412
130 System/OS [linux] man 명령어 뽀개기.. hooni 2003.04.23 8723
129 System/OS [web] 웹서비스 취약점 자료.. (논문첨부) file hooni 2003.04.23 17940
128 System/OS [linux] 꿀통(honeyd) 설치하기.. 메뉴얼 과정 6 file hooni 2006.04.23 20219
127 System/OS [linux] 데비안(debian.org) 리눅스 명령어 예제 hooni 2006.04.23 10422
126 System/OS [mysql] 시간 관련 SQL구문.. hooni 2013.04.23 10773
125 System/OS [router] 시스코 라우터 명령어 모드.. hooni 2013.04.23 12944
124 System/OS [router] 라우팅 프로토콜 BGP (간단한 세팅) hooni 2013.04.23 10949
123 System/OS 네트워크별 MTU(최대 전송 단위) hooni 2013.04.23 17641
Board Pagination Prev 1 3 4 5 6 7 ... 13 Next
/ 13