[GH-ISSUE #19] Goodhosts check requires a writable hosts file #9

Closed
opened 2026-03-02 05:09:07 +03:00 by kerem · 2 comments
Owner

Originally created by @tomjn on GitHub (Oct 18, 2020).
Original GitHub issue: https://github.com/goodhosts/cli/issues/19

Originally assigned to: @luthermonson on GitHub.

The check subcommand requires a writable hosts file, but it doesn't write to the hosts file. I should be able to use the check subcommand without needing to use sudo or changing the write permissions of the hosts file if it's readable to all users

❯ goodhosts check vvv.test
Host file not writable. Try running with elevated privileges.
❯ sudo goodhosts check vvv.test
vvv.test exists in hosts file
Originally created by @tomjn on GitHub (Oct 18, 2020). Original GitHub issue: https://github.com/goodhosts/cli/issues/19 Originally assigned to: @luthermonson on GitHub. The `check` subcommand requires a writable hosts file, but it doesn't write to the hosts file. I should be able to use the `check` subcommand without needing to use `sudo` or changing the write permissions of the hosts file if it's readable to all users ``` ❯ goodhosts check vvv.test Host file not writable. Try running with elevated privileges. ``` ``` ❯ sudo goodhosts check vvv.test vvv.test exists in hosts file ```
kerem closed this issue 2026-03-02 05:09:07 +03:00
Author
Owner

@tomjn commented on GitHub (Oct 18, 2020):

Likewise with the list debug and backup subcommands

<!-- gh-comment-id:711159891 --> @tomjn commented on GitHub (Oct 18, 2020): Likewise with the `list` `debug` and `backup` subcommands
Author
Owner

@luthermonson commented on GitHub (Oct 18, 2020):

super good suggestion, let me see if i can pull that off

<!-- gh-comment-id:711335075 --> @luthermonson commented on GitHub (Oct 18, 2020): super good suggestion, let me see if i can pull that off
Sign in to join this conversation.
No labels
bug
bug
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cli#9
No description provided.