From owner-freebsd-questions@FreeBSD.ORG Fri Feb 8 09:25:53 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 444CA16A418 for ; Fri, 8 Feb 2008 09:25:53 +0000 (UTC) (envelope-from gahr@gahr.ch) Received: from cpanel03.rubas-s03.net (cpanel03.rubas-s03.net [195.182.222.73]) by mx1.freebsd.org (Postfix) with ESMTP id 05A3413C469 for ; Fri, 8 Feb 2008 09:25:52 +0000 (UTC) (envelope-from gahr@gahr.ch) Received: from 80-218-191-236.dclient.hispeed.ch ([80.218.191.236] helo=gahrtop.localhost) by cpanel03.rubas-s03.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1JNPUW-00083c-2V for freebsd-questions@freebsd.org; Fri, 08 Feb 2008 10:25:52 +0100 Message-ID: <47AC2018.6010403@gahr.ch> Date: Fri, 08 Feb 2008 10:25:44 +0100 From: Pietro Cerutti User-Agent: Thunderbird 2.0.0.9 (X11/20071121) MIME-Version: 1.0 To: User Questions X-Enigmail-Version: 0.95.5 OpenPGP: id=9571F78E; url=http://www.gahr.ch/pgp Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig90E9C42B6064975D14AA8737" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel03.rubas-s03.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gahr.ch X-Source: X-Source-Args: X-Source-Dir: Subject: rename and chmod (was: cp -p) 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, 08 Feb 2008 09:25:53 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig90E9C42B6064975D14AA8737 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Ok, my view is getting clearer ;-) my problem in understanding the semantics of mv, cp -p and the rename(2) function seems to be related to the terminology used in chmod(1) man page= =2E This is the explanation of setuid (the same holds for setgid): "Directories with this bit set will force all files and subdirectories created in them to be owned by the directory owner and not by the uid of the creating process, if the underlying file system supports this feature= " Now, from a logical point of view, why moving a file into a directory doesn't fall into the "created into them" case? --=20 Pietro Cerutti PGP Public Key: http://gahr.ch/pgp --------------enig90E9C42B6064975D14AA8737 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEAREKAAYFAkesIBwACgkQwMJqmJVx944t5QCgpWv0uv29NZ7ILdvnM0xahL/p quoAn3PItKk7MQjxfmggWbC4poCIGJd7 =Guud -----END PGP SIGNATURE----- --------------enig90E9C42B6064975D14AA8737--