useradd myuser
'myuser'라는 유저추가
cd /etc/passwd
유저정보를 볼수있는 커맨드
tail -5 /etc/passwd
tail -5 끝에서 5줄 출력
cd /etc/group
group정보볼때 경로변경
groupadd centosGroup
centosGroup이라는 그룹추가
useradd -g centosGroup user1
useradd -g centosGroup user2
user1을 centosGroup그룹에 추가한다
패스워드 볼려면
tail -5 /etc/shadow
yum -y install system-config-users
시스템컨피그 유저 패키지
명령 유저 상세 볼수잇음 x윈도우에서
system-config-users
사용자 상황 볼수있음 명령
userdel -r user1
폴더까지 삭제 명령
자주사용하는커맨드
useradd
usermod
passwd
groupadd
사용자 /etc/passwd
그룹 /etc/group
'리눅스' 카테고리의 다른 글
리눅스 시그널(Signal) (0) | 2020.04.04 |
---|---|
리눅스 포어그라운드와 백그라운드 (0) | 2020.04.02 |
프로그램 설치를 위한 RPM (0) | 2019.02.21 |
이것이 리눅스다 하드링크,심볼링크 (0) | 2019.02.19 |
이것이 리눅스다 공부 (0) | 2019.02.13 |