User Tools

Site Tools


root

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
root [2025/01/18 04:19] – created 1211112228root [2025/01/18 08:11] (current) – 1211112299
Line 2: Line 2:
  
 ===== Enabling root and superuser on Debian ===== ===== Enabling root and superuser on Debian =====
 +This section will show you how to enable root account and superuser on Debian.
 +-----
 +1. Click on Activities on the top left corner of the screen. You can also press the Windows key as a shortcut. {{image_2025-01-16_140330413.png?nolink}}
  
-  - Click on Activities on the top left corner of the screen. You can also press the Windows key as a shortcut. {{image_2025-01-16_140330413.png}} +2. Search for Settings and click on it. 
-  - Search for Settings and click on it. {{image_2025-01-16_140456909.png?100}} +\\ {{image_2025-01-16_140456909.png?nolink}}
-  - On the left pane, scroll down or search for Users and click on it. {{image_2025-01-16_140517967.png}} +
-  - On the blue bar at the top of the page, click Unlock.\\ {{image_2025-01-16_140545623.png?500}} +
-  - Then, enter your user password as the Administrator's password. In my case, it is 1211112299. Once that is done, you should notice that the blue bar is gone. +
-  - Now press Activities again, and search for Terminal. Click on it. {{image_2025-01-16_140920616.png?100}} +
-  - Type ''sudo whoami'' and see the results.\\ {{image_2025-01-16_140944452.png}}\\ The user megat is not in the sudoers file, we need to change that.\\ {{image_2025-01-16_141000786.png}}  +
-  - Type ''su root'' to go into root.\\ {{image_2025-01-16_141354849.png}}\\ Notice that ''megat@vbox'' changed to ''root@vbox''.\\ {{image_2025-01-16_141422924.png}} +
-  - Type ''sudo visudo /etc/sudoers'' to edit the sudoers file.\\ {{image_2025-01-16_141612910.png}} +
-  - Search for the line ''# User privilege specification''.\\ {{image_2025-01-16_141628075.png}} +
-  - Add the line ''megat    ALL=(ALL:ALL) ALL''.\\ {{image_2025-01-16_141753705.png}} +
-  - Save the file using Ctrl + O -> Enter -> Ctrl + X. +
-  - Type ''exit'' to exit root.\\ {{image_2025-01-16_141931069.png}} +
-  - Type ''sudo whoami'' again and see the difference.\\ {{image_2025-01-16_142011640.png}}+
  
-**Congratulations, user megat now has sudo permissions!**+3. On the left pane, scroll down or search for Users and click on it. {{image_2025-01-16_140517967.png?nolink}}
  
 +4. On the blue bar at the top of the page, click Unlock.
 +\\ {{image_2025-01-16_140545623.png?nolink&600}}
 +
 +5. Then, enter your user password as the Administrator's password. In my case, it is 1211112299. Once that is done, you should notice that the blue bar is gone.
 +-----
 +You have successfully enabled root and superusers on your Debian! Click this [[Sudoers|link]] to know how to add your accounts to sudo group.
root.1737173961.txt.gz · Last modified: 2025/01/18 04:19 by 1211112228

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki