Solved Trying to emulate Firefox for Windows with wine >>> pkg: . permissions (0777) too lax

Hello.

I'm trying to emulate Firefox for Windows with wine...

Code:
marietto@marietto /compat/ubuntu2310/home/marietto/Files/firefox-win]==> wine firefox
wine [wine-7.0.1] and wine64 [wine-8.0.2] versions do not match!

Try updating 32-bit wine with
    /usr/local/share/wine/pkg32.sh upgrade

[marietto@marietto /compat/ubuntu2310/home/marietto/Files/firefox-win]==> /usr/local/share/wine/pkg32.sh upgrade

pkg -o ABI=FreeBSD:14:i386 -o INSTALL_AS_USER=true -o RUN_SCRIPTS=false --rootdir /home/marietto/.i386-wine-pkg upgrade
pkg: . permissions (0777) too lax

The solution may be here :

Code:
chown root:wheel /var/db/pkg
chmod 700 /var/db/pkg
cd /var/db/pkg
chown root:wheel *.*
chmod 700 *.*

but I'm not sure...and I don't want to break something...what do you think ?
 
I haven't looked at the pkg32.sh script or pkg's source, but I would assume '.' is referring to ~/.i386-wine-pkg.

pkg is complaining about the permissions of its working directory on your user, and the post you referenced was for the system-wide install, so I don't believe that would solve the issue.

Did you at some point (hopefully mistakenly) chmod -R 777 /home/marietto (do not run this) or similar?

See if
chmod -R 770 /home/marietto, and see if it fixes it. If you did make your home directory readable, writable, and executable intentionally, only do it on /home/marietto/.i386-wine-pkg.
 
I don't know why the formatting keeps messing up. Probably run chmod -R o-rwx /home/marietto instead, as the command I gave will mess up files with 700 permissions if they exist.

An ls -l should look something like this on a normal home folder:

Code:
drwxr-x---     - resner resner 27 Mar 19:20  Downloads
drwxr-x---     - resner resner 26 Mar 18:27  git
.rw-------  715k resner resner 25 Mar 01:36  mbox
drwxr-x---     - resner resner 23 Mar 14:15  Music
drwxr-x---     - resner resner 25 Mar 17:06  src
drwxr-x---     - resner resner 25 Mar 16:59  Videos

I am currently on OpenBSD, but I believe FreeBSD disables all permissions for others (people not you or in your user group).
 
Your fix worked,the previous error is gone. Unfortunately firefox does not run. But this is another story.

Code:
[marietto@marietto /compat/ubuntu2310/home/marietto/Files/firefox-win]==> wine firefox
0024:fixme:ntdll:create_logical_proc_info stub
0024:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
002c:fixme:ntdll:create_logical_proc_info stub
002c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
002c:fixme:ntdll:get_firmware_info info_class SYSTEM_FIRMWARE_TABLE_INFORMATION
002c:fixme:ntdll:get_firmware_info info_class SYSTEM_FIRMWARE_TABLE_INFORMATION
0034:fixme:ntdll:create_logical_proc_info stub
0034:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
003c:fixme:ntdll:create_logical_proc_info stub
003c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
0040:fixme:thread:set_native_thread_name not implemented on this platform
0048:fixme:ntdll:create_logical_proc_info stub
0048:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
0058:fixme:thread:set_native_thread_name not implemented on this platform
006c:fixme:ntdll:create_logical_proc_info stub
006c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
0078:fixme:thread:set_native_thread_name not implemented on this platform
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0088:fixme:ntdll:create_logical_proc_info stub
0088:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0094:fixme:ntdll:create_logical_proc_info stub
0094:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
00a4:fixme:thread:set_native_thread_name not implemented on this platform
00b0:fixme:ntdll:create_logical_proc_info stub
00b0:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
00bc:fixme:thread:set_native_thread_name not implemented on this platform
00c8:fixme:ntdll:create_logical_proc_info stub
00c8:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
00d0:fixme:ntdll:create_logical_proc_info stub
00d0:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
00d8:fixme:ntdll:create_logical_proc_info stub
00d8:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
00e0:fixme:thread:set_native_thread_name not implemented on this platform
00ec:fixme:ntdll:create_logical_proc_info stub
00ec:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
00fc:fixme:thread:set_native_thread_name not implemented on this platform
0110:fixme:thread:set_native_thread_name not implemented on this platform
011c:fixme:thread:set_native_thread_name not implemented on this platform
002c:fixme:imm:ImeSetActiveContext (0000000000040056, 1): stub
002c:fixme:imm:ImmReleaseContext (000000000004004E, 0000000000040056): stub
0088:fixme:imm:ImeSetActiveContext (0000000000010026, 0): stub
0088:fixme:imm:ImmReleaseContext (0000000000010020, 0000000000010026): stub
0128:fixme:ntdll:create_logical_proc_info stub
0128:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
0128:err:setupapi:SetupDefaultQueueCallbackW copy error 1812 L"@C:\\windows\\system32\\drivers\\wineusb.sys,-1" -> L"C:\\windows\\inf\\wineusb.inf"
0128:fixme:file:NtLockFile I/O completion on lock not implemented yet
0128:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0130:fixme:ntdll:create_logical_proc_info stub
0130:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
0130:fixme:imm:ImeSetActiveContext (000000000001008E, 1): stub
0130:fixme:imm:ImmReleaseContext (0000000000010096, 000000000001008E): stub
0130:fixme:urlmon:InternetBindInfo_GetBindString not supported string type 20
0134:fixme:thread:set_native_thread_name not implemented on this platform
0130:fixme:file:NtLockFile I/O completion on lock not implemented yet
0130:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0144:fixme:ntdll:create_logical_proc_info stub
0144:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
0144:fixme:file:NtLockFile I/O completion on lock not implemented yet
0144:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
014c:fixme:ntdll:create_logical_proc_info stub
014c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
014c:fixme:file:NtLockFile I/O completion on lock not implemented yet
014c:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
014c:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 5)
014c:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 5)
0154:fixme:ntdll:create_logical_proc_info stub
0154:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
0154:fixme:file:NtLockFile I/O completion on lock not implemented yet
0154:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
015c:fixme:ntdll:create_logical_proc_info stub
015c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
0164:fixme:ntdll:create_logical_proc_info stub
0164:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
0164:fixme:imm:ImeSetActiveContext (00000000000100BC, 1): stub
0164:fixme:imm:ImmReleaseContext (00000000000300B0, 00000000000100BC): stub
016c:fixme:ntdll:create_logical_proc_info stub
016c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
0174:fixme:ntdll:create_logical_proc_info stub
0174:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
0154:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 5)
0154:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 5)
0130:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
0130:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
017c:fixme:ntdll:create_logical_proc_info stub
017c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
018c:fixme:ntdll:create_logical_proc_info stub
018c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
018c:fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet
0194:fixme:ntdll:create_logical_proc_info stub
0194:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
wine: configuration in L"/home/marietto/.wine" has been updated.
019c:fixme:ntdll:create_logical_proc_info stub
019c:fixme:ntdll:init_cpu_info Failed to get logical processor information, status 0xc0000002.
[marietto@marietto /compat/ubuntu2310/home/marietto/Files/firefox-win]==> *** stack smashing detected ***: terminated
 
Back
Top