Skip to content

Updated SETTING_PATH.md for changes to affect all users #176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions troubleshooting/SETTING_PATH.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,24 @@ 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
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
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 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)
```

**Need to run globally-installed Node.js modules,
Expand Down