본문 바로가기
Others/42Seoul

born2beroot : sudo configuration - 2022

by tonyhan18 2022. 1. 16.
728x90
  • Authentication using sudo has to be limited to 3 attempts in the event of an incorrect password.
    - sudo 비밀번호 인증 시 최대 3번까지 시도 가능
  • A custom message of your choice has to be displayed if an error due to a wrong
    password occurs when using sudo.
    - sudo 인증 실패 시 커스텀 경고 메세지를 출력해야 함
  • Each action using sudo has to be archived, both inputs and outputs. The log file
    has to be saved in the /var/log/sudo/ folder.
    - sudo 명령어 실행 시 로그를 /var/log/sudo/에 저장해야 함
  • The TTY mode has to be enabled for security reasons
    - 보안상 이유로 TTY에서만 sudo를 실행할 수 있도록 해야 함
  • For security reasons too, the paths that can be used by sudo must be restricted.
    - 보안상 이유로 sudo 실행 시 사용할 수 있는 명령어의 경로는 제한되어야 함

우선 Debian에는 sudo가 없으므로 sudo 패키지를 설치한다.
현재 sudo가 없으므로 root로 계정을 전환한다.

다음 명령어를 통해 로그아웃 없이 root 계정으로 전환할 수 있다.

 

 

 

 

728x90

'Others > 42Seoul' 카테고리의 다른 글

born2beroot : ssh  (0) 2022.01.16
born2beroot : ufw  (0) 2022.01.16
born2beroot : partitions  (0) 2022.01.16
born2beroot : hostname  (0) 2022.01.16
born2beroot : user  (0) 2022.01.16