Hi,
Thank you for the quick response.
UserMapping file:
# Generated by usermap for Windows, v 1.1.2
# For Windows account "myname" in domain "JQUAD"
# Replace "user" and "group" hereafter by matching Linux login
myname::S-1-5-21-299502267-1614895754-839522115-1003
mywife::S-1-5-21-299502267-1614895754-839522115-1004

urfamily:S-1-5-21-299502267-1614895754-839522115-513

urfamily:S-1-5-21-299502267-1614895754-839522115-1006
#:ourfamily:S-1-5-32-544
Note: I believe the first "ourfamily" above is the relevant one to this discussion. The second "ourfamily" was from files from another drive. (If possible I'd like to have one UserMapping file for all my drives instead of having to customize for each one).
Result of `id`:
$ id
uid=1000(myname) gid=1000(myname) groups=1000(myname),4(adm),6(disk),24(cdrom),27(sudo),30(dip),46(plugdev),109(lpadmin),111(vboxusers),127(sambashare),1002(ourfamily)
Trying it without inherit:
$ sudo ntfs-3g -o permissions,windows_names,locale=en_US.UTF-8 /dev/sdb1 /media/IBM500G/
ls -l > fileNoInherit.txt
ls -l
-rw-r--r-- 1 root root 510 Jun 10 09:51 fileNoInherit.txt
Result: now neither the group nor the owner are correct.
Permissions were initially set in Windows XP, all latest patches applied. That system, however, crashed, and I don't have "quick access" to it. I do have an image backup, however, and can restore from disk image if you need me to do experiments.
One point that may or may not be significant: I saw in a forum post that the group "Everyone" may cause problems. At first I was not getting access to read the files from unix at all, and I "solved" the issue by, in Windows, at the top level of the drive, adding the group Everyone and giving it Full Control, along with checking the box for "Replace permission entries on all child objects ..."
I don't know why I did the following, but I thought it would not hurt and would "look cleaner" -- in Windows, I removed every other group except ourfamily and Everyone, giving both groups "Full access" and checking both "Inherit from parent.." and the "Replace...on all child objects.." checkboxes.
Results of secaudit
--------------------
(1) Unmount and remount using the inherit option.
(1a) Parent directory
$ ls -l ..
drwxrwsrwx 1 myname ourfamily 8192 Jun 10 09:54 IBM500G
$ sudo ntfs-3g.secaudit -v /media/IBM500G/
secaudit 1.3.22 : NTFS security data auditing
Directory /media/IBM500G/
000000 01000490 a8000000 c4000000 00000000
000010 14000000 02009400 06000000 01091400
000020 20000000 01010000 00000001 00000000
000030 00032400 ff011f00 01050000 00000005
000040 15000000 bb0ada11 8a5a4160 43170a32
000050 eb030000 00031400 ff011200 01010000
000060 00000001 00000000 00031800 bf011f00
000070 01020000 00000005 20000000 20020000
000080 00031400 bf011f00 01010000 00000005
000090 12000000 00041400 02000000 01010000
0000a0 00000000 00000000 01050000 00000005
0000b0 15000000 bb0ada11 8a5a4160 43170a32
0000c0 eb030000 01050000 00000005 15000000
0000d0 bb0ada11 8a5a4160 43170a32 01020000
Computed hash : 0xd5ae1f9d
Windows attrib : 0x36
Interpreted Unix owner 1000, group 1002, mode 02777
No errors were found
(1b) File created with inherit option
$ ls -l myNewFile.txt
-rw-rw-rw- 1 myname root 569 Jun 10 09:54 myNewFile.txt
$ sudo ntfs-3g.secaudit -v myNewFile.txt
secaudit 1.3.22 : NTFS security data auditing
File myNewFile.txt
000000 01000480 94000000 b0000000 00000000
000010 14000000 02008000 05000000 01001400
000020 20000000 01010000 00000001 00000000
000030 00002400 ff011f00 01050000 00000005
000040 15000000 bb0ada11 8a5a4160 43170a32
000050 eb030000 00001400 ff011200 01010000
000060 00000001 00000000 00001800 bf011f00
000070 01020000 00000005 20000000 20020000
000080 00001400 bf011f00 01010000 00000005
000090 12000000 01050000 00000005 15000000
0000a0 bb0ada11 8a5a4160 43170a32 eb030000
0000b0 01020000 00000005 20000000 20020000
Computed hash : 0x2737ef68
Windows attrib : 0x20
Interpreted Unix owner 1000, group 0, mode 0666
No errors were found
(2) Unmount and remount without the inherit option.
(2a) Parent directory
$ ls -l ..
drwxrwsrwx 1 myname ourfamily 8192 Jun 10 09:54 IBM500G (same result as w/inherit)
$ sudo ntfs-3g.secaudit -v /media/IBM500G/ (same same result as w/inherit)
secaudit 1.3.22 : NTFS security data auditing
Directory /media/IBM500G/
000000 01000490 a8000000 c4000000 00000000
000010 14000000 02009400 06000000 01091400
000020 20000000 01010000 00000001 00000000
000030 00032400 ff011f00 01050000 00000005
000040 15000000 bb0ada11 8a5a4160 43170a32
000050 eb030000 00031400 ff011200 01010000
000060 00000001 00000000 00031800 bf011f00
000070 01020000 00000005 20000000 20020000
000080 00031400 bf011f00 01010000 00000005
000090 12000000 00041400 02000000 01010000
0000a0 00000000 00000000 01050000 00000005
0000b0 15000000 bb0ada11 8a5a4160 43170a32
0000c0 eb030000 01050000 00000005 15000000
0000d0 bb0ada11 8a5a4160 43170a32 01020000
Computed hash : 0xd5ae1f9d
Windows attrib : 0x36
Interpreted Unix owner 1000, group 1002, mode 02777
No errors were found
(2b) File created without inherit option
$ ls -l fileNoInherit.txt
-rw-r--r-- 1 root root 684 Jun 10 10:17 fileNoInherit.txt
$ sudo ntfs-3g.secaudit -v fileNoInherit.txt
secaudit 1.3.22 : NTFS security data auditing
File fileNoInherit.txt
000000 01000490 8c000000 9c000000 00000000
000010 14000000 02007800 05000000 00041800
000020 9f011f00 01020000 00000005 20000000
000030 20020000 00041800 89001200 01020000
000040 00000005 20000000 20020000 00041400
000050 89001200 01010000 00000001 00000000
000060 00041800 bf011f00 01020000 00000005
000070 20000000 20020000 00041400 bf011f00
000080 01010000 00000005 12000000 01020000
000090 00000005 20000000 20020000 01020000
0000a0 00000005 20000000 20020000
Computed hash : 0x907f6d95
Windows attrib : 0x20
Interpreted Unix owner 0, group 0, mode 0644
No errors were found
Thanks for your help.
Jorge