From owner-freebsd-questions Sun Sep 23 14:29:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from itouch.co.nz (itouch.co.nz [203.99.66.188]) by hub.freebsd.org (Postfix) with ESMTP id 31EF337B422 for ; Sun, 23 Sep 2001 14:29:41 -0700 (PDT) Received: from jonc by itouch.co.nz with local (Exim 3.33 #1) id 15lGoZ-0001wh-00; Mon, 24 Sep 2001 09:29:27 +1200 Date: Mon, 24 Sep 2001 09:29:27 +1200 From: Jonathan Chen To: cyu0635@home.com Cc: "freebsd-questions@FreeBSD.ORG" Subject: Re: File permission Message-ID: <20010924092927.A1804@itouchnz.itouch> References: <3BAE4E2A.526A5E44@home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3BAE4E2A.526A5E44@home.com>; from cyu0635@home.com on Sun, Sep 23, 2001 at 05:03:39PM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Sep 23, 2001 at 05:03:39PM -0400, cyu0635@home.com wrote: > Hi all > > I download tarball ssh-3.0.1.tar.gz > and stored it in /usr/local/src > I grant it permission chown root:root /usr/local/src/* > > but after I exact it 'ssh-3.0.1.tar.gz -----> directory ssh-3.0.1', the > permission changed > > drwxr-xr-x 8 11171 users 4096 Jun 7 14:26 ssh-3.0.1 > > Why? The tarball stores user information and permissions for files/directories within the archive. If you extract it as root, they'll be restored to the uid/gid and permissions as when they were archived. -- Jonathan Chen ---------------------------------------------------------------------- "Irrationality is the square root of all evil" - Douglas Hofstadter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message