The userdel
command is used to delete user accounts from a Linux system. If you receive an error message stating that the user is currently used by process 749, it means that the user account is currently in use by a process with the process ID 749.
To fix this error, you will need to find the process with the process ID 749 and either terminate it or wait for it to finish before deleting the user account. You can use the ps
command to find the process with the process ID 749:
ps aux | grep 749
This will list all processes with the process ID 749. If the process is a legitimate process that you want to keep running, you can wait for it to finish before deleting the user account. If the process is not needed, you can use the kill
command to terminate it:
kill 749
Once the process has been terminated or has finished running, you can delete the user account using the userdel
command:
userdel igiadm.com
This will delete the user account igiadm.com
from the system. Note that deleting a user account will also delete the user's home directory and any other files owned by the user.