728x90
- uid : cat /etc/passwd
- gid : cat /etc/group
- create group : groupadd -g {gid} dba
- create user : useradd -u {uid} -g dba -m -d /home/oracle oracle
- change gid :
groupmod -g {new gid} dba
find / -group {old gid} -exec chgrp -h dba {} \;
- change uid :
usermod -u {new uid} oracle
find / -user {old uid} -exec chown -h oracle {} \;
- change group
usermod -g dba oracle
- delete uid :
userdel -rf oracle
- set password
passwd oracle -> 입력하면 비밀번호 입력하라고 함
728x90
'Linux&Utils > CentOS(Rhel)' 카테고리의 다른 글
perl 이용시 Can't locate ExtUtils/MakeMaker.pm 에러 (0) | 2021.03.23 |
---|---|
인증서(CA:Certificate Authority) (0) | 2021.02.11 |
linux server spec&port&process (0) | 2021.01.28 |
rpm&yum (0) | 2021.01.28 |
OS-Compiler의 종류에 따른 옵션 (0) | 2020.12.21 |