π»Tech/π§Linux
[리λ μ€] κ³μ μμ±, ν¨μ€μλ λ§λ£ μ€μ , ν¨μ€μλ λ³κ²½
_viper_
2019. 5. 23. 11:28
λ°μν
βΎ κ³μ , ν¨μ€μλ μμ± λ°©λ²
## κ³μ μμ±
useradd ${user_id}
## ν¨μ€μλ μ€μ
passwd ${user_id}
βΎ κ³μ ν¨μ€μλ λ§λ£λμ§ μλλ‘ μ€μ
## λ³κ²½
chage -E -1 -I 0 -m 0 -M 99999 ${user_id}
## μ‘°ν
chage -l ${user_id}
βΎ κ³μ ν¨μ€μλ λ³κ²½
## root κ³μ μΌλ‘ μ μ
root or sudo
## ν¨μ€μλ λ³κ²½
sudo passwd ${user_id}