mirror of
https://github.com/ovh/the-bastion.git
synced 2026-05-09 16:35:33 +02:00
[GH-ISSUE #324] sudo: a password is required #79
Labels
No labels
answered
bug
documentation
enhancement
enhancement
feature
feature
kept-open-for-info
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/the-bastion#79
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @thannaske on GitHub (Jul 8, 2022).
Original GitHub issue: https://github.com/ovh/the-bastion/issues/324
I've installed the bastion on a standard minimal Ubuntu 20.04 by following the installation instructions and created an account that is a superowner, admin and auditor (My user is in the config file as well as in the system groups).
However, when trying to execute restricted commands, like
adminSudooraccountGrantCommandI run into the issue that the command fails with the errorsudo: a password is required.Do you have any idea why this happens and how I can fix this issue?
@speed47 commented on GitHub (Jul 8, 2022):
Hello,
Yes, this is because apparently your installation has been done under
/opt/the-bastion-3.08.01instead of/opt/bastion.As sudoers templates point to
/opt/bastion, this doesn't match your installation and commands undersudoare refused.Moving
/opt/the-bastion-3.08.01to/opt/bastionshould fix your problem.Out of curiosity, did you install it there on purpose? If not, then we might have to fix something in the documentation!
@thannaske commented on GitHub (Jul 8, 2022):
Thanks, you are a lifesaver! Simple yet major mistake from my side. I downloaded the tarball and softlinked it to /opt/bastion which the resulted in the sudo issues.
@speed47 commented on GitHub (Jul 8, 2022):
Glad to hear this fixed your issue!