Date: Sun, 30 Mar 2003 11:43:53 +0200 From: Ruben de Groot <fbsd-q@bzerk.org> To: David Banning <david@skytracker.ca> Cc: questions@freebsd.org Subject: Re: file permission baffle Message-ID: <20030330094353.GA76873@ei.bzerk.org> In-Reply-To: <20030330031118.A5033@skytrackercanada.com> References: <20030330031118.A5033@skytrackercanada.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030330094353.GA76873>