Software-OK
≡... News | ... Home | ... FAQ | Impressum | Contact | Listed at | Thank you |

  
HOME ► Windows Linux - Beginner ► «««« 02 / 02 »»»»

Can I create multiple superusers under Linux?


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.






Updated on: 28 August 2024 15:56 Windows
Keywords: beginner, linux, create, multiple, superusers, under, users, with, administrative, privileges, term, superuser, often, associated


Similar information on the page

Windows

... Wi-Fi and Wireless display on Windows 11?


The wireless display function under Windows 11 is very convenient and easy to make a presentation on the big TV screen in the living room or in the office
Windows

... Easy Share the folder with everyone on Windows 11?


The easy file sharing in Windows 11 can be deactivated and activated quite easily via the corresponding folder or drive options Content: 1. Share Folder,
Windows

... Clean up TEMP quickly on Windows 11


Its easy to quickly clean up temporary files and temporary folders on Windows 11 or with one button klick 1. Deleting the temporary files via the
Windows

... Multiple windows with multiple monitors behave on Windows 11


The new function to easily influence the behavior of the window with multiple monitors on Windows 11 is practical and can also be adapted Everyone probably
Windows

... Is the new Windows 11 really installed?


It is quite easy to see whether the new Windows 11 has really been installed on your computer Content: 1. Is the new Windows 11 installed? 2.
Windows

... Difference between screen keyboard and touch keyboard, Windows 11, 10, ...?


The difference between screen keyboard and touch keyboard under Windows 11, 10, The ►  classic on-screen keyboard and the touchscreen keyboard  are
Windows

... Uninstall applications on Windows 11


Nothing is easier than uninstalling applications under Windows 11 to free up a little space on your PC 1. Uninstall Windows applications quickly



▲ Back to the top ▲




Beginner # Hardware # Install # Security # Update #




  

  + Freeware
  + Order on the PC
  + File management
  + Automation
  + Office Tools
  + PC testing tools
  + Decoration and fun
  + Desktop-Clocks
  + Security

  + SoftwareOK Pages
  + Micro Staff
  + Freeware-1
  + Freeware-2
  + Freeware-3
  + FAQ
  + Downloads

  + Top
  + Desktop-OK
  + The Quad Explorer
  + Don't Sleep
  + Win-Scan-2-PDF
  + Quick-Text-Past
  + Print Folder Tree
  + Find Same Images
  + Experience-Index-OK
  + Font-View-OK


  + Freeware
  + ThisIsMyFile
  + TheAeroClock
  + Bitte.Wenden
  + CoronaKO
  + MatriX.CoronaKO
  + Find.Same.Images.OK
  + 3D.Benchmark.OK
  + PhotoResizerOK
  + Office.Files.Images
  + PAD-s


Home | Thanks | Contact | Link me | FAQ | Settings | Windows 10 | English-AV | Impressum | Translate | PayPal | PAD-s

 © 2025 by Nenad Hrg ERR2: softwareok.de • softwareok.com • softwareok.com • softwareok.eu


► Maximize Window Minimize keyboard shortcuts and so on Windows 11, 10, ..! ◄
► Change the language in Run dialog? ◄
► Windows 10 Edge on the desktop and quick launch bar as a shortcut? ◄
► Fastest way to a Quickly scan for malware and spyware on Windows-10 / 11! ◄


This website does not store personal data. However, third-party providers are used to display ads,
which are managed by Google and comply with the IAB Transparency and Consent Framework (IAB-TCF).
The CMP ID is 300 and can be individually customized at the bottom of the page.
more Infos & Privacy Policy

....