Password prompt for /etc/hosts setup is confusing
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- bash
- Domain
- cli
Research direction
Start at obolup.sh:1038-1043 and inspect the password-prompt path for updating /etc/hosts. Clarify that the prompt requests the user's system (sudo) password and explain that it is needed to modify the protected file; verify the wording does not affect the existing passwordless-sudo message.
Written by the indexing model from the issue text.
Description
Password prompt for /etc/hosts setup is confusing
Problem
During obolup.sh, users are prompted for a password to add obol.stack to /etc/hosts. The current wording is unclear:
[!] Administrator privileges required to update /etc/hosts
Please enter your password when prompted to add:
127.0.0.1 obol.stack
Issues:
- Doesn't clearly state this is the system/sudo password (not a new password being created)
- Doesn't explain why we need it (to modify the protected
/etc/hostsfile) - Users may be confused about what password to enter
Current Code
obolup.sh:1038-1043:
log_warn "Administrator privileges required to update /etc/hosts"
echo ""
echo "Please enter your password when prompted to add:"
echo " $hosts_entry"
echo ""
Proposed Fix
Improve the wording to be more explicit:
log_warn "Administrator privileges required to update /etc/hosts"
echo ""
echo "You will be prompted for your system password (sudo) to add:"
echo " $hosts_entry"
echo ""
echo "This is required to modify the protected /etc/hosts file."
echo ""
Or even simpler:
echo ""
echo "Administrator privileges required to add obol.stack to /etc/hosts"
echo ""
echo "You will be prompted for your system (sudo) password to add:"
echo " $hosts_entry"
echo ""
Additional Context
This only affects users without passwordless sudo configured. Users with NOPASSWD sudo see:
[→] Updating /etc/hosts with existing privileges...
The confusion is specific to the password prompt scenario.
- Dominant language
- Go
- Stars
- 11
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ObolNetwork/obol-stack
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ObolNetwork/obol-stack#612 ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
ObolNetwork/obol-stack#829 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 72/100
ObolNetwork/obol-stack#828 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
ObolNetwork/obol-stack#821 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
ObolNetwork/obol-stack#807 · 1 comment ·
All issues in ObolNetwork/obol-stack
Similar issues
-
bug github_actions
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
registrystack/registry-stack#1393 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
JakeChampion/lang#10213 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
oasisprotocol/oasis-sdk#2523 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100