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
After fixing a problem with the default file path (3b1fbf4), i was also wondering why using su - $owner at all.
su will ask for a password if not run as root.
This could probably all be done as $(whoami) and fix the permissions later or just use the first version of this module (9d05b6e) and use sudo_user and sudo for the ansible task.
I'm doing the latter.
senosa
added a commit
to senosa/my-server
that referenced
this issue
May 25, 2014
The script uses
su - $owner
everywhere to run commands as the result ofwhoami
.This results in tty tickets if you don't have passwordless sudo.
Why not just run the commands instead?
For example,
Instead of:
Why not just:
The text was updated successfully, but these errors were encountered: