3

I'm sudoer on a remote linux machine and would like to create another user with the maximum privileges, except the privilege of managing my account. I'm assuming a sudoer can delete or change the password of another sudoer.

simpatico
  • 631

1 Answers1

9

The simple answer is that you can't. A user with root privileges can fatally harm your account in all kinds of way. Removing your account from the account database or changing your password is just one. Root can execute any process as your account, can snoop on everything done by any process on the system, can access and modify or remove your files, can access disks directly (bypassing all filesystem permissions), and so on.

If you want to give someone root privileges to perform a specific task, you can allow them to run only a specific command with sudo.

If you want to give someone broad privileges, give them on a virtual machine or virtual environment that you do not care about, and keep your account outside that virtual machine (in another VM or on the host system).