-
Notifications
You must be signed in to change notification settings - Fork 181
Add local export option to vagrant lxc sudoers #350
Comments
Another reason this feature is needed: On Fedora the root has a different PATH than my user. As root (when I run |
Just as a side note. Concering the order of the PATH search path, I found out that you can also adjust the sudoer PATH variable in the file /etc/sudoers. For example on my Ubuntu machine I have Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" On Fedora its probably slightly different. There are more subtle differences between the Fedora and Ubuntu versions of the sudoers file, which cause some confusions on my side from time to time when using sudo. @Ramblurr Maybe adjusting the secure_path variable is viable for you to fix the behaviour. |
@kufperk, thanks for the advice. I did consider secure_path however, and in this case it isn't related to the issue. Changing secure_path only affects the execution of the wrapper script, not its contents. The problem is vagrant-lxc is creating the |
@Ramblurr ah, I understand. Actually I have to admit I didn't test changing the secure_path in order to fix the issue with |
Hey, sorry for the silence here but this project is looking for maintainers 😅 As per #499, I've added the |
Related to #349 but a feature request
I run vagrant on a user with no sudo general permissions, so I need to setup the sudoers exceptions in a different user. I hacked the script on the wiki to use the correct values $SUDO_USER and $HOME in my use case.
It would be helpful if there was a
vagrant lxc sudoers --export
flag that output the sudoers contents to STDIN or a local file, so I can manually copy it to /etc/sudoers.d/X myself.The text was updated successfully, but these errors were encountered: