Skip to content

Commit

Permalink
chore: Use env variables for sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
red-0ne committed Dec 4, 2024
1 parent 15330da commit ec6fd67
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ This is necessary, in particular, if you want to use [homebrew](https://brew.sh/
```bash
# Create a new user and give sudo permissions
export USERNAME=olshansky
sudo adduser $USERNAME
sudo usermod -aG sudo,docker red0ne
adduser $USERNAME
usermod -aG sudo,docker $USERNAME
```

You can also avoid needing to pass in the password each time by running the following:
Expand All @@ -154,10 +154,9 @@ olshansky ALL=(ALL) NOPASSWD:ALL
Then, switch to the new user:

```bash
su - olshansky
su - $USERNAME
```


### Clone the Repository <!-- omit in toc -->

```bash
Expand Down

0 comments on commit ec6fd67

Please sign in to comment.