Pittman, Merle wrote:
> add the "PATH=/dirpath/Mozzilla" line to your ".kshrc" file or ".bashrc"
> file, depending on what shell you run.
Should not be added to either of those files; it should be added to
.bash_profile, which is only sourced upon initial login.
.bashrc is sourced every time you open a terminal window and the PATH
generally doesn't need to be sourced every time you open a terminal window.
It normally only needs to be set once.
However, if the person having this trouble wants other users to be able to
run mozilla or mozzilla, how ever it's spelled, then this should be added to
the system-wide file, which is /etc/profile.
The other option is to set it in root's local .bash_profile file and copy the
change to the /etc/skel/.bash_profile file. These skel files get copied to
each user's account home directory when ever a new user account is created,
whereas /etc/profile is executed when ever any user logs in, every time the
user logs in, but not every time a terminal window is opened (as for the
$HOME/.bashrc file).
Nothing will get broken by placing the PATH definition in .bashrc, but the
PATH variable is not an item that changes dynamically or anything of the sort;
therefore, .bash_profile is the more appropriate of the two files for this,
that is, other than for /etc/profile.
If you don't want to place the PATH definition in /etc/profile, but still
want users to have access to mozilla, then place the definition in root's
.bash_profile file and update the one in the /etc/skel directory.
If you only want some users to have access to mozilla, but not all users, then
you could place the definition in /etc/profile and then add the directory to
PATH while using code to exclude the users you don't want to allow access to
mozilla.
I don't know mozilla; therefore, I don't know the name of the executable. You
don't, however, want to include the name of the executable in the PATH. Only
directories are specified in PATH.
The only other alternative to modifying PATH would be to create an alias.
This would leave PATH unchanged and assuming the mozilla executable is
installed in /usr/local/bin, say, and this directory is not in PATH, the
alias would be
alias mozilla='/usr/local/bin/mozilla'
If mozilla, however, is in /usr/local/bin and this directory isn't in PATH,
then add the directory to your PATH, in the .bash_profile file.
.bash_profile and .bashrc have dot's for the first character of the name, to
cause these to be normally hidden files. In /etc directory, the files don't
have a preceding dot, albeit the files in /etc/skel do, because these are used
for creating the skeleton files for the home directories of users, when new
user accounts are created.
Hence, in /etc (but not /etc/skel) don't put a dot in front of the names of
bashrc and profile. I don't know why /etc/profile was used, instead of
/etc/bash_profile, but it may be for compatibility with ksh, because ksh also
uses profile in /etc, while using .profile in the user home directory and
.kshrc instead of .bashrc.
Check where the mozilla or mozzilla executable is located. If it's in a
system bin directory, then you can add this directory to PATH. If mozzilla or
mozilla is under root's home directory, then only make the change to
PATH locally to root, so only root has access to it, that is, if that's where
the moz* executable is supposed to be installed. If that's not where it's
supposed to be installed, then moz* should be reinstalled correctly.
Whether or not it's installed from an rpm, you'ld need to look on the cdrom to
find out. If it's in an rpm, then it should be under Mandrake/RPMS. You can
mount the cdrom and run the find command to find out where the install package
is,
find /cdrom -name '*oz[z]illa*'
or use /mnt/cdrom if you don't have a /cdrom on your configuration.
The *'s in the find command are for wildcard searching, and the z with []
indicates that the second z is optional. I'm not sure exactly how it's
spelled.
Alternatively, to do case insenstive searching, there may be an option for
find (you'ld need to look at the man page for find to see), you could run find
as
find /cdrom | grep -i "moz"
If you don't have /cdrom, but do have /mnt/cdrom and would like a shortcut,
then create /cdrom as a symbolic link to /mnt/cdrom
ln -s /mnt/cdrom /cdrom
You need to be logged in as root, or to su to root, to create this symbolic
link, because only root has write access in /.
mike