tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Zu, Hongya" <Zuh () pediatrics ! ohio-state ! edu>
To: tru64-unix-managers
Subject: SUMMARY:How can I add the path to all users' initialization (.pro
Date: Wed, 02 Feb 2000 18:46:28 +0000	[thread overview]
Message-ID: <96079336919188.tru64-unix-managers.marc@archive.invalid> (raw)

Original question:
	After I install a program on our Unix computer I must add the
program touser's PATH that in user's initialization (.profile, .login, and
.cshrc)files. 
	So that users can type and run the program directly from user's
homedirectory.What method should I use to add path to all users by one step?
	Thank you!
Anwsers:
	create a link in /usr/bin to the executable of
	the program.  All users should have a path to /usr/bin.

	The other way around it is to add the path to /etc/profile and
	/etc/csh.login
	as the login shells look at those files first before going to local
	.profile and .cshrc files.  That should take care of all logins.

	For example, you can add

	PATH=/bin:/usr/bin:/usr/bin/X11

	export PATH

	to the /etc/profile file. This will give all users who log in this
path.

Or

	Add the directory to the PATH in /etc/profile (for ksh, sh,
	etc) and in /etc/csh.login (for csh, tcsh, etc.).  In /etc/profile:

	PATH=$PATH:/new/directory
	export PATH

	        In /etc/csh.login:

	set path=($path /new/directory)

Or


	create a wrapper script
	which sets the variables, and stick it in /usr/local/bin.

	e.g. /usr/local/bin/btoolkit :
	#!/bin/sh
	# Run btoolkit program, after setting environment variables.
	PATH="/usr/btoolkit/bin:${PATH}" ; export PATH
	BKIT=/usr/local/btoolkit.4.58beta/BKIT; export BKIT
	exec $BKIT/BToolkit "$@"

	Professionally written applications do this as default.

***************************************
Thanks to:
noghri [noghri@nauticom.net]
Allan.Simeone@aventis.com
alan@nabeth.cxo.dec.com
Oisin McGuinness [oisin@sbcm.com]
Nigel Gall [nigelg@ppsl.com]
Jim Jennis [jjennis@discovery.fuentez.com]
Freesmeyer, Mary [Mary.Freesmeyer@LendersService.com]
Scott Mutchler [smutchler@gfs.com]
Jay Leafey [jay.leafey@mindless.com]
Larry Griffith [larry@cs.wsc.ma.edu]
Udo de Boer [udo.de.boer@live.demon.nl]
Ian 'Ivo' Veach [ivo@scs.unr.edu]
Mohamed Nayle [nayle@ncsbah.com]
FALCHERO Paolo [paolo.falchero@its.it]
Nikola Milutinovic [Nikola.Milutinovic@ev.co.yu]
Peter Stern [peter@chemphys.weizmann.ac.il]
Gernot Salzer [salzer@logic.at]
Bob Vickers [bobv@dcs.rhbnc.ac.uk]


++++++++++++++++++++++++++++++++++++++++++
Hongya Zu
Research Information Service
Children's Research Institute
700 Children's Drive
Columbus, OH 43205
Phone:  (614) 722-2914
Fax:  (614) 722-2716
Email:  zuh@pediatrics.ohio-state.edu
+++++++++++++++++++++++++++++++++++++++++

                 reply	other threads:[~2000-02-02 18:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox