• Home
  • About
    • Seokmin.Lee photo

      Seokmin.Lee

      Hello, I am a master's student in the Department of Convergence Security (Samsung Advanced Security) at Korea University.After graduation, I am expected as a security developer or researcher member of Samsung SDS.

    • Learn More
    • LinkedIn
    • Github
  • Posts
    • All Tags

[linux]리눅스 추가 계정 생성하는 법

15 Jan 2021

리눅스 추가 계정 생성하는 법

계정 생성하기

$ sudo useradd 계정명 -m -s /bin/bash -G 그룹명
$ sudo passwd 계정명

root에서 sudo 권한 부여해주기

sudo vim /etc/sudoers

# User privilege specification
root    ALL=(ALL:ALL) ALL

# Members of the admin group may gain root privileges
%admin  ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL

members 밑에 새로운 계정과 ALL~ 똑같이 쳐주기

  • reference : https://dalgong2.tistory.com/14
  • https://thebook.io/006718/part01/ch03/02/03/


linux Share Tweet +1