• 맑음동두천 3.5℃
  • 맑음강릉 10.2℃
  • 맑음서울 6.7℃
  • 맑음대전 4.9℃
  • 맑음대구 10.5℃
  • 맑음울산 10.4℃
  • 맑음광주 9.1℃
  • 맑음부산 12.9℃
  • 맑음고창 5.6℃
  • 맑음제주 14.0℃
  • 맑음강화 8.1℃
  • 맑음보은 2.1℃
  • 맑음금산 2.4℃
  • 맑음강진군 10.8℃
  • 맑음경주시 5.0℃
  • 맑음거제 7.4℃
기상청 제공

패스워드에 lock 걸어 잠그기

패스워드에 lock 걸어 잠그기


[root@push06 skel]# passwd -l kbs

Locking password for user kbs.

passwd: Success


[root@push06 skel]# grep kbs /etc/shadow

kbs:!!$1$aPkNiTws$ZV5bM4sc48RINJ0vK5U3f0:15947:0:99999:7:::


[root@push06 skel]# passwd -u kbs

Unlocking password for user kbs.

passwd: Success.