Dear Michel & daRcmaTTeR
Take a look at the Bash script (in ~/.bashrc or ~/.profile (or
~/.bash_profile)which loads the profile from each user. It actually takes
the info from /etc (I don't remember from which file exactly). I tried
removing this script - but the script in /etc is, I think, designed to still
export its "typical" profile even when the user's profile files are changes.
I am unsure about this as I don't understand the Bash syntax. This is, I
think, something specific to Mandrake and which must be designed for the
ease to add users having an immediately working $PATH variable.
My problem is - how to I over-rule this and change, say, ONE user's $PATH
without messing with the /etc script which affects ALL users.
Cheers,
Andrei
------------------------
Andrei,
Edit ~/.bashrc or ~/.profile (or ~/.bash_profile) -- I can't remember which
one the PATH variable itself is found in.
Michael
--
Michael Viron
Registered Linux User #81978
Senior Systems & Administration Consultant
Web Spinners, University of West Florida
At 10:05 PM 12/29/2001 +0100, you wrote:
>Hello,
>I would like to add a subdirectory to my $PATH. I triend the "export"
>command but it told me that it is not valid. Mandrake seems to offer a
>shared path to all users taken from bashrc (I am not sure about this). How
>could I edit ONLY MY PATH (my user path - not my root which I don't want to
>touch even if I find it) without affecting the one of the other users on my
>machine?
>Thanks,
>Andrei
>
-----
On Sat, 29 Dec 2001 19:31:25 -0600
Michael Viron <[EMAIL PROTECTED]> studiouisly spake these words to
ponder:
>Andrei,
>
>Edit ~/.bashrc or ~/.profile (or ~/.bash_profile) -- I can't remember which
>one the PATH variable itself is found in.
>
>Michael
>
You could also enter this command in a terminal.
PATH=$PATH:/some/path/to/be/added
example:
PATH=$PATH:/usr/local/bin
--
daRcmaTTeR
---------------------------------------------------------------------
If at first you don't succeed do what your wife told you to do
the first time!
Registered Linux User 182496
Mandrake 8.1
---------------------------------------------------------------------
1:05pm up 14 days, 4:54, 1 user, load average: 0.77, 0.81, 0.65
-----
you know...now that we're on the subject i'm a little unclear as to just how
this "PATH" thing works. for a bit I couldn't remember how I could get to
the
screen exactly "what" my path was until I typed this in a terminal:
which path
this is what was returned:
[mdw1982@mdw1982 mdw1982]$ which path
which: no path in
(/usr//bin:/bin:/usr/bin::/usr/local/bin:/usr/X11R6/bin:/usr/games:/home
/mdw1982/bin)
what "I" don't understand is just how this all works. I've always brought
"things" into my path by issuing the statement above since using
export PATH=$PATH:/some/path/statement
pnly enters the path statement temporarily whereas the former enters the
path
permenantly.
can some shed a little more light on this? this has really got my curiosity
peaked.
--
daRcmaTTeR
----
this is correct, since the program 'path' does not exist in your $PATH (the
shell variable). It's the same as trying to use a program not in your
path. For example, if you installed staroffice into /opt/soffice, then
since '/opt/soffice' isn't in your $PATH, you'd have to specify
specifically where the file is until you added the command 'export
PATH=$PATH:/opt/soffice' to your the .bashrc / .profile / .bash_profile
file.
>what "I" don't understand is just how this all works. I've always brought
"things" into my path by issuing the statement above since using
>
> export PATH=$PATH:/some/path/statement
>
>pnly enters the path statement temporarily whereas the former enters the
path permenantly.
>
Nope. Actually, neither adds it 'permanently'. The only way to do so is
edit the .profile or .bashrc or .bash_profile file and add it to the
setting for PATH.
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com