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

readable.by not working on RHEL7 #597

Closed
warroyo opened this issue Mar 28, 2016 · 3 comments
Closed

readable.by not working on RHEL7 #597

warroyo opened this issue Mar 28, 2016 · 3 comments

Comments

@warroyo
Copy link

warroyo commented Mar 28, 2016

I am attempting to use the readable.by and readable.by_user neither of which seems to be working. Here are the two problems I am seeing for each method.

readable.by: not sure if there is something else I need to set in order for this to work but mask is always nil

File /etc/at.allow should be executable by root
     Failure/Error: fail 'Invalid usergroup/owner provided' if mask.nil?

     RuntimeError:
       Invalid usergroup/owner provided

readable.by_user: This just hangs and does not return. I see the command running on the linux box but it is not returning.

@warroyo
Copy link
Author

warroyo commented Mar 28, 2016

i needed to add the --sudo option

@warroyo warroyo closed this as completed Mar 28, 2016
@chris-rock
Copy link
Contributor

@warroyo Should we think about a better cli output that indicates a missing sudo option?

@warroyo
Copy link
Author

warroyo commented Mar 29, 2016

Yes I think that would be great. The reason I did not find this sooner was due to mismatched documentation actually. The Chef Docs say there is a --disable_sudo option that is defaulted to false. and the documentation here says there is a --sudo option which is false. These two are conflicting so I thought I was using sudo the entire time because of the chef docs here. However like you said, some better output form the cli would definitely help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants