Looking for this i do the following:

[john@homer /etc]$ grep -r PATH= * 2>/dev/null |grep -v \$PATH

Read the man page for grep to find out what this is doing. The 2>/dev/null part 
redirects all of
the error messages generated (try it without that to see what kind of errors) to the 
bit bucket.
And i'm excluding $PATH b/c i don't want to look at any additions to an already 
defined path (like
PATH=$PATH:/whatever:/whatever/else), i only want to look at the first definition(s) 
of PATH.

That command spews out a bunch of stuff. The files that look like likely candidates, 
to me, are
the following:

rc.d/rc.sysinit:PATH=/bin:/sbin:/usr/bin:/usr/sbin
rc.sysinit:PATH=/bin:/sbin:/usr/bin:/usr/sbin  

I don't know if modifying either of those to adjust the path is the thing that is 
commonly done.
Another place you can change the path is in /etc/skel/.bash_profile. /etc/skel/ 
contains all of
the files that are placed in a newly created home directory.

Hope that helps to point you in the right direction :-)
j

--- Dave Hand <[EMAIL PROTECTED]> wrote:
> This may be a dumb question and if so I appoligize in advance. I would
> like to know where the default path is defined so that I can customize
> it. The advantage being that as I add users they would automatically get
> it at log on.
> 
> Dave
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

Reply via email to