Morgan Jones on 28 Mar 2016 14:28:02 -0700 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] Odd script problem |
I would discourage sourcing anything in ~ for scripts that are intended to be deterministic. Months from now you may make a change to your environment which will break your script. It’s also a security risk as you’re allowing an attacker access to a script that might be running as root by editing a presumably less privileged user’s environment. I would suggest you define the environment for the script deterministically whether it be in the script it self or in a profile that is not tied to an interactive user. -morgan
|
___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug