From owner-freebsd-questions Sun Jan 7 4:53:42 2001 Delivered-To: freebsd-questions@freebsd.org Received: from lamia.lf.net (lamia.LF.net [212.9.160.192]) by hub.freebsd.org (Postfix) with ESMTP id 8635D37B6E2 for ; Sun, 7 Jan 2001 04:45:25 -0800 (PST) Received: by lamia.lf.net (Smail3.2.0.111/lamia.lf.net) via LF.net GmbH Internet Services for hub.freebsd.org id m14FFCO-001Sq2C; Sun, 7 Jan 2001 13:45:24 +0100 (CET) To: freebsd-questions@freebsd.org Subject: Re: usage of "chown" References: <013101c078a5$c4257520$847e03cb@apana.org.au> Organization: LF.net GmbH X-URL: http://www.LF.net/ From: Norbert Koch Date: 07 Jan 2001 13:45:24 +0100 In-Reply-To: <013101c078a5$c4257520$847e03cb@apana.org.au> Message-ID: Lines: 26 User-Agent: Gnus/5.090001 (Oort Gnus v0.01) XEmacs/21.2 (Millennium) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Doug Young" writes: Hi! > I'd appreciate advice as to exactly how to use the "chown" command > > eg when I go to /usr/home..... what words / symbols / etc do I need > to type in order to change the ownership of a / directory > ?? If your username is doug and the directory is named dir, type chown doug dir If you want to make that recursively, use the -R option. If you also want to change the group, say to users, change this into chown -R doug:users dir Note, that you must have write-permission on the parent directory, ie normally you have to be root to perform this action. norbert. -- YUGGA-HUGGA-BUGGA-TUGGA!! HEY-HEY!! A TRAIN STATION!! No, a POST OFFICE!! An OCEAN LINER!! No, I think it's a CAFETERIA!!! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message