[CentOS] Deleting a user?

Heitor A. M. Cardozo heitor at centralserver.com.br
Sun Dec 2 00:47:15 UTC 2007


Probably the problem is in RPM package. Check .spec file to confirm if 
the user "hacluster" is being created twice.

Amos Shapira wrote:
> Hello,
>
> I've compiled linux-ha heartbeat into an RPM but when I try to install
> it (after "yum erase heartbeat*") it complains that the user hacluster
> still exists:
>
> # rpm -ivh heartbeat-2.1.2-1.x86_64.rpm
> Preparing...                ########################################### [100%]
> useradd: user hacluster exists
> error: %pre(heartbeat-2.1.2-1.x86_64) scriptlet failed, exit status 9
> error:   install: %pre scriptlet failed (2), skipping heartbeat-2.1.2-1
>
> I ran "userdel -r hacluster" which just disabled the user login then
> edited /etc/passwd and /etc/shadow to remove this user completely, but
> I still get this error.
>
> What else can I do to remove this user and help useradd succeed? I'd
> rather not force script-skipping if at all possible.
>
> Thanks,
>
> --Amos
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>   



More information about the CentOS mailing list