728x90
root 계정으로 접속
/home 으로 이동
shell> cd /home/
유저확인
shell> cat /etc/passwd
유저생성(usareal 유저명)
shell> useradd testuser1
* 유저 생성을 하면 /home/ 폴더 하위에 user명으로 폴더가 생긴다.
생성시 폴더 권한이 700 일것이다.
비밀번호 설정
shell> passwd testuser1
비밀번호 입력 1q2w3e4r
* 비밀번호 1q2w3e4r 은국룰 ㅡㅡ 해킹에 유의하여 알아서 잘 만들도록 하자
실행권한 추가
shell> chmod 701 ./testuser1
* 권한 변경은 보너스
728x90
'리눅스 헛다리 > Centos7' 카테고리의 다른 글
centos7 mariadb 설치 (0) | 2024.02.20 |
---|---|
리눅스 tar (0) | 2024.02.20 |
centos7 firewalld 끄기 (0) | 2024.02.20 |
centos7 selinux(보안) 해제 (0) | 2024.02.20 |
vbox_centos7_내부아이피고정 (0) | 2024.02.20 |