Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting content from box fail with multiple users accounts #4288

Open
Ouro17 opened this issue Oct 9, 2024 · 7 comments
Open

Deleting content from box fail with multiple users accounts #4288

Ouro17 opened this issue Oct 9, 2024 · 7 comments
Labels
Confirmation pending Further confirmation is requested Duplicate This issue or pull request already exists Feature: Content deletion ToDo To be done Win 11 Windows 11 issues

Comments

@Ouro17
Copy link

Ouro17 commented Oct 9, 2024

Describe what you noticed and did

  1. Create 2 local accounts users in windows (User A and B)

  2. Install sandboxie

  3. On one user(A for example), use the defaultbox

  4. log out user A and switch to the other user B

  5. On B, use the default box

  6. Try to delete the content of default box, it will fail
    Screenshot_2
    Screenshot_1

  7. Switch back to user A

  8. Delete content on user A default box, it will work
    Screenshot_3
    Screenshot_4

The ?? in front of the folders seems rather suspicious to me.
Does any one else has the same issue?

How often did you encounter it so far?

Whenever the user that is not the first logging in the computer tries to delete contents from any boxes

Expected behavior

The content of the box should be deleted

Affected program

Not relevant

Download link

Not relevant

Where is the program located?

Not relevant to my request.

Did the program or any related process close unexpectedly?

No, not at all.

Crash dump

No response

What version of Sandboxie are you running now?

Sandboxie Plus v1.14.10

Is it a new installation of Sandboxie?

I recently did a new clean installation.

Is it a regression from previous versions?

No response

In which sandbox type you have this problem?

In a standard isolation sandbox (yellow sandbox icon).

Can you reproduce this problem on a new empty sandbox?

I can confirm it also on a new empty sandbox.

What is your Windows edition and version?

Windows 11 Pro 64 bits

In which Windows account you have this problem?

A local account (Standard user)., A local account (Administrator).

Please mention any installed security software

Microsoft Defender Antivirus

Did you previously enable some security policy settings outside Sandboxie?

No response

Trace log

No response

Sandboxie.ini configuration

[DefaultBox]
Enabled=y
BlockNetworkFiles=y
RecoverFolder=%{374DE290-123F-4565-9164-39C4925E467B}%
RecoverFolder=%Personal%
RecoverFolder=%Desktop%
BorderColor=#00ffff,ttl,6
Template=OpenBluetooth
Template=SkipHook
Template=FileCopy
Template=qWave
Template=BlockPorts
Template=LingerPrograms
Template=AutoRecoverIgnore
ConfigLevel=10
DropAdminRights=y
ClosePrintSpooler=y
UseFileDeleteV2=y
UseRegDeleteV2=y
ProcessGroup=<system>,rundll32.exe,dllhost.exe
ProcessGroup=<FirefoxServices>,RuntimeBroker.exe,CompPkgSrv.exe
ProcessGroup=<Browsers>,firefox.exe,chrome.exe
ProcessGroup=<StartRunAccess>,<system>,<FirefoxServices>,<Browsers>,explorer.exe
ProcessGroup=<InternetAccess>,<Browsers>
ClosedIpcPath=!<StartRunAccess>,*
AutoRecover=y
SandboxieLogon=y
ClosedFilePath=!<InternetAccess>,InternetAccessDevices
NeverRemove=y
ForceProcess=<Browsers>
RunCommand=Firefox|firefox.exe
RunCommand=Chrome|chrome.exe
@Ouro17 Ouro17 added the Confirmation pending Further confirmation is requested label Oct 9, 2024
@APMichael
Copy link
Contributor

Have you changed the "Sandbox File Root"?

It is "??\%SystemDrive%\Sandbox\%USER%\%SANDBOX%" by default and thus creates a separate DefaultBox for each user.

In your report, both users seem to use the same sandbox, which does not make sense. The "Sandbox File Root" should therefore contain the variable %USER%.

@bastik-1001 bastik-1001 added Type: File operations Copy, move, delete, and rename files/folders More info needed More information is needed to move forward labels Oct 9, 2024
@camheelio
Copy link

