Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 |
Tags
- 오블완
- 톰캣
- 키보드
- MariaDB
- 티스토리챌린지
- START WITH
- API
- http
- JDBC
- 삼성증권
- equals
- oracle
- 스레드
- Docker
- letterspacing
- MySQL
- 프로세스
- Linux
- HTML
- 컨트롤러
- 영상편집
- cmd
- ibatis
- java
- Database
- integer
- 스레드 덤프
- wsdl
- 안드로이드 스튜디오
- Tomcat
Archives
- Today
- Total
블로그 이름
[Linux] sudo 명령어에서 root 권한이 없을 때 (... is not in the sudoers file. this incident will be reported) 본문
개발/리눅스
[Linux] sudo 명령어에서 root 권한이 없을 때 (... is not in the sudoers file. this incident will be reported)
Hide 2024. 7. 25. 14:43Ubuntu 10.04 버전에서
$ sudo apt install net-tools
명령어를 사용하려고 했는데,
{name} is not in the sudoers file. this incident will be reported. 라는 메세지가 뜨며 다운로드가 안된다.
root 권한이 없어 sudo 명령어 사용이 안되는 것이 문제로,
$ su 로 root로 로그인하여 명령어 실행 시 바로 설치된다.
{name} 계정에 권한을 주고 싶다면
$ vi /etc/sudoers
명령어 입력하여
sudoers 파일에 계정명이 들어가야 root 권한이 부여된다.
root ALL=(ALL:ALL) ALL 부분 하위에
{NAME} ALL=(ALL:ALL) ALL 내용을 추가하여
저장 한 뒤, ROOT 권한이 부여된걸 확인 할 수 있다.
'개발 > 리눅스' 카테고리의 다른 글
| [Linux] ubuntu에 JAVA 설치하기 (0) | 2024.07.25 |
|---|---|
| [Linux] Window에서 Ubuntu로 파일 이동하기 (0) | 2024.07.25 |
| [Linux] 우분투 ubuntu 리눅스 터미널 안열림 현상 (0) | 2024.07.25 |
| [centOS] java.io.IOException: 열린 파일이 너무 많음 (0) | 2024.04.24 |
| [centOS8] SFTP 서버에 키 파일 인증하기 (2) | 2024.04.24 |