From owner-freebsd-questions Thu Sep 12 11:32:12 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F30137B400 for ; Thu, 12 Sep 2002 11:32:09 -0700 (PDT) Received: from mail.broadpark.no (mail.broadpark.no [217.13.4.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 47FDF43E42 for ; Thu, 12 Sep 2002 11:32:08 -0700 (PDT) (envelope-from andreas@eunet.no) Received: from hangten.eunet.no (73.80-203-49.nextgentel.com [80.203.49.73]) by mail.broadpark.no (Postfix) with ESMTP id B7FD57DE3 for ; Thu, 12 Sep 2002 20:32:05 +0200 (MEST) Message-Id: <5.1.0.14.2.20020912202103.02799e30@pop.eunet.no> X-Sender: awand@pop.eunet.no X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 12 Sep 2002 20:34:37 +0200 To: freebsd-questions@FreeBSD.ORG From: Andreas Wideroe Andersen Subject: tar: user/group= 501 & Changing symlinks owner/group Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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 System: FreeBSD 4.6 STABLE Hi, Everytime I (root) issue a tar -xvf somefile.tar the user and group of the "untar'ed" files/dirs become 501: -rwxr--r-- 1 501 501 4275 May 22 16:00 show_rechis.php -rwxr-xr-x 1 501 501 7111 May 18 12:01 status.php -rwxr-xr-x 1 501 501 7364 May 22 03:15 status_file.php lrwxr-xr-x 1 501 501 9 Sep 12 19:52 t3lib -> ../t3lib/ -rwxr-xr-x 1 501 501 7092 May 24 15:11 tce_db.php -rwxr-xr-x 1 501 501 6770 May 22 03:15 tce_file.php drwxr-xr-x 3 501 501 20480 May 24 16:46 temp How come? I want the user/group to be set to Ie. test:test, but a chown -R test:test * doesn't change the owner/group of the symbolic link. I've read in man 7 symlink where it says symbolic link owners can be changed using lchown. I don't seem to have the command lchown... What can I do, except for deleting the symlinks and link them up again? Thanks for any suggestions! /Andreas --- Andreas Wideroe Andersen Cellulare GSM: (+47) 909 26121 http://www.8mm.filmshooting.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message