If it is a selinux problem you'd get extra messages in audit log and syslog (messages) did you check these files for any extra messages?
Cheers,
K.
Main Topics
Browse All TopicsI'm not quite sure what happened, but now every time I try to delete a
user (userdel), it would sit there, hog up CPU/Memory and spam this
line in audit.log
type=USER_CHAUTHTOK msg=audit(1250709320.731:1
pid=25086 uid=0 auid=502 msg='op=deleting user from group acct=admin
exe="/usr/sbin/userdel" (hostname=?, addr=?, terminal=? res=failed)'
type=USER_CHAUTHTOK msg=audit(1250709320.731:1
pid=25086 uid=0 auid=502 msg='op=deleting user from group acct=admin
exe="/usr/sbin/userdel" (hostname=?, addr=?, terminal=? res=failed)'
type=USER_CHAUTHTOK msg=audit(1250709320.731:1
pid=25086 uid=0 auid=502 msg='op=deleting user from group acct=admin
exe="/usr/sbin/userdel" (hostname=?, addr=?, terminal=? res=failed)'
type=USER_CHAUTHTOK msg=audit(1250709320.731:1
pid=25086 uid=0 auid=502 msg='op=deleting user from group acct=admin
exe="/usr/sbin/userdel" (hostname=?, addr=?, terminal=? res=failed)'
type=USER_CHAUTHTOK msg=audit(1250709320.731:1
pid=25086 uid=0 auid=502 msg='op=deleting user from group acct=admin
exe="/usr/sbin/userdel" (hostname=?, addr=?, terminal=? res=failed)'
type=USER_CHAUTHTOK msg=audit(1250709320.731:1
pid=25086 uid=0 auid=502 msg='op=deleting user from group acct=admin
exe="/usr/sbin/userdel" (hostname=?, addr=?, terminal=? res=failed)'
Googling suggested that something went wrong with selinux? Could
anyone point me the right direction.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
First of ll it does not seem to be your system is SELinux enabled. If it were running SELinux then you would have SELinux info logged with your operation in the log such as:
type=USER_CHAUTHTOK msg=audit(1250763032.627:1
success)'
and it seems that you've auid=502. What is that ?? Will you post your output for these commands
id
finger admin
Nope, doesn't look like selinux is running, 502 is the group id of another group that admin belong to
[~]# selinuxenabled
[~]# echo $?
1
[~]# id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(da
[~]# finger admin
Login: admin Name: (null)
Directory: /home/admin Shell: /opt/scripts/startup.sh
Last login Mon Jun 8 14:16 (EDT) on pts/1 from 10.0.2.50
No mail.
No Plan.
Hi,
According to your posting the user has a shell /opt/scripts/startup.sh. But it seesm that neither the file exists not it is listed in /etc/shells. Try to change shell to bash: chsh admin and selecting bash.
you might like to remomve the user useing -f -r switches. The first is for force and rthe second is removing the home directory.
Please post the output og /var/lohG/messages too after an unsuccessfull attempt.
Cheers,
K.
I found my issue, somehow my group file was kinda hose. So essentially i have 2 users A and B
/etc/password
A:x:502:503
B:x:555:555
/etc/group
A:x:502:A,B
A:x:503:A,B
B:x:555:B
Somewhere in my adding removing the user scripts must have duplicate the user groups. So after fixing up the passwd and group file life is good again, Thanks for calling attention to the 502.
Business Accounts
Answer for Membership
by: fosiul01Posted on 2009-08-20 at 01:01:59ID: 25140115
try to disable selinux and delete a user
see if that works fine
then try to enable again ...