From owner-freebsd-chat Mon Oct 16 22:51:45 2000 Delivered-To: freebsd-chat@freebsd.org Received: from gray.westgate.gr (gray.westgate.gr [212.205.119.66]) by hub.freebsd.org (Postfix) with ESMTP id CF69A37B4D7 for ; Mon, 16 Oct 2000 22:51:42 -0700 (PDT) Received: (from charon@localhost) by gray.westgate.gr (8.11.1/8.11.1) id e9H5pJF03234; Tue, 17 Oct 2000 08:51:19 +0300 (EEST) Date: Tue, 17 Oct 2000 08:51:19 +0300 From: Giorgos Keramidas To: David Scheidt Cc: Kris Kirby , freebsd-chat@FreeBSD.ORG Subject: Re: Traditional UN*X conventions (Or: Why not to login as root?) Message-ID: <20001017085119.C2973@gray.westgate.gr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from dscheidt@enteract.com on Mon, Oct 16, 2000 at 03:30:16PM -0500 X-PGP-Fingerprint: 3A 75 52 EB F1 58 56 0D - C5 B8 21 B6 1B 5E 4A C2 X-URL: http://students.ceid.upatras.gr/~keramida/index.html Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, Oct 16, 2000 at 03:30:16PM -0500, David Scheidt wrote: > On Sun, 15 Oct 2000, Kris Kirby wrote: > > It's much harder to shoot yourself in the foot if you aren't waving a > loaded gun at it all the time. > > % cd rm -rf * .bak > > done as dms will annoy me and send me scurrying for the backup tapes > or disks. Done as root, I'll be much more than annoyed. I'll have > users after me! And a wasted evening while I rebuild the system. I > don't do anything as root, with the exception of user administration, > and installing or removing software. ...and reading the logs, I would add :-) A very informative post there, David. I have to admit that I laughed my stomach out when I remembered running something similar like root, namely: % rm -fr * ~ Certainly one of the funniest things you can run when your current working directory is / and you are logged in as root. This is probably why I customarily use find(1) now, with xargs, and after I carefully check the output of find, only then I append the required 'xargs rm' to remove files. Ah well, rusty old habbits of a silly user who's afraid of his own guns. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message