Skip to content
This repository has been archived by the owner on Dec 28, 2020. It is now read-only.

Commit

Permalink
password no longer required
Browse files Browse the repository at this point in the history
  • Loading branch information
Bradley Mackey committed Feb 11, 2020
1 parent 17bc1ce commit 2a9cae1
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions README.md
Expand Up @@ -24,20 +24,26 @@ Anyway, to get around having to use the crappy Turbo-Boost Switcher GUI, we take

Download the directory and place in your home folder (`~/turbo-boost-disable`).

Create a simple password text file, called `password`.
This is so we don't have to ask for your login password on each login.
This password should be your `sudo` password, which is probably the same as your computer login password.
The file should just be a single line text file with your password included in it.
Place this file at the root of the directory with all the other files.
We need to run `load.sh` and `unload.sh` as root.
Therefore, modify your `/etc/sudoers` file to not require a password for these scripts.

Make the file writable:
```sh
yourpasswordhere
$ sudo chmod +w /etc/sudoers
```

Append these lines to `/etc/sudoers`, replacing `myusername` with your login username:
```
myusername ALL= NOPASSWD: /Users/myusername/turbo-boost-disable/load.sh
myusername ALL= NOPASSWD: /Users/myusername/turbo-boost-disable/unload.sh
```

> #### 🛑 IMPORTANT 🛑
> This means your password will be stored in plaintext in this directory within the `password` file.
> Ensure that only people that know the `sudo` password are users of the computer where this tool is enabled.
Make the file only readable again:
```sh
$ sudo chmod -w /etc/sudoers
```

Make all the scripts executable:
Make all the scripts we need to run executable:
```sh
$ chmod +x *{.sh,.exp}
```
Expand Down

0 comments on commit 2a9cae1

Please sign in to comment.