Step 6: At the end, we will delete the user account in Server. Step 5: Display all the files that are owned by the user. Step 4: Then delete the printed jobs available in the system. Step 3: Remove cron jobs that are set by the user. We can use the tar option to compress the size of the files. Step 2: Then, we need to back up the files from the user’s home directory to a backup folder. Step 1: The first step to delete a user in Linux Server is to lock the user’s account. Optionsįorcefully delete a user account and also with forceful removal of files.ĭeletes user account along with mail spool and user’s home directoryĭeletes SELinux users if they are mapped for the users while deleting user from Linux.įollow the below process step by step to delete a user in Linux: -z : Deletes SELinux users if they are mapped for the users while deleting user from Linux.īelow are the options that we can use to perform the delete operation on a user in Server. ![]() -r : Deletes user account along with mail spool and user’s home directory.-f : Forcefully delete a user account and also with forceful removal of files. ![]() Here the below options are used with userdel command in Linux:
0 Comments
Leave a Reply. |