You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When installing pycons2rtapi in a non-global manner (i.e. via virtualenv or with --user), the user is still required to have sudo access so that the client can bootstrap the global config directory in /etc/pycons3rt/conf, even though it is not using it to store its configuration file.
Steps to reproduce
Use this role and/or follow manual steps similar to these, omitting the step where /etc/pycons3rt/conf is created manually:
Once installed, run any cons3rt command (i.e. cons3rt --help) and you will notice that a permission denied error is thrown because the client is unable to automatically create the directory in /etc/ without passing sudo. Passing sudo makes the config files installed in the virtualenv or local user directory owned by root making them unusable without chowning them or calling the client with sudo each time.
Recommended fix
Have the client create the global configuration directory conditionally, instead of always.
Issue
When installing
pycons2rtapiin a non-global manner (i.e. via virtualenv or with --user), the user is still required to havesudoaccess so that the client can bootstrap the global config directory in /etc/pycons3rt/conf, even though it is not using it to store its configuration file.Steps to reproduce
Use this role and/or follow manual steps similar to these, omitting the step where /etc/pycons3rt/conf is created manually:
Once installed, run any
cons3rtcommand (i.e.cons3rt --help) and you will notice that a permission denied error is thrown because the client is unable to automatically create the directory in /etc/ without passingsudo. Passingsudomakes the config files installed in the virtualenv or local user directory owned byrootmaking them unusable withoutchowning them or calling the client withsudoeach time.Recommended fix
Have the client create the global configuration directory conditionally, instead of always.