Assalamo Alekum & Hello All,
I've a problem in deleting a user ID from deluser command.
It shows this
deluser ali.shaikh
Removing user `ali.shaikh'...
userdel: error deleting password entry
userdel: error deleting shadow password entry
done.
then I used this command deluser --remove-all-files ali.shaikh then it showed this
Looking for files to backup/remove...
Removing files...
Removing user `ali.shaikh'...
userdel: error deleting password entry
userdel: error deleting shadow password entry
done.
I need to delete this user account. Can any one help in this regard??
Deleting a User ID
-
- Lance Naik
- Posts: 32
- Joined: Mon May 04, 2009 4:08 pm
- Location: Hyderabad
- Contact:
-
- Lance Naik
- Posts: 32
- Joined: Mon May 04, 2009 4:08 pm
- Location: Hyderabad
- Contact:
-
- Lance Naik
- Posts: 32
- Joined: Mon May 04, 2009 4:08 pm
- Location: Hyderabad
- Contact:
-
- Cadet
- Posts: 7
- Joined: Thu Apr 23, 2009 8:26 am
solution
tell me that the info of user which u r deleting is present in /etc/password file and /etc/shadow file? if yes than you have to make sure that no process from that user is running, you can check that by
if some process is running by that user kill that process by Pid and than try to del the user, try this command
Code: Select all
ps -eaf | grep username
Code: Select all
userdel -r "username"
everything that seems to be true is not always true.