Date: Fri, 08 Feb 2008 10:25:44 +0100 From: Pietro Cerutti <gahr@gahr.ch> To: User Questions <freebsd-questions@freebsd.org> Subject: rename and chmod (was: cp -p) Message-ID: <47AC2018.6010403@gahr.ch>
next in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47AC2018.6010403>