After the handover user, / etc / profile configuration afford effective

When configuring the server, I will anaconda installed in the global environment under, but found a problem: it's time to switch users using su command, python command will fail. Because I will write the configuration information under the / etc / profile, so I guess / etc problem / profile file. Later I checked, and found that indeed is the case.

Time to switch users using su command, / etc / profile will fail, should use su - username.
For details, see: Click Portal

Guess you like

Origin www.cnblogs.com/mlgjb/p/11233877.html