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.
good luck, -- (paka)Patrick Shanahan Plainfield, Indiana
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 Mark -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org