From owner-freebsd-questions Thu Jun 8 16:12:35 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.mdanderson.org (mail.mdacc.tmc.edu [143.111.87.47]) by hub.freebsd.org (Postfix) with ESMTP id E651137B760 for ; Thu, 8 Jun 2000 16:12:26 -0700 (PDT) (envelope-from fosburgh@flash.net) Received: from jefnt (jef-nt.mdacc.tmc.edu [143.111.64.202]) by mail.mdanderson.org (8.9.1b+Sun/8.9.1) with SMTP id NAA25421; Thu, 8 Jun 2000 13:49:57 -0500 (CDT) Message-ID: <023701bfd17a$cbb3b270$ca406f8f@mdacc.tmc.edu> From: "Jonathan Fosburgh" To: "Meagan Jia Pi" , References: <862568F8.0062581F.00@MCSMTP.MC.VANDERBILT.EDU> <058f01bfd178$5c380880$e293c83f@meagan> Subject: Re: question about chown Date: Thu, 8 Jun 2000 13:52:32 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG ----- Original Message ----- From: "Meagan Jia Pi" To: Sent: Thursday, June 08, 2000 1:35 PM Subject: question about chown > Greetings! > > A friend of mine logged in as root and did this under some user's home > directory: > > chown username .* > > trying to change ownership of all the hidden files, but a disaster happened: > he unintentionally > changed ownership for all the users' home directory to this paticular user. > > I understand the best way to do this is to go a directory above, and do > "chown -R username", > but I 'd like to find out why it happened that way. > > Thanks in advance. > > -Meagan > > .* matches .., which matches ../* ..., this is a good way to hose the entire system if performing chown -R .* or rm -rf .* ..... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message