Debian Delete User

Debian Delete User

debian delete userThis is how to Debian Delete User.
Here is two different methods on delete user in Debian. One will keep the users home directory. The other will delete the use and the home directory.

Debian Delete User – Method 1

In this example we will delete the user John. And we will keep his home directory. Because he had some interesting files in there. No, seriously there could be a thousand reasons to keep his home directory.

root@debian:/home# deluser john
Removing user `john’ …
Warning: group `john’ has no more members.
Done.

Debian Delete User – Method 2

In this example we will delete the user John and his home directory. We just want to ged rid of it all.
Here is how you do it.

root@web:/home# deluser –remove-home john
Looking for files to backup/remove …
Removing files …
Removing user `john’ …
Warning: group `john’ has no more members.
Done.

Now everything is gone. The user and his entire home directory.
So that is how you delete users in Debian.

Happy deleting!

About Author

Related Posts

php8 gd

PHP8 gd Activate after installation

PHP8 GD activate after installation. GD doesn’t get activated by default. Not even a reboot after installation will activate it. So how do we do it? In…

Debian 12: linux-image-6.1.0-10amd64

Troubleshooting dependency issues in Debian 12: Resolving linux-image-6.1.0-10amd64 package dependency problems. If you installed the Debian 12 from the live image the issue is the raspi-firmware. Even…

4 Best Free Nas Software That Is Open Source

Free NAS software or operating systems that are free to use and will turn a computer into a NAS more advanced than the dedicated boxes sold. What…

Raspbian default password

Raspbian default password

Looking for the Raspbian default password? It is the most essential username and password that you will need for your raspberry. At least if you are running…

OpenMediaVault default password

OpenMediaVault default password

OpenMediaVault default password is printed in the documentation. I did not see it the first time I installed it either. So I had to do some detective…

Debian change dns

Debian change DNS settings to a new DNS

Debian change DNS settings for speed improvement or privacy. It is really easy to do. So let us see how it’s done and get to it. The…

Leave a Reply