IT/LINUX

userdel 사용법(userdel: user ** is currently loggen in... 발생 시)

ssung85 2020. 10. 12. 16:35
728x90

계정만 삭제

#userdel [계정명]

계정,홈디렉토리 삭제

#userdel -r [계정명]

 

가끔 userdel: user ** is currently loggen in... 메시지 나오면서 안되는 경우가 있음

 

그럴때, #userdel -r -f [계정명]

강제 삭제를 한다.

 

user 삭제 후 /etc/group 안의 계정 그룹도 같이 삭제 하면 된다.

728x90

'IT > LINUX' 카테고리의 다른 글

df-h 명령어 실행 할때 tmpfs 숨기기  (0) 2020.10.16
CentOS7 SSH Port 변경  (0) 2020.10.16
rsync를_활용한_linux_os_마이그레이션  (0) 2020.10.16
Centos NFS 설정 세팅 하기  (0) 2020.10.13
Centos7 SAMBA 설치/세팅  (0) 2020.10.11