mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:42:44 +00:00 
			
		
		
		
	 98c0c5e9e6
			
		
	
	
		98c0c5e9e6
		
	
	
	
	
		
			
			The URLs of the form `help://man/<section>/<page>` link to another help page inside the help application. All previous relative page links are replaced by this new form. This doesn't change any behavior but it looks much nicer :^) Note that man doesn't handle these new links, but the previous relative links didn't work either.
		
			
				
	
	
		
			43 lines
		
	
	
	
		
			740 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
	
		
			740 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ## Name
 | |
| 
 | |
| userdel - delete a user account
 | |
| 
 | |
| ## Synopsis
 | |
| 
 | |
| ```**sh
 | |
| # userdel [-r] <login>
 | |
| ```
 | |
| 
 | |
| ## Description
 | |
| 
 | |
| This program deletes a user account in the system.
 | |
| 
 | |
| This program must be run as root.
 | |
| 
 | |
| ## Options
 | |
| 
 | |
| * `-r`, `--remove`: Remove the home directory for this user if the directory exists.
 | |
| 
 | |
| ## Exit Values
 | |
| 
 | |
| * 0 - Success
 | |
| * 1 - Couldn't update the password file
 | |
| * 6 - Specified user doesn't exist
 | |
| * 12 - Couldn't remove home directory
 | |
| 
 | |
| ## Files
 | |
| 
 | |
| * `/etc/passwd` - user information (such as UID and GID) in this file is deleted.
 | |
| * `/home/` - user home directory is deleted if the `-r` flag is specified.
 | |
| 
 | |
| ## Examples
 | |
| 
 | |
| ```sh
 | |
| # userdel alice
 | |
| # userdel -r alice
 | |
| # userdel --remove alice
 | |
| ```
 | |
| 
 | |
| ## See Also
 | |
| 
 | |
| * [`useradd`(8)](help://man/8/useradd)
 |