why I can't delete some users?, how to "clean VPS"?

Support for security such as Firewalls and securing linux
Post Reply
Windows
Posts: 59
Joined: 2021/06/16 13:20:01

why I can't delete some users?, how to "clean VPS"?

Post by Windows » 2021/10/02 08:38:10

hello.

When ISP delivery VPS:

Code: Select all

[root@pepsi ~]# cat /etc/passwd | cut -d: -f1 | sort
adm
avahi-autoipd
bin
centos
daemon
dbus
ftp
games
halt
lp
mail
nobody
operator
polkitd
postfix
root
shutdown
sshd
sync
systemd-bus-proxy
systemd-network
tss
whbadmin
whbhelper
[root@pepsi ~]#
you can see:

Code: Select all

avahi-autoipd
centos
systemd-bus-proxy
tss
whbadmin
whbhelper
six strangers users.

then we run:

Code: Select all

killall avahi-autoipd
killall centos
killall systemd-bus-proxy
killall tss
killall whbadmin
killall whbhelper

pkill -u avahi-autoipd
pkill -u centos
pkill -u systemd-bus-proxy
pkill -u tss
pkill -u whbadmin
pkill -u whbhelper
but when we try delete:

Code: Select all

[root@pepsi ~]# killall avahi-autoipd
avahi-autoipd: no process found
[root@pepsi ~]# killall centos
centos: no process found
[root@pepsi ~]# killall systemd-bus-proxy
systemd-bus-proxy: no process found
[root@pepsi ~]# killall tss
tss: no process found
[root@pepsi ~]# killall whbadmin
whbadmin: no process found
[root@pepsi ~]# killall whbhelper
whbhelper: no process found
[root@pepsi ~]# pkill -u avahi-autoipd
[root@pepsi ~]# pkill -u centos
[root@pepsi ~]# pkill -u systemd-bus-proxy
[root@pepsi ~]# pkill -u tss
[root@pepsi ~]# pkill -u whbadmin
[root@pepsi ~]# pkill -u whbhelper
[root@pepsi ~]# userdel -r avahi-autoipd
userdel: avahi-autoipd mail spool (/var/spool/mail/avahi-autoipd) not found
[root@pepsi ~]# userdel -r centos
[root@pepsi ~]# userdel -r systemd-bus-proxy
userdel: systemd-bus-proxy mail spool (/var/spool/mail/systemd-bus-proxy) not found
userdel: / not owned by systemd-bus-proxy, not removing
[root@pepsi ~]# userdel -r tss
userdel: tss mail spool (/var/spool/mail/tss) not found
userdel: /dev/null not owned by tss, not removing
[root@pepsi ~]# userdel -r whbadmin
[root@pepsi ~]# userdel -r whbhelper
[root@pepsi ~]#
wy no is possible delete some users??


this is sufficent to "clean VPS" ??


thanks

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: why I can't delete some users?, how to "clean VPS"?

Post by TrevorH » 2021/10/02 13:37:40

this is sufficent to "clean VPS" ??
No.

As I said before, if you do not trust your hoster then you need to move. They have physical control of your hardware and can do anything to it that they want. If you cannot trust them to start with then you cannot trust them full stop.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply