cp -p

Pietro Cerutti gahr at gahr.ch
Thu Feb 7 18:50:09 UTC 2008


Chuck Swiger wrote:
> 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.
> 

Yes, it runs 6.3-RELEASE.. maybe it's NFS-related?


-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20080207/4430af43/signature.pgp


More information about the freebsd-questions mailing list