Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Feb 2008 10:48:09 -0800
From:      Chuck Swiger <cswiger@mac.com>
To:        Pietro Cerutti <gahr@gahr.ch>
Cc:        User Questions <freebsd-questions@freebsd.org>
Subject:   Re: cp -p
Message-ID:  <6E924673-19E3-4CD2-9FE0-242E87FBE2D2@mac.com>
In-Reply-To: <47AB50FB.8020900@gahr.ch>
References:  <47AB48CF.1020804@gahr.ch> <F2F8763D-875B-49D6-BBFB-276312FC86EE@mac.com> <47AB4D4B.3070102@gahr.ch> <47AB50FB.8020900@gahr.ch>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6E924673-19E3-4CD2-9FE0-242E87FBE2D2>