From 219cd6fa520941789567a635805477c5a50ba78d Mon Sep 17 00:00:00 2001 From: Brandon Peterson Date: Tue, 28 Jan 2025 15:23:36 -0700 Subject: [PATCH 1/4] Updated SETTING_PATH.md for changes to affect all users Signed-off-by: Brandon Peterson --- troubleshooting/SETTING_PATH.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/troubleshooting/SETTING_PATH.md b/troubleshooting/SETTING_PATH.md index 62572e7..13bf2b2 100644 --- a/troubleshooting/SETTING_PATH.md +++ b/troubleshooting/SETTING_PATH.md @@ -37,7 +37,7 @@ echo 'PATH=/QOpenSys/pkgs/bin:$PATH' >> $HOME/.profile echo 'export PATH' >> $HOME/.profile ``` -To make this change for all users, put these lines in `/QOpenSys/etc/profile`, +To make this change for all users, put these lines in `/QOpenSys/etc/profile.local`, like so: ```bash @@ -47,6 +47,14 @@ echo 'PATH=/QOpenSys/pkgs/bin:$PATH' >> /QOpenSys/etc/profile echo 'export PATH' >> /QOpenSys/etc/profile ``` +Another way to make this change for all users that will also affect PASE programs called +directly via QP2SHELL is to add the PASE_PATH environment variable at *SYS level. Run +this as a *SECOFR class user: + +``` +ADDENVVAR ENVVAR(PASE_PATH) VALUE('/QOpenSys/pkgs/bin:/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin') LEVEL(*SYS) +``` + **Need to run globally-installed Node.js modules, or choose a Node.js version on a per-user basis?** From 99fbca23d19080fdccb2ffd55d1992b8ecb01554 Mon Sep 17 00:00:00 2001 From: Brandon Peterson Date: Tue, 28 Jan 2025 17:20:10 -0700 Subject: [PATCH 2/4] Add additional comment about setting the PATH globally Signed-off-by: Brandon Peterson --- troubleshooting/SETTING_PATH.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/troubleshooting/SETTING_PATH.md b/troubleshooting/SETTING_PATH.md index 13bf2b2..0315d59 100644 --- a/troubleshooting/SETTING_PATH.md +++ b/troubleshooting/SETTING_PATH.md @@ -48,8 +48,9 @@ echo 'export PATH' >> /QOpenSys/etc/profile ``` Another way to make this change for all users that will also affect PASE programs called -directly via QP2SHELL is to add the PASE_PATH environment variable at *SYS level. Run -this as a *SECOFR class user: +directly via QP2SHELL is to add the PASE_PATH environment variable at *SYS level. You +may want to do this in addition to the above, make test all your use cases to ensure the path +is as desired (ie QP2TERM, QP2SHELL, and SSH). Run this as a *SECOFR class user: ``` ADDENVVAR ENVVAR(PASE_PATH) VALUE('/QOpenSys/pkgs/bin:/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin') LEVEL(*SYS) From 33a603e46104a12a084a75403c72fbdeacdfef50 Mon Sep 17 00:00:00 2001 From: Brandon Peterson Date: Wed, 29 Jan 2025 09:08:05 -0700 Subject: [PATCH 3/4] Apply suggestions from code review Co-authored-by: Korinne Adler Signed-off-by: Brandon Peterson --- troubleshooting/SETTING_PATH.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/troubleshooting/SETTING_PATH.md b/troubleshooting/SETTING_PATH.md index 0315d59..5ec3172 100644 --- a/troubleshooting/SETTING_PATH.md +++ b/troubleshooting/SETTING_PATH.md @@ -49,10 +49,11 @@ echo 'export PATH' >> /QOpenSys/etc/profile Another way to make this change for all users that will also affect PASE programs called directly via QP2SHELL is to add the PASE_PATH environment variable at *SYS level. You -may want to do this in addition to the above, make test all your use cases to ensure the path -is as desired (ie QP2TERM, QP2SHELL, and SSH). Run this as a *SECOFR class user: +may want to do this in addition to the above, make sure to test all your use cases +(eg. QP2TERM, QP2SHELL, and SSH) to ensure the path is as desired. Run this as a *SECOFR +class user: -``` +```text ADDENVVAR ENVVAR(PASE_PATH) VALUE('/QOpenSys/pkgs/bin:/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin') LEVEL(*SYS) ``` From a022ee6ed0f73a4a2c6a1feae94a3989758a1c69 Mon Sep 17 00:00:00 2001 From: Brandon Peterson Date: Wed, 29 Jan 2025 09:13:47 -0700 Subject: [PATCH 4/4] Forgot to fix the example commands updating /QOpenSys/etc/profile.local Signed-off-by: Brandon Peterson --- troubleshooting/SETTING_PATH.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/troubleshooting/SETTING_PATH.md b/troubleshooting/SETTING_PATH.md index 5ec3172..beeaa19 100644 --- a/troubleshooting/SETTING_PATH.md +++ b/troubleshooting/SETTING_PATH.md @@ -41,10 +41,10 @@ To make this change for all users, put these lines in `/QOpenSys/etc/profile.loc like so: ```bash -touch /QOpenSys/etc/profile -setccsid 1208 /QOpenSys/etc/profile -echo 'PATH=/QOpenSys/pkgs/bin:$PATH' >> /QOpenSys/etc/profile -echo 'export PATH' >> /QOpenSys/etc/profile +touch /QOpenSys/etc/profile.local +setccsid 1208 /QOpenSys/etc/profile.local +echo 'PATH=/QOpenSys/pkgs/bin:$PATH' >> /QOpenSys/etc/profile.local +echo 'export PATH' >> /QOpenSys/etc/profile.local ``` Another way to make this change for all users that will also affect PASE programs called