💻 Software
How to delete a user in Ubuntu but keep his home dir?
Fresh7 days ago
Mar 15, 202613767 viewsConfidence Score0%
0%
Problem
I need to delete a user, but I need to keep his home dir. I tried , but this also removes his home dir. Is there a way to do this?
Error Output
userdel -r user
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How to delete a user in Ubuntu but keep his home dir?
Low Risk
The does the exact opposite of what you want. From : Instead of , just use:
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix