SV-248635r991589_rule
V-248635
SRG-OS-000480-GPOS-00227
OL08-00-010690
CAT II
10
Edit the local interactive user initialization files to change any PATH variable statements that reference directories other than their home directory.
If a local interactive user requires path variables to reference a directory owned by the application, it must be documented with the ISSO.
Verify that all local interactive user initialization files' executable search path statements do not contain statements that will reference a working directory other than the users' home directory with the following commands:
Note: The example will be for the "smithj" user, which has a home directory of "/home/smithj".
$ sudo grep -i path /home/smithj/.*
/home/smithj/.bash_profile:PATH=$PATH:$HOME/.local/bin:$HOME/bin
/home/smithj/.bash_profile:export PATH
If any local interactive user initialization files have executable search path statements that include directories outside of their home directory, this is a finding.
V-248635
False
OL08-00-010690
Verify that all local interactive user initialization files' executable search path statements do not contain statements that will reference a working directory other than the users' home directory with the following commands:
Note: The example will be for the "smithj" user, which has a home directory of "/home/smithj".
$ sudo grep -i path /home/smithj/.*
/home/smithj/.bash_profile:PATH=$PATH:$HOME/.local/bin:$HOME/bin
/home/smithj/.bash_profile:export PATH
If any local interactive user initialization files have executable search path statements that include directories outside of their home directory, this is a finding.
M
5416