Skip to content
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

Default users PATH is changed #52

Open
lmeinecke opened this issue May 6, 2015 · 4 comments
Open

Default users PATH is changed #52

lmeinecke opened this issue May 6, 2015 · 4 comments

Comments

@lmeinecke
Copy link
Contributor

Which script is modifying the default users PATH? I noticed that non-sudo users cannot run ifconfig or any commands in /sbin. Or rather they're world executable/readable but the path isn't set correctly for the command to work in any directory other than the one they reside in.

I've got this problem on stig-fix 1.7.8 and hardening-scripts 1.0

@fcaviggia
Copy link
Owner

Check gen000940.sh and gen000960.sh - those controls dealt with the path.

@lmeinecke
Copy link
Contributor Author

Those two scripts seem innocent enough. I've got a system running stig-fix 1.7.7 and on it the default users have :sbin: (among other dirs) in their PATH. All the newer ones do not. From a Red Hat 6 standpoint I'm not sure where the default users PATH is defined.

@fcaviggia
Copy link
Owner

For the default path I'd probably check in the /etc/profile or /etc/bashrc

@lmeinecke
Copy link
Contributor Author

Yea, I checked those and they looked good. /etc/profile seems to be where it defines what root (0) gets and then everyone else. Checked /etc/profile.d and there were several scripts but most weren't executable. I'll post a solution if I ever find one. I'm curious if anyone else has PATH issues with this release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants