Can I userdel root? If not, then is there a way to remove root user?
Also what would be the consequences of doing so?
Tried looking around on google, and asked in a few discords, but couldn't get a satisfactory answer
Can I userdel root? If not, then is there a way to remove root user?
Also what would be the consequences of doing so?
Tried looking around on google, and asked in a few discords, but couldn't get a satisfactory answer
In Linux (like Unix), a large number of system processes depend on the root user being present in the server configuration. Although people may not log into the root user often, the system software makes constant use of the account to own files and directories, and to run processes whose internal data structures and on-disk files should not be exposed to the ordinary user accounts that people use.
Certainly create a non-root user account for yourself to use on the system, but don't delete the root user. If you do, many things will break, including your ability to log into the system and gain the privileges needed to repair the deletion.