Coder Social home page Coder Social logo

Comments (2)

toontong avatar toontong commented on June 15, 2024

2012年到现在还不修复这个问题, 搞毛阿, 都2015年了

from chef-user.

theckman avatar theckman commented on June 15, 2024

@darthdeus I've just recently stared to help out with this cookbook. Sorry it's taken nearly 4 years to get you a reply.

I think this has less to do with this cookbook and more about the type of shell that's being invoked by sudo su. I believe /etc/profile and /etc/profile.d are only sourced for login shells. When you invoke sudo su <user> you don't get a login shell. I believe if you were to switch to the user by running sudo -iu <user> you would have /etc/profile.d/* be sourced.

I've confirmed this in a test-kitchen VM that was generated by the integration tests of this repo. You can also determine which kind of shell you're in by running echo $0. If the shell name starts with a -, it's a login shell.

I don't believe this is a chef-user issue and will close this issue. If you think this isn't the case, please give me a shout and I'd be happy to reopen the ticket.

from chef-user.

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.