Comments (6)
@sean-nixon thanks for raising this issue. Are you able to reproduce this issue?
from chef-os-hardening.
@artem-sidorenko I am. I just created a new Ubuntu 14.04 node in Azure and am seeing the same error. If I run chef-client directly, it works fine, however. I believe it's an environment issue with the Azure Chef extension. It's creating a crontab entry and not setting the path to include /usr/sbin. Any possibility of updating the recipe to use an absolute path?
from chef-os-hardening.
@sean-nixon I saw already similar issues in some other areas with cloud images :(
Before we discuss the option to add the full path within this cookbook, is there any option to inform the developers of Azure Chef extension about that issue? It should fail with lots of other cookbooks too, so I would like to see this issue ideally be fixed properly in the area, where it's also located...
from chef-os-hardening.
I've raised an issue with them. so we can see what they say.
Would it not be more secure, though, to invoke the command using the full path and not rely on it being in the path? I'm not sure if there's complexity regarding different paths on different distros/versions.
from chef-os-hardening.
@sean-nixon it should be fine as pam-auth-update
gets executed only on debian family, so it's unlikely to get a mismatch on different distributions.
I had a look to the issue: the /usr/S
bin is probably the reason why it's not in the default PATH. Not sure how this gets handled.
I think it's not a problem to add /usr/sbin
here for pam-auth-update
. @chris-rock any other view?
from chef-os-hardening.
I took the liberty to submit a pull request with the suggested fix pending Chris's feedback.
from chef-os-hardening.
Related Issues (20)
- Make a new release? HOT 3
- exec-shield incompatible with Oracle Linux UEK HOT 1
- Audit Daemon Fails on Amazon Linux 2 HOT 1
- Failing centos 7 dokken tests in the CI
- Wrong OpenSuse /etc/shadow membership
- undefined method `sysctl' for cookbook: os-hardening HOT 3
- Chef client failing on OS restart with Amazon Linux HOT 4
- os-hardening::profile recipe creating pinerolo_profile.sh file with .old extension on each chef-client run
- idempotency issues: "check package signature in repo files" and "remove_suid_from_blacklists" HOT 1
- pam-auth-update --package prompts interactive debconf
- Chef warning when /bin/su is a symlink
- Configuration conflict when using both chef-ssh-hardening and chef-os-hardening HOT 2
- chef exec rake lint fails, foodcritic deprecated HOT 1
- pwquality.conf defaults or suggested config HOT 1
- Amazon Linux 2 Auditd fails to restart
- Linux Baseline tests are failing for os-13 HOT 1
- Support for RHEL 8 / Rocky Linux 8 HOT 3
- Dependency Dashboard
- Amazon ECS agent can't start after hardening runs HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chef-os-hardening.