How can I delete a user in linux when the system says its currently used in a process

0 votes

I am trying to delete a user I created on ubuntu.

However when I use the following command:

userdel -r cafe_fixer

I get the following message:

user cafe_fixer is currently used by process 15945

I am not using this user for anything I just created it and now wish to delete it.

Any help appreciated.

Apr 26, 2022 in Linux Administration by Edureka
• 13,690 points
608 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes
If the user you want to eliminate runs many processes, use the killall command. Even if the user is still logged in, the -f option requires the deactivation of the user account. It also requires deluser to delete the user's home directory and mail spool, even if the user's home directory is shared with another user.
answered Apr 27, 2022 by Edureka
• 13,690 points

edited Mar 5

Related Questions In Linux Administration

0 votes
0 answers

How can I monitor the thread count of a process on linux?

I would like to monitor the number ...READ MORE

Apr 21, 2022 in Linux Administration by Edureka
• 13,690 points
530 views
0 votes
1 answer
0 votes
1 answer

How to find the group associated with a user in linux?

To list all the groups groups or to list ...READ MORE

answered Jun 21, 2019 in Linux Administration by DareDev
• 6,890 points
1,071 views
0 votes
1 answer
0 votes
1 answer

How to check permissions of a folder in the Linux system?

Hi@akhtar, You can use ls command to check ...READ MORE

answered Aug 13, 2020 in Linux Administration by MD
• 95,460 points
10,175 views
0 votes
1 answer

How to give the read power of a folder in Linux system?

Hi@akhtar, You can use chmod command in your ...READ MORE

answered Aug 13, 2020 in Linux Administration by MD
• 95,460 points
1,446 views
0 votes
1 answer
0 votes
1 answer

How do I set variable if a specific package version is installed in CFEngine?

Here is what you can do.Just use packagesmatching to ...READ MORE

answered Jul 12, 2018 in Other DevOps Questions by Atul
• 10,240 points
1,431 views
0 votes
2 answers

Install postgreSQL on Ubuntu

Follow the below commands to install PostgreSQL (PSQL) ...READ MORE

answered Nov 12, 2020 in Database by Prachi
• 140 points
1,539 views
0 votes
1 answer

Access progrs prompt without switching accounts

Use the following to get the postgres prompt ...READ MORE

answered Mar 22, 2019 in Database by Mahi
968 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP