From owner-freebsd-questions@FreeBSD.ORG Fri Dec 22 22:48:20 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3A61716A403 for ; Fri, 22 Dec 2006 22:48:20 +0000 (UTC) (envelope-from ian@codepad.net) Received: from pih-relay04.plus.net (pih-relay04.plus.net [212.159.14.131]) by mx1.freebsd.org (Postfix) with ESMTP id 0573313C442 for ; Fri, 22 Dec 2006 22:48:19 +0000 (UTC) (envelope-from ian@codepad.net) Received: from [80.229.159.44] (helo=hercules.lan) by pih-relay04.plus.net with esmtp (Exim) id 1GxsMc-0003mf-DF for freebsd-questions@freebsd.org; Fri, 22 Dec 2006 21:55:38 +0000 From: Xian To: freebsd-questions@freebsd.org Date: Fri, 22 Dec 2006 21:55:08 +0000 User-Agent: KMail/1.9.4 References: <06c401c724e9$044725e0$dc96eed5@ihlasnetym> In-Reply-To: <06c401c724e9$044725e0$dc96eed5@ihlasnetym> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200612222155.08506.ian@codepad.net> Subject: Re: How to change users rights for a symboliked file. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Dec 2006 22:48:20 -0000 On Thursday 21 December 2006 10:16, Halid Faith wrote: > I use Freebsd6.1. > > I want to give a symbolic link for a directory with ln -s as below; > > > cd / > > ln -s /var/tmp/ tmp2 > > ls -l /var/tmp > lrwxr-xr-x 1 root wheel 14 Dec 21 10:12 tmp -> /var/tmp > > I change write of user and group but i can't that. > chmod 777 tmp2 > > ls -l tmp2 > lrwxr-xr-x 1 root wheel 14 Dec 21 10:12 tmp -> /var/tmp > > Why don't I able to change user rights of tmp2 ? I think you need the -h option to chmod. From the man page: -- /Xian "Knowledge speaks but wisdom listens" Jimi Hendrix