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=1001, gid=80). 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.
>>
> 
> :-( me idiot!

Me idiot. But it doesn't still work as I expect:

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)

> 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?

> 
> Thanks!
> 

I repeat myself..


-- 
Pietro Cerutti

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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to