You should be able to set your path in a .bashrc or .cshrc file (depending
on your shell, I suppose - I seem to have both on my linux box at home,
though we run from a .cshrc file at work).
In a .bashrc the line would be:
export PATH=/usr/sbin:/usr/bin:/usr/local/bin:/usr/ccs/bin
While a .cshrc would use:
set PATH=/usr/sbin:/usr/bin:/usr/local/bin:/usr/ccs/bin
or
setenv PATH /usr/sbin:/usr/bin:/usr/local/bin:/usr/ccs/bin
Given that you're running tcsh, you'll probably need the .cshrc file. This
file is also good for setting up aliases and the like.
HTH.
Mur!
On Fri, 7 Jul 2000, Christian MacAuley wrote:
> Hi chix!
>
> While we're discussing the passwd file, i have a problem. I didn't
> really know another way to set my PATH automatically other than
> appending it to my shell line in my passwd file, like this:
>
> jellhead:x:100:1::/export/home/jellhead:/usr/local/bin/tcsh;setenv
> PATH /usr/sbin:/usr/bin:/usr/local/bin:/usr/ccs/bin
>
> This worked for me in linux in the past, but my Solaris Sparc server
> doesn't like it (i can't log in as jellhead anymore). Does anyone
> know a good alternative? I've considered a few other things, but i'm
> a little intimidated by this funky Solaris box ...
>
> # begin horror story
> Last time i made changes to my passwd file on this server, i decided i
> was really, really tired of using sh, so i decided to set my SHELL in
> the passwd file to /usr/local/bin/tcsh. Unfortunately i mistyped the
> path, and it was after i *saved the file and logged off* and tried to
> log back in using my new settings that i discovered NO ONE HAS ROOT
> ACCESS TO THE THING ANYMORE!! We had to go over to the rack (this is
> a Sun Netra1) and boot the thing off the CD to fix it. Luckily the
> sysadmins involved (i'm not the sysadmin, i'm the webmaster) didn't
> give me *too* hard of a time :-)
> # end horror story
>
> Thanx!
>
> ~Christian
>
> ____________________________________________________________________
> » Christian MacAuley » [EMAIL PROTECTED] » http://jellspace.net
>
>
>
> _______________________________________________
> techtalk mailing list
> [EMAIL PROTECTED]
> http://www.linux.org.uk/mailman/listinfo/techtalk
>
_______________________________________________
techtalk mailing list
[EMAIL PROTECTED]
http://www.linux.org.uk/mailman/listinfo/techtalk