Hi,

Ulf Zibis wrote:
> Hi all,
>
> If I mount a NTFS-partition with Ubuntu in default manner, the new created 
> files and folders have
> all privileges for anybody when later accessed from Windows. How can I manage 
> with ntfs-3g, that new
> created files and folders inherit the privileges from the containing folder?

There are two permission inheritance modes available in
ntfs-3g : The (so-called) Posix one, and the Windows one.

In both cases, you have to define the user mapping so that
for each user, Linux and Windows identify the file ownership
the same way.

For the Posix inheritance mode, you have to mount with
option "acl".

For the Windows inheritance mode, you have to mount with
option "inherit".

In both cases you have to define in the parent directory
the permissions to be inherited. The inheritance does
not apply to ownership, the user who creates a file is
always its owner (same for group).

Note : Windows rules are different from Linux rules. If
you use Windows inheritance, you will get unusual permissions
on Linux, and if you do a chmod or chown you switch to
Linux mode leading to unusual permissions on Windows.

Details on 
http://www.tuxera.com/community/ntfs-3g-advanced/ownership-and-permissions/

Jean-Pierre

>
> Many thanks for a quick answer,
>
> Ulf



------------------------------------------------------------------------------
_______________________________________________
ntfs-3g-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel

Reply via email to