LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-08-2019, 10:47 PM   #1
55sgu
LQ Newbie
 
Registered: Jun 2019
Posts: 29

Rep: Reputation: Disabled
$PATH: output showing malicious program?


Debian OS.

I read that using "echo $PATH", for NON-root users should resemble: /usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/username/bin:

I read that using "echo $PATH", for ROOT users should resemble: /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin.

QUESTION: when I type into ~$ "echo $PATH", I get: /home/uname/bin:/home/uname/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

This looks like what should be the output for a root user. Is this something I should be concerned about, such as there being a "malicious executable program" in my directory giving (unauthorized remote) root access when I have not initiated root access?

Last edited by 55sgu; 06-08-2019 at 10:48 PM. Reason: clarify
 
Old 06-09-2019, 12:02 AM   #2
wvermin
Member
 
Registered: Jun 2019
Posts: 34

Rep: Reputation: Disabled
Your PATH looks normal to me, if your login name is 'uname'.
 
Old 06-09-2019, 05:56 AM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
That path environment is fine.
 
Old 06-09-2019, 10:47 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,736

Rep: Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921
Quote:
/home/uname/bin:/home/uname/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
In addition, the default path environment depends on the distribution/version. This can be changed quite easily for your user by manually editing your local profile configuration files in your home directory or the system start up files. It is possible that programs you installed changed the path environment.

Quote:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
This is typically a debian default users path.

Quote:
/home/uname/bin:/home/uname/.local/bin
Many distributions also include a /home/username/bin as default too. /home/uname/.local/bin is unusual since it also includes a hidden directory unless the . is a typographical error. Does /home/uname/bin exist and are there any file in that directory? Does /home/uname/.local/bin exist and are there any files in that directory?

Did you use uname to obfuscate your actual username or is what you posted the actual path? The path environment does not indicate a malicious executable program does or does not exist because they can be hidden anywhere.

Last edited by michaelk; 06-09-2019 at 10:49 AM.
 
Old 06-09-2019, 11:13 AM   #5
55sgu
LQ Newbie
 
Registered: Jun 2019
Posts: 29

Original Poster
Rep: Reputation: Disabled
Thanks to everyone who replied.

MK: For both of them, "no such file or directory". "Uname obfuscates my real username (uname = username).

Last edited by 55sgu; 06-09-2019 at 11:14 AM. Reason: additional pt
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Passwd command is showing "BAD PASSWORD:" as output but there was nothing after the colon, where there should be some reason output. yogesh95 Linux - Software 4 03-31-2016 07:50 AM
[SOLVED] Screen not showing on laptop but showing on projector when connected someshpr Linux - General 3 04-18-2011 04:58 PM
Shared Library error its showing while i want to see output of the program joti Linux - Newbie 2 11-29-2008 05:26 AM
(PHP) Stopping Malicious Form Input Obi Perrin Programming 0 04-27-2003 07:43 PM
Protecting against malicious PHP paranoid Linux - Security 0 03-14-2003 09:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration