[8907] in athena10

home help back first fref pref prev next nref lref last post

Re: [Debathena] #920: Prevent users from doing stupid things with

daemon@ATHENA.MIT.EDU (Debathena Trac)
Wed Mar 28 16:57:21 2012

MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
From: "Debathena Trac" <debathena@MIT.EDU>
Cc: debathena@MIT.EDU
To: jdreed@MIT.EDU
Date: Wed, 28 Mar 2012 20:57:18 -0000
Reply-To: 
Message-ID: <057.c048b3cae10c17ea7f126fdfedac3c1a@mit.edu>
In-Reply-To: <042.99971375e92998ed7aaada9edc983543@mit.edu>
Content-Transfer-Encoding: 8bit

#920: Prevent users from doing stupid things with PATH
--------------------+------------------------------
 Reporter:  jdreed  |         Owner:
     Type:  defect  |        Status:  new
 Priority:  normal  |     Milestone:  Precise Alpha
Component:  --      |    Resolution:
 Keywords:          |  Upstream bug:
--------------------+------------------------------

Comment (by jdreed):

 Off the top of my head:

 {{{
 MISSING=
 for p in /bin /usr/bin; do
  echo $PATH | /usr/bin/tr ':' '\n' | /bin/grep "^${p}$
  if [ $? != 0 ]; then
    MISSING="$MISSING $p"
  fi
 done
 if [ -n "$MISSING" ]; then
    echo "Your PATH is missing \"$MISSING\" and this login session will
 break."
 fi
 }}}

-- 
Ticket URL: <http://athena10.mit.edu/trac/ticket/920#comment:1>
Debathena <http://debathena.mit.edu>
MIT Debathena Project


home help back first fref pref prev next nref lref last post