0

In Linux Mint 20.3, even after reboot and as sudo su root from /home/admin user with deluser cees and userdel cees not finding user cees, /home/cees keeps reappearing after rm -rf /home/cees. Users and Groups doesn't show cees either. How to remove /home/cees permanently?

5
  • 2
    As root try rm -rf /home/cees; mkdir /home/cees; chmod 000 /home/cees; chattr +i /home/cees. Then reboot and look for errors from software trying access that directory. You will need to chattr -i /home/cees to be able to delete it later. Also find /etc/ -type f -exec grep -H cees {} \; might show something.
    – CR.
    Commented Mar 6, 2022 at 19:35
  • The command rm -rf cees does nothing unless $PWD is /home. You should specify full path: rm -rf /home/cees. Commented Mar 6, 2022 at 19:38
  • @fuzzydrawings It is, hence "coming back". I'll clarify the question. Commented Mar 6, 2022 at 19:41
  • @CeesTimmerman "Coming back" could mean you ran the command, saw the directory was still there, and assumed it "came back". You should clarify that the directory was indeed gone (ie, by showing output of ls /home). Commented Mar 6, 2022 at 20:00
  • @fuzzydrawings I would, but i'm cleaning a work laptop and didn't feel like logging in or making a photo. Commented Mar 6, 2022 at 20:02

1 Answer 1

0

Following CR.'s comment, as root in two terminals, i ran rm -rf /home/cees && mkdir /home/cees && chmod 000 /home/cees && chattr +i /home/cees and tail -f /var/log/syslog to see that restartmanger is the process attempting to create a kafka folder in /home/cees. Indeed docker image ls lists bitname/kafka. docker image rm bitnami/kafka after docker container rm container_id_using_kafka helped.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .