πŸ’»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}