본문 바로가기

CS/Linux

[CentOS] <username> is not in the sudoers file. This incident will reported.

[razor1911@CentOS7 ~]$ sudo -s
[sudo] password for razor1911: 
razor1911 is not in the sudoers file.  This incident will be reported.

 

Step

[razor1911@CentOS7 ~]$ su - root
Password: 
[root@CentOS7 ~]# 
[root@CentOS7 ~]# echo 'razor1911 ALL=(ALL) ALL' >> /etc/sudoers
[root@CentOS7 ~]# su - razor1911
Last login: Sat Jan  7 23:34:14 PST 2023 on :0
[razor1911@CentOS7 ~]$ sudo -s
[sudo] password for razor1911: 
[root@CentOS7 razor1911]#

'CS > Linux' 카테고리의 다른 글

리눅스에서 파일 EOL 확인하기  (0) 2023.08.17
Linux - screenfetch  (0) 2023.06.13
Ubuntu 패키지 특정 버전으로 설치하기  (0) 2022.06.09
[Linux] Ubuntu 20.04 에서 Go 최신 버전 설치  (0) 2021.11.04