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

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

>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

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
export PATH

This means that modifications only need to be made to one file for
both types of users to be affected.

                                 ( bcwhite@bnr.ca )

    In theory, theory and practice are the same.  In practice, they're not.

Reply to: