Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Feb 2008 19:42:03 +0100
From:      Pietro Cerutti <gahr@gahr.ch>
To:        Chuck Swiger <cswiger@mac.com>
Cc:        User Questions <freebsd-questions@freebsd.org>
Subject:   Re: cp -p
Message-ID:  <47AB50FB.8020900@gahr.ch>
In-Reply-To: <47AB4D4B.3070102@gahr.ch>
References:  <47AB48CF.1020804@gahr.ch>	<F2F8763D-875B-49D6-BBFB-276312FC86EE@mac.com> <47AB4D4B.3070102@gahr.ch>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47AB50FB.8020900>