I have the same problem with only one user. It happens since the update to 1.14.10, which was parallel with the Windows 11 Update 24H2 (26100). Sandboxie drop this error when trying to empty the sandbox from UI or when the content should be automatically deleted. First I though about access rights, but I can delete the sandbox folder from Explorer by hand without any problem and when I have done this, the automatically deletion works 2 or 3 times and then it happens again.

@Ouro17
Copy link
Author

Ouro17 commented Oct 10, 2024

Have you changed the "Sandbox File Root"?

It is "??%SystemDrive%\Sandbox%USER%%SANDBOX%" by default and thus creates a separate DefaultBox for each user.

In your report, both users seem to use the same sandbox, which does not make sense. The "Sandbox File Root" should therefore contain the variable %USER%.

No, I didn't changed anything in the global configuration, only for the boxes and yes
it is "??%SystemDrive%\Sandbox%USER%%SANDBOX%" as you said.

It's true that in my report the users seems to be in the same sandbox, I don't know how it happened but I tried again and both sandboxies were different this time.

I had the same problem as @camheelio with one user too.

I tried to uninstall 1.14.10 and then installing 1.14.9, and the same problem happened in the very first try to delete it, even without changing users.

In another computer with Windows 10, I don't have the problem, but it was not a fresh installation, it was just updated to 1.14.10.

Can I attach anything that you consider relevant to the issue?

@APMichael
Copy link
Contributor

I myself only use Windows 10 so far and the issue has never occurred there.

I guess it is caused by Windows 11, either by a recent update or by the feature upgrade 24H2.
(https://www.wilderssecurity.com/threads/sandboxie-plus-1-14-10.455134/#post-3211299)

Maybe @DavidXanatos can reproduce it in his VM and find out what caused it?

@offhub
Copy link
Collaborator

offhub commented Oct 10, 2024

Duplicate of #4142

@offhub offhub marked this as a duplicate of #4142 Oct 10, 2024
@offhub offhub added Duplicate This issue or pull request already exists Win 11 Windows 11 issues labels Oct 10, 2024
@bastik-1001 bastik-1001 removed the More info needed More information is needed to move forward label Oct 10, 2024
@Gishmasters
Copy link

I Think problem on this moment - C:\Sandbox%SANDBOX% - if rename %SANDBOX% to another name foe Example BOX1, and reboot then all works without problem. But after another reboot C:\Sandbox\BOX1 suddenly rename to C:\Sandbox%SANDBOX% and deleting is broke.

@Gishmasters
Copy link

So, i find the solution.

Sandboxie configuration file

[GlobalSettings]
Template=Edge_Fix
Template=NOD32
Template=OfficeClickToRun
Template=OfficeLicensing
Template=WindowsLive
Template=WindowsRasMan
FileRootPath=D:\Install\Sandboxie\Sandbox%SANDBOX% this make by default

[UserSettings_085201AC]
SbieCtrl_AutoStartAgent=SandMan.exe -autorun
SbieCtrl_EnableAutoStart=y
BoxGrouping=:DefaultBox

[DefaultBox]
Enabled=y
BlockNetworkFiles=y
RecoverFolder=%{374DE290-123F-4565-9164-39C4925E467B}%
BorderColor=#027df7,off,6
Template=OpenBluetooth
Template=SkipHook
Template=FileCopy
Template=qWave
Template=BlockPorts
Template=LingerPrograms
Template=AutoRecoverIgnore
Template=Edge_Force
ConfigLevel=10
FileRootPath=D:\Install\Sandboxie\Sandbox%SANDBOX% but this must to do manually -add this line and deleting works
UseSecurityMode=y
UseFileDeleteV2=y
UseRegDeleteV2=y
ForceFolder=D:\Install\Sandboxie\Web
AutoDelete=y
AutoRecover=y

@DavidXanatos DavidXanatos added the ToDo To be done label Oct 18, 2024
@offhub offhub added Feature: Content deletion and removed Type: File operations Copy, move, delete, and rename files/folders labels Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Confirmation pending Further confirmation is requested Duplicate This issue or pull request already exists Feature: Content deletion ToDo To be done Win 11 Windows 11 issues
Projects
None yet
Development

No branches or pull requests

7 participants