sudoers
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| sudoers [2025/01/13 12:53] – 1211112228 | sudoers [2025/01/18 08:46] (current) – 1211112299 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Add Sudoers without Sudo ====== | ====== Add Sudoers without Sudo ====== | ||
| - | Let's say you are have just freshly installed your new Linux OS on a brand new PC or VM. After you have setup the username and password | + | Let's say you have just freshly installed your new Linux OS on a brand new PC or VM. After you setup the username and password, you encountered a problem when trying to install a new software. The problem is you could not use sudo. |
| - | {{ : | + | |
| - | ==== Do not falter. Here is a guide on how to add yourself into sudoers: ==== | + | {{:screenshot_2025-01-13_181052.png? |
| + | **Here is a guide on how to add yourself into sudoers. Make sure to follow the instructions on [[root|this]] first to prevent any errors.** | ||
| + | ----- | ||
| + | 1. Open terminal. | ||
| - | 1. Open terminal | + | 2. Type the following command and enter the root password. |
| + | su root | ||
| - | 2. Go to root by using command '' | + | {{: |
| - | {{: | + | 3. You will now be in root.\\ |
| - | 3. You will now be in root. | + | 4. Type this command and press '' |
| + | sudo visudo | ||
| - | {{: | + | {{: |
| - | 4. Enter command | + | 5. '' |
| - | {{: | + | 6. Scroll down until you see this. |
| + | #User Privilege Specification | ||
| - | 5. ''/ | + | {{: |
| - | {{: | + | 7. Add the following line '' |
| - | + | ||
| - | 6. Scroll down until you see the '' | + | |
| - | + | ||
| - | {{: | + | |
| - | + | ||
| - | 7. Add your username and add '' | + | |
| eusoff ALL=(ALL: | eusoff ALL=(ALL: | ||
| + | | ||
| + | {{: | ||
| - | {{: | + | 8. Press '' |
| - | + | ||
| - | 8. Once we have written everything, press '' | + | |
| - | + | ||
| - | {{: | + | |
| + | 9. Now your username will have sudo permissions.\\ {{: | ||
| + | ----- | ||
| + | Now, you are able to run commands that require sudo permission without going into root! | ||
sudoers.1736772814.txt.gz · Last modified: 2025/01/13 12:53 by 1211112228
