home   |   about us   |   our network   |   services   |   affiliates   |   contact
 
Services
» Web Hosting
» Reseller Hosting
» Dedicated Servers
» Windows/ASP.net Hosting
» Managed Web Hosting
» Server Security / Auditing
» Remote Backup / Storage
» Virtual Dedicated Servers
 
Support
» Support Desk
» Client Login
» Forums
» FAQs
» Help Files
» Acceptable Use Policy
» Client Testimonials
» Blog
 
Tutorials
» Dedicated Server Tutorial
» Website Optimization
» Search Engine Optimization
» Web Hosting Tutorials
» Web Programming Tutorials
» Networking Tutorials
» Virtual Server Tutorials
» Resources



The Crucial Blog - Archive

February 25, 2008

How to remove a user in Linux

To check if a user exists in , you can go:

1. You want to remove any files owned by that user, so use the following command:

find / -user username

2. Remove all files belonging to the user.

3. Remove the relevant lines from /etc/passwd and /etc/groups

For example:

cat /etc/passwd | grep username

This is the line you would want to remove if you are deleting the user ‘username’: username:x:503:503::/home/username:/bin/bash

Note: In some distributions you can use the command userdel, or deluser

Tags: , ,

Related posts


No Comments

Filed under: Uncategorized by — aaron @ 5:31 pm




     

Quick Links: Debian Dedicated Servers, Direct Deposit Hosting, Unmetered Dedicated Servers, Virtual Dedicated Servers, Windows Server Management, High Traffic Web Hosting - Load Balanced Clusters, Windows 2008 Server Virtual Dedicated Servers