From owner-freebsd-questions@FreeBSD.ORG Sun Mar 30 01:43:57 2003 Return-Path: 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 6BB3237B401 for ; Sun, 30 Mar 2003 01:43:57 -0800 (PST) Received: from ei.bzerk.org (ei.xs4all.nl [213.84.67.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB01C43F75 for ; Sun, 30 Mar 2003 01:43:55 -0800 (PST) (envelope-from fbsd-q@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.12.8/8.12.8) with ESMTP id h2U9hsx0076960; Sun, 30 Mar 2003 11:43:54 +0200 (CEST) (envelope-from stable@ei.bzerk.org) Received: (from stable@localhost) by ei.bzerk.org (8.12.8/8.12.8/Submit) id h2U9hr9j076959; Sun, 30 Mar 2003 11:43:53 +0200 (CEST) Date: Sun, 30 Mar 2003 11:43:53 +0200 From: Ruben de Groot To: David Banning Message-ID: <20030330094353.GA76873@ei.bzerk.org> References: <20030330031118.A5033@skytrackercanada.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030330031118.A5033@skytrackercanada.com> User-Agent: Mutt/1.4i cc: questions@freebsd.org Subject: Re: file permission baffle X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Mar 2003 09:43:59 -0000 On Sun, Mar 30, 2003 at 03:11:18AM -0500, David Banning typed: > I have these links from my web directory; > > root# cd /usr/local/www/data/fax/ > root# ls -l > > lrwxr-xr-x 1 root wheel 18 Mar 29 16:37 chantelle -> /usr/chantelle/fax > lrwxrwxrwx 1 root wheel 14 Mar 10 00:15 david -> /usr/david/fax > > I can't change the permissions on them. It's because the permissions > are dependent on the linked directory right? Doesn't seem so; Permissions on symbolic links are irrelevant. If you want to change them anyway, here's what you have to do: # cd /usr/local/www/data/fax/ # rm chantelle # umask 0 # ln -s /usr/chantelle/fax chantelle Don't forget to change your umask back to something reasonable afterwards. > > root# ls -ld /usr/chantelle/fax > drwxrwxrwx 2 chantelle wheel 512 Mar 30 02:26 /usr/chantelle/fax > root# ls -ld /usr/david/fax > drwxrwxrwx 2 david wheel 512 Mar 30 02:40 /usr/david/fax > root# > > Even going further upstream doesn't show anything; > > root# ls -ld /usr/chantelle > drwxr-xr-x 7 chantelle wheel 1024 Mar 29 23:13 /usr/chantelle > root# ls -ld /usr/david > drwxr-xr-x 68 david wheel 5632 Mar 29 22:23 /usr/david > > I am having a problem writing to the top dir shown, (chantelle) > but not the following one (david). > > Anyone understand this? > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"