I'm assuming encfs stores data on the local file system (HFS+ or
whatever you might have). Just because you are root while doing "touch
foo" doesn't mean the encfs daemon will be able to write that data to
disk as root too--unless you run *it* as root.

Even if you *do* run encfs as root, that's not enough--encfs would
have to be able to deal with multiple users sending it requests.
Suppose a create request comes in and it's being done by user xyz. If
encfs is running as root and it merely goes ahead and writes stuff, it
will be doing so as root, *not* as user xyz. MacFUSE does tell the
user-space file system the uid/gid of the user making the request. So,
encfs will have to query that uid/gid and perform the create operation
*as* xyz (say, by setting the thread's uid/gid).

It's not easy being a file system, even a user-space one!

Amit

On Nov 27, 11:19 am, Monty Burns <[EMAIL PROTECTED]> wrote:
> The file system is encfs.  I have seen permission problems on both
> Tiger and Leopard. I did not see issues with the 0.4.0 version on
> Tiger. However in the case of the backup program is did work 100% with
> 0.4.0 and about 25% of the time 1.1.1. I suspect that does not mean
> much since I don't have the exact step to reproduce the problem yet.
>
> I think it has something to do with who created the file.  In this
> example I was inside of the encfs volume and touched a files as root
> but the file is owned by test:staff not root:wheel.  The file that can
> not be removed in some cases is owned by root:staff.  The volume is
> mounted with allow_other as the only option.
>
> sh-3.2# id
> uid=0(root) gid=0(wheel)
>
> sh-3.2# touch foo
> -rw-r--r--  1 test  staff  0 Nov 27 12:57 foo
>
> I don't have enough data yet to make a simple test cases but it maybe
> things worked in the past due to a bug and it got fixed some time
> between 0.4.0 and 1.1.1 and I now need to adjust my options to
> compensate for it.
>
> In my setup user test is using encfs to mount a directory with the
> allow_other option set and when I try to backup data or delete certain
> files I get permission errors.  I used allow_other because I wanted
> Spotlight to work.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"macfuse-devel" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/macfuse-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to