Giter Club home page Giter Club logo

Comments (6)

artem-sidorenko avatar artem-sidorenko commented on June 3, 2024

@sean-nixon thanks for raising this issue. Are you able to reproduce this issue?

from chef-os-hardening.

sean-nixon avatar sean-nixon commented on June 3, 2024

@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.

artem-sidorenko avatar artem-sidorenko commented on June 3, 2024

@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.

sean-nixon avatar sean-nixon commented on June 3, 2024

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.

artem-sidorenko avatar artem-sidorenko commented on June 3, 2024

@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/Sbin 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.

sean-nixon avatar sean-nixon commented on June 3, 2024

I took the liberty to submit a pull request with the suggested fix pending Chris's feedback.

from chef-os-hardening.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.