iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more
Need a server to try this on? Antihost offers Linux VPS plans with NVMe storage, full root access and a 14-day free trial.
On Ubuntu 24.04, create a local account with sudo adduser username. Give it administrator privileges only when necessary with sudo adduser username sudo. Remove an account with sudo deluser username; that command normally leaves the user’s home directory intact. Delete or archive the home directory separately, and only after confirming that its files are backed up and no longer needed.
Choose the right method first
Ubuntu 24.04 offers two ways to manage ordinary local accounts:
| Method | Where it works | Strengths | Important limitations |
|---|---|---|---|
Terminal with adduser and deluser |
Ubuntu Server and Ubuntu Desktop | Repeatable, scriptable, explicit control over groups and file retention | Requires an administrator shell and careful command entry |
| Settings application | Ubuntu Desktop | Discoverable interface with a clear choice to keep or delete the home folder | Not available on a headless server; less convenient for repeated administration |
The commands in this guide manage local users stored by Ubuntu’s standard account system. They do not by themselves remove an identity from an external directory service, cloud identity provider, or an application’s own user database.
Before you change any account
Use an existing administrator account
Account creation and deletion require root privileges. Sign in with an account that already has administrator rights and prefix the commands with sudo. Do not remove your only account that can run sudo until another administrator has been tested.
#1 Best Overall
- Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
- With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
- Wide Application: attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
- Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
- Economical &Reusable: Built durable materials with a long-lasting battery,our CAGIWIRU air duster it's a sustainable alternative to disposable air cans.
Decide what should happen to the files
Deleting an account and deleting its files are separate operations. Before removing anyone, decide whether the home directory should be:
- Kept in place for later review.
- Moved to an archive location or backed up.
- Permanently removed after the backup has been verified.
Ubuntu’s desktop documentation warns that files deleted through the account-removal dialog cannot be recovered. Treat permanent removal as irreversible rather than as a routine cleanup step.
Recommended Free Tools
Check for active use
For a person’s account, ask the user to sign out. For a service or automation account, first investigate running processes, scheduled jobs, SSH keys, application configuration, and files owned by that account. Removing the login can break software that still expects the account to exist.
Add a user from the terminal
Run the standard Ubuntu command
Replace alice with the login name you want to create:
sudo adduser alice
adduser is Ubuntu’s friendlier Debian policy layer over lower-level tools such as useradd. It normally selects a policy-compliant numeric UID and GID, creates a same-name primary group, creates /home/alice, and copies the initial files from /etc/skel. The command prompts for a password and optional descriptive fields such as the user’s full name, room number, work phone, home phone, and other comment information. Press Enter at a comment prompt if you do not need to supply it.
The command asks you to confirm the information before it completes. A successful run creates a login that can start a session but does not automatically grant administrator privileges.
Free tools Windows power users keep installed
One-click scans. No signup required.
Confirm the new identity
Use the standard inspection commands to verify the account and its groups:
id alice
groups alice
The output should show the account’s numeric UID, its primary group, and any supplementary groups. You can also check that the home directory exists:
Rank #2
- Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
- Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
- Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
- Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
- Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth
ls -ld /home/alice
If the user should sign in graphically, the account is now available to the desktop login manager. On a server, the user can authenticate through the services that are configured to accept local accounts, such as SSH.
Give a user administrator access
Add the account to Ubuntu’s sudo group
Grant administrator privileges only when the person or service genuinely needs them:
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
sudo adduser alice sudo
Ubuntu documents membership in the sudo group as the normal way to allow administrator commands. The account still has to authenticate when prompted by sudo, subject to the system’s policy.
Make the group change take effect
Supplementary groups are assigned when a login session starts. Have Alice sign out of every desktop, SSH, or terminal session and sign in again. A shell that was already open before the change may continue to use the old group list.
After the new session starts, verify membership:
id alice
groups alice
To test the privilege without making a system change, Alice can run:
sudo -v
That command validates the user’s ability to authenticate to sudo. Avoid testing with a destructive command.
Remove administrator access without deleting the account
If the user no longer needs elevated rights, remove the supplementary-group membership while keeping the login and its files:
sudo deluser alice sudo
The user must again start a new login session before the reduced group list is reflected in running programs. This changes administrator access; it does not disable the account or remove its home directory.
Rank #3
- 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
- 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
- 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
- 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
- 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.
Delete a user but keep the home directory
Use deluser without a removal option
After confirming that the account is not still being used, run:
sudo deluser alice
On Ubuntu, this removes the account record but does not remove the corresponding home folder by default. The directory, such as /home/alice, remains on disk with files still carrying the former numeric UID and GID as their ownership.
Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchPC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Review and protect the retained data
Inspect the directory and decide whether it should remain on the machine, be archived, or be moved:
sudo ls -la /home/alice
sudo du -sh /home/alice
Retaining a directory is useful when you need records, configuration, or a later transfer to another account. It also creates a security decision: files are not automatically reassigned to a different person.
Numeric ownership matters because Linux records the UID and GID, not just the former name. If a future account is assigned the same UID or GID, it could appear to own those retained files. Ubuntu’s user-management guidance recommends changing ownership or relocating the directory when appropriate. Do not solve this by blindly running a recursive ownership change; first determine which files should belong to which replacement account.
Archive the directory without destroying it
A cautious pattern is to remove the login and move the home directory to a protected archive location:
The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →sudo deluser alice
sudo mkdir -p /home/archived_users
sudo mv /home/alice /home/archived_users/alice
Choose an archive location with suitable permissions and backups. Moving the directory prevents a newly created /home/alice from being confused with the retained data, while preserving the files for later review. If the directory contains sensitive material, restrict access to the administrators who need it.
Delete a user and remove the home directory
Verify the decision before using a removal option
Permanent deletion is appropriate only when retention, legal, operational, and backup requirements have been satisfied. Confirm that:
Rank #4
- 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
- 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
- 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
- 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
- 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.
- You have a verified backup or an explicit decision that no backup is required.
- No running process, scheduled task, or application still needs the account or its files.
- You are deleting the intended login, not a similarly named service account.
- Another administrator can recover the system if the account was used by automation.
Check the installed command’s documentation
The Noble (Ubuntu 24.04) package provides a home-removal option for deluser, but options can vary with the installed package. Read the local manual before using it:
man deluser
When the manual confirms the option, the direct command is:
sudo deluser --remove-home alice
This removes the account and requests removal of its home directory. Check the command’s output for warnings, and independently verify that any required backup is readable. Do not assume that removing the account alone has deleted files, and do not assume that a deletion can be undone.
Use a two-stage workflow when you are uncertain
If you might need the data later, use the safer sequence instead:
sudo deluser alice
sudo mv /home/alice /home/archived_users/alice
You can review the archive, copy selected files to a new owner, and destroy it later under a separate change decision. This adds an explicit checkpoint between disabling the login and destroying its data.
Delete an account in Ubuntu Desktop
Open the user-management panel
- Open Activities and launch Settings.
- Open System, then select Users.
- Select Unlock and authenticate when prompted.
- Select the account under Other Users.
- Choose Remove User….
Choose what happens to the home folder
The removal dialog lets you keep the home folder or choose Delete Files. Select the keep option when you need to preserve records or plan an archive. Choose Delete Files only after checking backups and confirming that permanent loss is acceptable. Ubuntu states that files deleted this way cannot be recovered.
The graphical method performs the same fundamental separation as the terminal method: removing the account is distinct from deciding whether its home data remains. The dialog is convenient for a one-off desktop change, while the terminal is preferable for servers, repeatable procedures, and explicit archiving.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Common problems and their fixes
“Permission denied” or an authentication failure
Run the command from an account that is already allowed to use sudo, and enter that account’s password when prompted. A normal user cannot create or delete another local account without administrative authorization.
Best Value
- 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
- 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
- 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
- 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
- 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.
The user cannot use sudo immediately
Check the group list with id alice. If sudo is present but the user’s existing terminal still behaves as before, have the user sign out and back in. Group membership is applied to new sessions, not retroactively to every process already running.
The home directory remains after deletion
This is expected after sudo deluser alice. The default command removes the account record, not the home folder. Inspect the directory, archive it, reassign selected files where appropriate, or use the locally documented --remove-home option only after verifying the backup and the retention decision.
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Clear out junk files and repair common Windows errors3Fix the driver behind crashes, sound loss and screen glitchesFiles show a number instead of a username
That usually means the files are still owned by the former numeric UID after the account was removed. Do not create a replacement account merely to make the name reappear. First identify the intended owner, then use a deliberate ownership change or move the files into an archive with controlled permissions.
The account appears busy
Sign out interactive sessions and stop services that run as the account before deletion. If the identity is used by a daemon, inspect its service unit, environment files, scheduled jobs, SSH keys, and application configuration. Removing the login does not automatically update those dependencies.
You are trying to remove root
Do not do this. Ubuntu’s adduser/deluser tooling refuses to delete the root account because it is fundamental to system recovery and administration.
You removed the only administrator
Do not intentionally reach this state. Before deleting any administrator, create or verify another administrator, test its sudo access in a fresh session, and keep an approved recovery path. If the mistake has already happened, use an authorized console or Ubuntu recovery procedure rather than repeatedly attempting ordinary account commands.
Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →A practical decision checklist
- Creating a normal login: run
sudo adduser username, supply the requested password and fields, then verify withid username. - Adding administration: run
sudo adduser username sudo, then require a new login session and verify group membership. - Removing only the login: stop active use and run
sudo deluser username; inspect the retained home directory. - Keeping data safely: move the former home directory to an archive location and review numeric ownership before reuse.
- Destroying data: verify backups, read
man deluser, and use the installed package’s documented--remove-homeoption only when deletion is intentional. - Using the desktop: follow Settings > System > Users > Unlock > Other Users > Remove User…, then choose whether to keep or delete the home folder.
What the commands change
| Action | Account record | Home directory | Administrator access |
|---|---|---|---|
sudo adduser alice |
Creates a local user, UID, primary group, and login credentials | Creates /home/alice from /etc/skel |
Not granted automatically |
sudo adduser alice sudo |
Keeps the account | Unchanged | Adds membership in Ubuntu’s administrator group |
sudo deluser alice |
Removes the account | Normally retained | Login-based access ends with account removal |
sudo deluser --remove-home alice, when confirmed by the local manual |
Removes the account | Requests permanent removal of the home directory | Login-based access ends with account removal |
Frequently asked questions
Can I create a user without giving them administrator rights?
Yes. sudo adduser username creates the account without adding it to the sudo group. Grant elevated access separately only if the role requires it.
Can I delete an Ubuntu user without deleting their files?
Yes. Run sudo deluser username without a home-removal option. The home directory remains, so review its numeric ownership and protect or archive the data.
Why should a user sign out after being added to sudo?
Existing processes keep the group list they received at login. A new session loads the updated supplementary groups.
Is the graphical method available on Ubuntu Server?
No. The Settings route requires Ubuntu Desktop. On a server, use the terminal commands through a local console or an authorized remote session.
Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minutePC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

