re:/etc/path.default (was Re: netpbm vs. pbmplus)
- To: debian-devel@Pixar.com
- Subject: re:/etc/path.default (was Re: netpbm vs. pbmplus)
- From: "brian (b.c.) white" <bcwhite@bnr.ca>
- Date: Fri, 26 Jan 1996 09:49:00 -0500
- Message-id: <"15040 Fri Jan 26 09:51:14 1996"@bnr.ca>
>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
>else
> PATH=`cat /etc/path.default`; export PATH
>fi
How about more something like...
PATH=`cat /etc/path.default`
if /usr/bin/id | /usr/bin/grep "(adm)\|(root)" >/dev/null 2>&1 ; then
PATH=`cat /etc/path.default.admin`:$PATH
fi
export PATH
This means that modifications only need to be made to one file for
both types of users to be affected.
Brian
( bcwhite@bnr.ca )
-------------------------------------------------------------------------------
In theory, theory and practice are the same. In practice, they're not.
Reply to: