OS/Linux

Allow users to run any commands anywhere without their password

Temporary backups 2021. 3. 24. 01:04
반응형

sudo visudo 실행 (/etc/sudoers 에 접근하는 명령어)

 

다음 부분을 찾아 설정 변경 (여기서는 사용할 userid가 woojin 이라고 가정)

 

## Next comes the main part: which users can run what software on

## which machines (the sudoers file can be shared between multiple

## systems).

## Syntax:

##

##      user    MACHINE=COMMANDS

##

## The COMMANDS section may have other options added to it.

##

## Allow root to run any commands anywhere

 

root    ALL=(ALL)       NOPASSWD: ALL

woojin  ALL=(ALL)       NOPASSWD: ALL

 

 

만약 모든 유저에 대해 위의 옵션을 적용하려면

woojin 대신 ALL 을 넣어주면 됨

반응형