Yes, you can create multiple superusers (i.e. users with administrative privileges) in Linux. In Linux, the term "superuser" is often associated with the root user, who has unrestricted rights on the system. However, you can also give other users administrative privileges by adding them to the sudoers file. Here's how you can do that:
1. Create a new user:
sudo adduser newuser
2. Add the new user to the sudo group:
In many distributions such as Ubuntu and Debian, members of the sudo group have administrative privileges. You can add the new user to this group:
sudo usermod -aG sudo newuser
On other distributions like CentOS or Fedora, the wheel group could be used:
sudo usermod -aG wheel newuser
3. Check permissions:
You can make sure the new user has sudo privileges by logging in as that user and running a sudo command:
su - newuser sudo whoami
The sudo whoami command should output root if everything is set up correctly.
4. Edit the sudoers file (optional):
If you want to set special permissions for the user, you can edit the sudoers file using visudo:
sudo visudo
Add a line to grant special permissions. For example:
newuser ALL=(ALL) NOPASSWD: ALL
This line allows the user newuser to execute all commands without asking for a password. Note that this poses security risks.
By following these steps, you can have multiple users with administrative privileges on your Linux system.