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 10:15] – 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. | ||
| + | 2. Type the following command and enter the root password. | ||
| + | su root | ||
| + | {{: | ||
| + | |||
| + | 3. You will now be in root.\\ {{: | ||
| + | |||
| + | 4. Type this command and press '' | ||
| + | sudo visudo | ||
| + | |||
| + | {{: | ||
| + | |||
| + | 5. ''/ | ||
| + | |||
| + | 6. Scroll down until you see this. | ||
| + | #User Privilege Specification | ||
| + | |||
| + | {{: | ||
| + | |||
| + | 7. Add the following line '' | ||
| + | eusoff ALL=(ALL: | ||
| + | | ||
| + | {{: | ||
| + | |||
| + | 8. 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.1736763307.txt.gz · Last modified: 2025/01/13 10:15 by 1211112228
