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

unusual configuration quirk, affecting PATH #6

Open
Bushmills opened this issue Nov 21, 2024 · 0 comments
Open

unusual configuration quirk, affecting PATH #6

Bushmills opened this issue Nov 21, 2024 · 0 comments

Comments

@Bushmills
Copy link

The Apr 15 2024 version of /etc/profile with size of 8113 bytes - therefore unmodified, still in state as received - contains 205 identical lines, each of them appending /usr/sbin and /sbin to PATH.
The consequence is a hugely long PATH with many duplicates of these two directories.

Apparent purpose is to add the these directories also to PATH of user login, not just to root PATH.

I therefore logged in as user "sovol", the account defaulting to password "sovol", switched to root ("sudo sh"), edited /etc/profile, by removing all trailing export PATH="$PATH:/usr/sbin:/sbin", then appended these two directories to user path definition on line 7, which now reads:
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/sbin:/sbin"

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

1 participant