Skip to content

Commit

Permalink
Quote the chmod for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
itaylor committed Mar 15, 2022
1 parent a3e08fc commit cb0cbb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ We need to give your user permission to modify the /etc/hosts file. This is don

On MacOS, run in terminal:
```sh
chmod +a user:$(whoami) allow read,write,append,readattr,writeattr,readextattr,writeextattr,readsecurity /etc/hosts
chmod +a "user:$(whoami) allow read,write,append,readattr,writeattr,readextattr,writeextattr,readsecurity" /etc/hosts
```

On Windows... Powershell is too complex for me to understand how to do it as a script, so in the UI:
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Make sure of the following:
2. You are running as a user who has access to the file
3. On Mac and Windows, the `etc/hosts` file is protected by ACLs. You will need to set an ACL setting to allow your user to modify the the file.
On Mac this can be done by running this command:
`chmod +a user:$(whoami) allow read,write,append,readattr,writeattr,readextattr,writeextattr,readsecurity /etc/hosts`
`chmod +a \"user:$(whoami) allow read,write,append,readattr,writeattr,readextattr,writeextattr,readsecurity\" /etc/hosts`
See the readme.md for windows directions
If you wish to use a different path, set the `HOST_FILE_LOCATION` env var or pass the `-h` argument.
Expand Down

0 comments on commit cb0cbb7

Please sign in to comment.