Other Veracrypt - non root write

I'd like to use an USB drive with Veracrypt volumes from FreeBSD and Windows 10/11.
Created the volume under Windows, can mount it on FreeBSD. Cannot make it writable for non-root users.

Or should I simply write as root? Back under Windows a root:wheel file seems to have everybody ownership.

sh:
weberjn@hapo:~ $ sudo ntfs-3g -o rw,uid=1001,gid=1001 /dev/da0s1 /mnt/
weberjn@hapo:/vera/v01/d $ cd /mnt
weberjn@hapo:/mnt $ touch f
weberjn@hapo:/mnt $ ll -a f
-rwxrwxrwx  1 weberjn weberjn 0 Nov 23 10:13 f

weberjn@hapo:~ $ sudo veracrypt --text --mount /mnt/vc/v01.vc /vera/v01 --verbose --fs-options="uid=1001,gid=1001"
Enter password for /mnt/vc/v01.vc:
Enter PIM for /mnt/vc/v01.vc:
Enter keyfile [none]:
Protect hidden volume (if any)? (y=Yes/n=No) [No]:
Volume /mnt/vc/v01.vc has been mounted.
weberjn@hapo:~ $ cd /vera/v01/
weberjn@hapo:/vera/v01 $ ll -a
total 68
drwxr-xr-x  1 root wheel 65536 Jan  1  1980 .
drwxr-xr-x  6 root wheel   512 Nov 22 22:01 ..
weberjn@hapo:/vera/v01 $ sudo mkdir d
weberjn@hapo:/vera/v01 $ ll
total 64
drwxr-xr-x  1 root wheel 65536 Nov 23 10:14 d
weberjn@hapo:/vera/v01 $ sudo chmod a+w d
weberjn@hapo:/vera/v01 $ ll
total 64
drwxr-xr-x  1 root wheel 65536 Nov 23 10:14 d
weberjn@hapo:/vera/v01 $ sudo mkdir d/d1
weberjn@hapo:/vera/v01 $ cd d/d1
weberjn@hapo:/vera/v01/d/d1 $ ll -a
total 128
drwxr-xr-x  1 root wheel 65536 Nov 23 10:15 .
drwxr-xr-x  1 root wheel 65536 Nov 23 10:14 ..
weberjn@hapo:/vera/v01/d/d1 $ sudo chmod a+w .
weberjn@hapo:/vera/v01/d/d1 $ ll -a
total 128
drwxr-xr-x  1 root wheel 65536 Nov 23 10:15 .
drwxr-xr-x  1 root wheel 65536 Nov 23 10:14 ..
weberjn@hapo:/vera/v01/d/d1 $ cd ..
weberjn@hapo:/vera/v01/d $ sudo chown weberjn:weberjn d1
chown: d1: Invalid argument
weberjn@hapo:/vera/fig24 $ sudo -s eval 'date > date.txt'
weberjn@hapo:/vera/fig24 $ ll date.txt
-rwxr-xr-x  1 root wheel    29 Nov 23 10:34 date.txt

E:\>type date.txt
Sat Nov 23 10:34:31 CET 2024

E:\>dir /q date.txt
 Volume in Laufwerk E: hat keine Bezeichnung.
 Volumeseriennummer: B8B0-0764

 Verzeichnis von E:\

23.11.2024  09:34                29 \Jeder                 date.txt
               1 Datei(en),             29 Bytes
               0 Verzeichnis(se), 549.687.984.128 Bytes frei

E:\>wmic path Win32_LogicalFileSecuritySetting where Path="e:\\date.txt" ASSOC /RESULTROLE:Owner /ASSOCCLASS:Win32_LogicalFileOwner /RESULTCLASS:Win32_SID
__PATH

\\JULIO\root\cimv2:Win32_LogicalFileSecuritySetting.Path="e:\\date.txt"

\\JULIO\root\cimv2:Win32_SID.SID="S-1-1-0"                               root\cimv2  JULIO  {}  5  Win32_SID.SID="S-1-1-0"  Win32_SID    Win32_SID  2  Jeder  {1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0}    S-1-1-0  12
 
Back
Top