Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jan 1996 23:57:12 -0800 (PST)
From:      Joseph McDonald <joe@smartlink.net>
To:        "Gestur A. Grjetarsson" <gestur@islandia.is>
Cc:        Joe Beiter <jwb@xioa.cosmic.org>, freebsd-isp@freebsd.org
Subject:   Re: deluser
Message-ID:  <Pine.SUN.3.91.960115235537.9374D-100000@warp10.smartlink.net>
In-Reply-To: <199601160631.GAA11793@hummer.islandia.is>

next in thread | previous in thread | raw e-mail | index | archive | help


On Tue, 16 Jan 1996, Gestur A. Grjetarsson wrote:

> /usr/bin/closeaccount
> 
> 
> begin script:
> ---------------------
> #!/bin/sh
> 
> rm -r /usr/home/$1
> rm /var/mail/$1
> rm /var/mail/.$1.pop 
> vipw

Isn't an "rm -r" dangerous?  What if the user symlinks to "/" ?

-joe



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.960115235537.9374D-100000>