Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 fix(vpn): avoids sudo when running as root #238

Merged
merged 1 commit into from
Oct 6, 2023

Conversation

pallabpain
Copy link
Member

@pallabpain pallabpain commented Oct 4, 2023

Description

A few tailscale commands require root privilege to run and are executed with sudo. However, when the user is already the root user, the CLI throws an error. This PR fixes that by adding sudo only when the executing user is non-root.

image

@pallabpain pallabpain requested review from a team as code owners October 4, 2023 17:30
@github-actions
Copy link

github-actions bot commented Oct 4, 2023

🤖 Pull Request Artifacts (#6409462362) 🎉

@github-actions
Copy link

github-actions bot commented Oct 4, 2023

🤖 Pull Request Artifacts (#6409577940) 🎉

@pallabpain pallabpain self-assigned this Oct 5, 2023
@pallabpain pallabpain added the 🐛 bug Something isn't working label Oct 5, 2023
@pallabpain pallabpain changed the title fix(vpn): avoids sudo when running as root 🐛 fix(vpn): avoids sudo when running as root Oct 5, 2023
@ankitrgadiya ankitrgadiya merged commit 47ee4eb into devel Oct 6, 2023
7 checks passed
@pallabpain pallabpain deleted the fix/vpn-command branch October 10, 2023 04:43
@rr-github-ci-user
Copy link
Collaborator

🎉 This PR is included in version 5.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants