* Mark Misulich <munguanaweza@gmail.com> [05-16-18 21:50]:
On Wed, 2018-05-16 at 20:06 -0400, Patrick Shanahan wrote:
* Mark Misulich <munguanaweza@gmail.com> [05-16-18 19:49]: [...]
I used the export statement
export PATH=/usr/local/bin:$PATH
in my current bash session, and after that I was able to start rkhunter as normal from root. Of course, when I closed the bash session and started a new bash root session, it didn't work until I used the export statement once again.
I wanted to make the path change permanent for the system. I found that there was no /etc/profile.local so I made a profile.local file in /etc and copied the export statement in it. I tried it out, and rkhunter wouldn't start. So I must be doing it incorrectly. Can you provide me with instructions as to how to do this correctly?
the "permanent" change is only affected upon a new login. logout completely and login again and check the PATH for /usr/local/bin, echo $PATH it should be there and remain until you change it. the reason for /etc/profile.local is so system updates will not alter it. another solution would be to install shadow which I *thought* was installed automagically, apparently I was wrong. zypper if shadow/rpm -qi shadow: This package includes the necessary programs for converting plain password files to the shadow password format and to manage user and group accounts.
or as someone else suggested, add it to ~/.bashrc or ~/.bash.profile which is initiated upon opening a new instance of <shell,program>, iirc.
I would prefer /etc/profile.local.
Hi, Thanks for the suggestions.
I found that shadow was already installed, but I can't start it. I think that it must be affected by the same issue as rkhunter was. It also does not appear in the application menu.
As far as /etc/profile.local I think I just don't know the correct way to create the file. Here's what I did, but since it didn't work I think I must have done it wrong. Can you suggest some corrections?
cat <<EOF>/etc/profile.local export PATH=/usr/local/bin:$PATH EOF
follow Carlos' suggestion, edit with a text editor you say shadow was already installed, what version and what does the following provide: grep "/usr/local/bin" /etc/login.defs every system I have provides: ENV_PATH PATH=/usr/local/bin:/usr/bin:/bin which should place "/usr/local/bin" into your $PATH -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Registered Linux User #207535 @ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org