LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-05-2004, 11:49 PM   #1
drewski
LQ Newbie
 
Registered: May 2003
Distribution: Redhat/Slackware/FreeBSD
Posts: 4

Rep: Reputation: 0
question about $PATH


I just checked my what is stored in $PATH, and it includes the current directory (.) in it but it never used to. what files and/or settings are used to set $PATH initially (this problem occurs just after a boot/reboot) that could have appended the current working directory to my $PATH

using slackware 9.1 if that helps

thanks...andrew
 
Old 01-06-2004, 01:13 AM   #2
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 438

Rep: Reputation: 30
Check your ~/.bashrc as this is where you can specify more paths etc.
 
Old 01-06-2004, 02:17 AM   #3
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
/etc/profile sets the global path and any of several files may set your specific path, such as ~/.bash_profile, ~/.bash_login, ~/.profile and, if not a login shell or otherwise accessed, ~/.bashrc.

But the current directory is explicitly placed in the path of non-root users in the original Slack /etc/profile. Had it been altered, anyone or anything with root permissions could change your path and anything with those or your permissions could change your own files. That would be uncool, at best, though.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PATH question satimis Linux From Scratch 5 09-15-2005 10:23 AM
Another $PATH question iamnilo Fedora 2 09-13-2004 03:02 PM
question about $PATH SigningiS Linux - Newbie 17 10-27-2003 12:35 PM
Question on path PatC Linux - General 1 07-09-2002 09:17 AM
Question about PATH? eddielins Linux - General 6 04-02-2001 08:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:19 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