Computer Science, asked by satabdipal012, 7 months ago

How can a user added and deleted from a Unix system?

Answers

Answered by programmer89
1

Answer:

Linux delete user command syntax

Explanation:

The syntax is as follows to remove a user account on Linux.

userdel userName

userdel [options] userName

userdel -r userName

userdel command examples

Let us remove the user named vivek or account named vivek from the local Linux system / server / workstation, enter:

# userdel vivek

Next, delete the user’s home directory and mail spool pass the -r option to userdel for a user named ashish, enter:

# userdel -r ashish

The above command will remove all files along with the home directory itself and the user’s mail spool. Please note that files located in other file systems will have to be searched for and deleted manually. Pass the -f option for force removal of files, even if not owned by user:

# userdel -r -f tom

To remove any SELinux user mapping for the user pass the -Z option:

# userdel -Z -r -f jerry

Where,

-f : Delete Linux user account with force removal of files

-r : Remove Linux user account including home directory and mail spool

-Z : Remove any SELinux user mapping for the user when deleting user from Linux

Answered by priteshm2013
2

Answer:

an user can hack or delete the contact

Similar questions