From owner-freebsd-questions@FreeBSD.ORG Thu Feb 7 18:42:13 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 EE26216A469 for ; Thu, 7 Feb 2008 18:42:13 +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 270F013C4D9 for ; Thu, 7 Feb 2008 18:42:12 +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 1JNBhM-0001c4-6g; Thu, 07 Feb 2008 19:42:12 +0100 Message-ID: <47AB50FB.8020900@gahr.ch> Date: Thu, 07 Feb 2008 19:42:03 +0100 From: Pietro Cerutti User-Agent: Thunderbird 2.0.0.9 (X11/20071121) MIME-Version: 1.0 To: Chuck Swiger References: <47AB48CF.1020804@gahr.ch> <47AB4D4B.3070102@gahr.ch> In-Reply-To: <47AB4D4B.3070102@gahr.ch> 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="------------enigC7CC30A7E32A07D805A9F200" 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: Cc: User Questions Subject: Re: 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: Thu, 07 Feb 2008 18:42:14 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigC7CC30A7E32A07D805A9F200 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Pietro Cerutti wrote: > Chuck Swiger wrote: >> On Feb 7, 2008, at 10:07 AM, Pietro Cerutti wrote: >>> here's the situation: >>> >>> HostServer exports via NFS /www, which belongs to user:www >>> (uid=3D1001, gid=3D80). The directory has the segid flag set: >>> >>> drwsr-xr-x 13 user www 512 Feb 7 00:58 www >> Umm, that directory you show has the setuid bit set, not setgid! >> If you do a "chmod g+s www" you'll get "drwxr-sr-x" permissions. >> >=20 > :-( me idiot! Me idiot. But it doesn't still work as I expect: =46rom HostClient: > ls -al /share/ drwxr-sr-x 4 User www 512 Feb 7 19:23 www > touch /share/www/foo > ls -l /share/www/foo -rw-r----- 1 user www 0 Feb 7 19:39 /share/www/foo (group id works) > touch bar > ls -l bar -rw-r----- 1 user user 0 Feb 7 19:40 bar > mv bar /share/www/ > ls -l /share/www/bar -rw-r----- 1 user user 0 Feb 7 19:40 /share/www/bar ~~~~ Shouldn't it be www? >=20 > Thanks! >=20 I repeat myself.. --=20 Pietro Cerutti PGP Public Key: http://gahr.ch/pgp --------------enigC7CC30A7E32A07D805A9F200 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.7 (FreeBSD) iD8DBQFHq1EBwMJqmJVx944RCuu0AJwJdok2i6DCJFY6Dm2iZ71MVVYqNQCgvftK Yn1thmSaMz5zi8FmC+YnHjk= =pjfo -----END PGP SIGNATURE----- --------------enigC7CC30A7E32A07D805A9F200--