cp -p
Chuck Swiger
cswiger at mac.com
Thu Feb 7 18:48:10 UTC 2008
On Feb 7, 2008, at 10:42 AM, Pietro Cerutti wrote:
> From 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)
Right, this is the BSD setgid semantics one would expect.
>> 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?
Does the remote system used here implement the BSD semantics? If it
does, I would expect this to work; if it doesn't, then no, I wouldn't
expect it to work.
--
-Chuck
More information about the freebsd-questions
mailing list