[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

/etc/path.default (was Re: netpbm vs. pbmplus)

On Wed, 24 Jan 1996, brian (b.c.) white wrote:

> >>> /etc/path.default with a line like: /usr/bin:/bin: (etc., etc.)

another, related, thought:

It might be useful to have an /etc/path.default.admin file as well,
which is basically the same as /etc/path.default but also contains
/sbin, /usr/sbin, /usr/local/sbin.

Accounts with admin privileges (root, first user, other designated admin
users) could simply modify their own .bashrc etc files to set the path
with this file.

alternatively, the /etc/profile could do something like:

if /usr/bin/id | /usr/bin/grep "(adm)\|(root)" >/dev/null 2>&1 ; then
	PATH=`cat /etc/path.default.admin`; export PATH
	PATH=`cat /etc/path.default`; export PATH


  cas@muffin.pronet.com                                cas@muffin.apana.org.au
   *       Unix Consulting:  Installation, Configuration, & Support.        *
   * --- Also, contact me if you need your Dos/Win/OS2 LAN connected to --- *
   * --- the Internet.                                                  --- *

Reply to: