- put $prefix/sbin in everyone's $PATH, not just root's

This commit is contained in:
Nalin Dahyabhai 2009-06-04 22:36:59 +00:00
parent fae1002a8e
commit a6e25b4c5d
2 changed files with 2 additions and 6 deletions

View File

@ -2,7 +2,5 @@ if ( "${path}" !~ */usr/kerberos/bin* ) then
set path = ( /usr/kerberos/bin $path )
endif
if ( "${path}" !~ */usr/kerberos/sbin* ) then
if ( `id -u` == 0 ) then
set path = ( /usr/kerberos/sbin $path )
endif
set path = ( /usr/kerberos/sbin $path )
endif

View File

@ -2,7 +2,5 @@ if ! echo ${PATH} | /bin/grep -q /usr/kerberos/bin ; then
PATH=/usr/kerberos/bin:${PATH}
fi
if ! echo ${PATH} | /bin/grep -q /usr/kerberos/sbin ; then
if [ `/usr/bin/id -u` = 0 ] ; then
PATH=/usr/kerberos/sbin:${PATH}
fi
PATH=/usr/kerberos/sbin:${PATH}
fi