From owner-freebsd-questions@freebsd.org Sun Apr 17 17:28:39 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 94D3CB1036E for ; Sun, 17 Apr 2016 17:28:39 +0000 (UTC) (envelope-from emorrasg@yahoo.es) Received: from nm26-vm7.bullet.mail.ir2.yahoo.com (nm26-vm7.bullet.mail.ir2.yahoo.com [212.82.97.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EE269130B for ; Sun, 17 Apr 2016 17:28:38 +0000 (UTC) (envelope-from emorrasg@yahoo.es) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1460913955; bh=gpM9to/yTkNYO9ZWDBdaQ3i6GgkonFclWOSi/pBod08=; h=Date:From:To:Subject:In-Reply-To:References:From:Subject; b=UvtOp7aGWbLG15/a+QNCipRyG31MvaeoYEbScXmCtqpdMiHOlmqlWDVDqzsUfbRL3ZyhTOoJPwu4CEfT/IN5sqLzm3bpczdogKdXSBQUX5E7ECs+YVYFa+bOdQm3vdP6w4/pCC6odvfMuxxZNYz+/nogLnS9Ew7pn2yc+u/bwsHNXSZ7pkaXVU5dYJKnFq05DDvj27cEEJVWYUljBKdqOIji/P5c3oUzSZJipkxjeTMyR8gbtRGXsM8xjUt7sQTctyW0mgMW8OkD2CHWMu9+vdxmA/Y8SawEzHMBwVuTsrvXM17WQqFW+cAU/BnQhpMMiMpv77CCkaJSxmAxaa1gTA== Received: from [212.82.98.57] by nm26.bullet.mail.ir2.yahoo.com with NNFMP; 17 Apr 2016 17:25:55 -0000 Received: from [46.228.39.84] by tm10.bullet.mail.ir2.yahoo.com with NNFMP; 17 Apr 2016 17:25:55 -0000 Received: from [127.0.0.1] by smtp121.mail.ir2.yahoo.com with NNFMP; 17 Apr 2016 17:25:55 -0000 X-Yahoo-Newman-Id: 89168.40992.bm@smtp121.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 7CZj_I8VM1na21C_YsuyVAOc3Nfy1ctcjxkCyduQKZX8ql3 hy_1cGShRvL3mnL0uPmUVtAGNyx9_501F.MfVVniXCJu.1pI45VNWjxn2Edq _yTg4OrwK8luD2MnLU0GNkHPTWMnVzGrZwwW1h_20lYnlIBgAhQIuokkziDm 1f4B2c3AKWbUl20A2N2W1xUufvFXr09LOvojE1szVaTspR7MS5UY7Nly.p6b tyKCtxsI7dx4.97tqQDndeT1kfHyvHLT6rTweYNMauLjyuejiX5kbl0kSPYV 1C9gBmv.IK_LC3.kEe2TrrI_av5n4Ky4dChN_0l79_wp8SH3p_VW4hKVk2_M 9IAsOsyhFSSOuNtTZN4Kg0FD5Khcr5Kbu70JswPrLN5HhZm5RBKYbsdlUEyL tiQVvJlyogym93uEDBSozPazAOALP2m8luwfTSRYtMXvxwDwtAQN6RBYQrtq WErclaEjyMsUb_Qxk3vyoKYoM9TX6ATdZyCnWdHBUMir5g2ZxiEAT1ZPTfwq OpJ6DTqK3amKeV4Kia7CZ9g-- X-Yahoo-SMTP: mX392iiswBAeJNdO_s.EW62LZDJR Date: Sun, 17 Apr 2016 19:25:57 +0200 From: Eduardo Morras To: freebsd-questions@freebsd.org Subject: Re: rm -rf -Mitigating the dangers Message-Id: <20160417192557.eaa6429c5c00d136b974bbf6@yahoo.es> In-Reply-To: References: X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.29; amd64-portbld-freebsd10.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Apr 2016 17:28:39 -0000 On Sun, 17 Apr 2016 20:10:11 +0300 Odhiambo Washington wrote: > I am wondering if I should place a feature request on this or just do > it my way:) > > With great power comes great responsibility and as such I think there > should be a wrapper around rm to warn sysadmins that what they are > about to do with -rf is dangerous, yes? > > Read input from sysadmin 3 times, looking strictly for their > confirmation before effecting the `rm -rf`. > > Could it be that what I am smoking/drinking is the issue here or I > have your support? LOL Fork rm code, rename one to areyoureallysure that honors -rf and classic rm without -rf. But remember, no risk, no fun. --- --- Eduardo Morras