From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,153b9aeb4696829b,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-02-23 08:35:01 PST Path: gmd.de!xlink.net!howland.reston.ans.net!pipex!uknet!EU.net!Germany.EU.net!netmbx.de!zrz.TU-Berlin.DE!zib-berlin.de!news.th-darmstadt.de!fauern!rrze.uni-erlangen.de!faui66.informatik.uni-erlangen.de!horst From: horst@faui66.informatik.uni-erlangen.de (Horst Luehrsen) Newsgroups: comp.unix.osf.osf1 Subject: Bugs in /usr/sbin/adduser Date: Wed, 23 Feb 1994 16:35:01 GMT Organization: IMMD 6 - Lehrstuhl fuer Datenbanksysteme Distribution: world Message-ID: <2kg0jlErph@uni-erlangen.de> Reply-To: Horst.Luehrsen@Informatik.Uni-Erlangen.DE NNTP-Posting-Host: faui66.informatik.uni-erlangen.de X-Newsreader: mxrn 6.18-4 I was rewriting /usr/sbin/adduser to create a "ypadduser" shell skript and found two bugs: There are two lines which look like c program comments - but they are valid shell commands which try to execute files in the root directory: if read LSHELL then /* cin 002 begin */ <--- HERE if [ ! -f "${LSHELL}" ] then LSHELL=`grep "/${LSHELL}$" /etc/shells | tail -1l` fi if [ ! -n "${LSHELL}" ] then LSHELL="${DEFSHELL}" fi /* cin 002 end */ <--- HERE Anyone who uses the adduser shell scripts should delete this two lines or change them to comments by adding a "#" at the begin of the line! Horst -- Horst Luehrsen Martensstrasse 3, 91058 Erlangen Tel: +49-9131-857884 Fax:+49-9131-32090 ** Wer Speicher allokiert, schreckt auch vor der ** ** Exekution von Programmen nicht zurueck! **