Help editing $PATH

Hey Folks,

I found the my PATH ends in a : which is a huge security risk. Unfortunately, I haven’t found a way to eliminate it. Can anyone help?
Thanks!

Tips for posting

Use a “keyword search” to make sure your question has not already been asked. For example “failed to verify key” or “sound is muted”.

Make sure you include enough detail so people know what you are running. A useful command is inxi -Fxz; copy and paste the text and format as “code” (e.g. use the </> button above).

If possible, paste text rather than upload a photo. Text is easier to read, searchable, and takes up less space on the server. Please don’t upload high-resolution photos.

For more information read this post: How to provide good information in your posts

Remember to remove all of this help text before you post.


Hello.

Did you look into ~/.profile file? The $PATH variable should be defined there, all you need is to remove trailing : from it, save the file and do the next in terminal:

source ~/.profile

to apply the changes.

No sir. The following is what I have in ~/.profile

export EDITOR=/usr/bin/nano
export QT_QPA_PLATFORMTHEME=“qt5ct”
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"

Look into this book:

https://sourceforge.net/projects/linuxcommand/files/TLCL/

Chapter 11 should help you out.

The PATH variable is auto-created after the system reads some files (command is run).
The standard place for this in Manjaro is

/etc/profile  <file>
/etc/profile.d/*   <folder>

Open the files in that folder and inspect what you think is done wrong.
If you don’t find anything, check your ~/.profile

What is the last part of your PATH? That may tell you which app/command has broken.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by