Trust No Program
This topic is locked: you cannot edit posts or make replies.
Only Defaultbox works (even though it thinks otherwise)
NewToSandboxing
Guest

Reply with quote
Hello, I am running Sandboxie 2.86 and although it allows me to make additional sandboxes and even switch to them, it only saves to "DefaultBox". When I make a change to a file while technically in another sandbox, it will save it to defaultbox and when I try to do explore contents, it says the sandbox is empty (even though it just processed the save, and the changes are in fact saved). I'm running Windows XP. Any ideas?
NewToSandboxing
Guest

Reply with quote
Hello, I just wanted to correct myself. It turns out I was only trying using the shell extension's "run sandboxed" option. I had assumed switching Sandboxes and doing that would work but that always goes to DefaultBox. It does however work when you don't use the shell extension.
SnDPhoenix


Joined: 26 Dec 2006
Posts: 2694
Location: West Florida
Reply with quote
NewToSandboxing wrote:
It turns out I was only trying using the shell extension's "run sandboxed" option. I had assumed switching Sandboxes and doing that would work but that always goes to DefaultBox. It does however work when you don't use the shell extension.

Yeah, this has been known for some time now, no matter how many sandboxes you make, how you configure them, how you use them, etc.. the "Run Sandboxed" shell extension always points to DefaultBox. Maybe in the future tzuk will fix that issue, maybe not, who knows.

_________________
Windows 7 SP1 x64, Sandboxie v3.70 x64 with Experimental Protection, GnuPG, OTR (Off-The-Record), Sticky Password, My Brain.
View user's profileSend private message
wraithdu


Joined: 29 Jun 2007
Posts: 1410
Reply with quote
Doesn't the shell shortcut just run "Start.exe" with the program name as parameter? If that's the case you can edit the shortcut in the registry and add the /box: parameter to start in the sandbox of your choice. You can't change it on the fly though. But you could create additional shortcuts for each sandbox you use frequently.

Or, you could use RDTools to make as many 'Send To' shortcuts as you want, each with a different /box: parameter.
View user's profileSend private message
tzuk


Joined: 22 Jun 2004
Posts: 15155
Reply with quote
You can also use "/box:current" parameter to Start.exe, which runs the program in the sandbox last selected in Sandboxie Control.

More here:

http://www.sandboxie.com/phpbb/viewtopic.php?t=1605

_________________
tzuk
View user's profileSend private message
excellent!
NewToSandboxing
Guest

Reply with quote
Ok great, thanks for the information!
Rasheed187


Joined: 14 Jan 2006
Posts: 167
Reply with quote
Actually, I might be a bit slow, but I still have no clue how to install tools into different sandboxes. I have created two other sandboxes, but everything ends up in the defaultbox anyway. What am I doing wrong, and where can I find the folder of the other sandboxes? Question
View user's profileSend private message
Rasheed187


Joined: 14 Jan 2006
Posts: 167
Reply with quote
Nobody can help me with this? I have made two other sandboxes named "Test1" and "Test2", but when I switch to them nothing happens. Confused
View user's profileSend private message
Paul_K


Joined: 18 Mar 2007
Posts: 477
Reply with quote
Rasheed187 wrote:
... where can I find the folder of the other sandboxes? Question
If you accepted the default hard drive location for the sandboxes (BoxRootFolder=%APPDATA% in the configuration file), then the sandboxes are located in sub-folders at:
C:\Documents and Settings\(your logon name)\Application Data\Sandbox
Under the Sandbox folder, you should have sub-folders for: (see edit, below*)
DefaultBox
Test1
Test2

Assuming, of course, that you didn't delete the sandbox contents for any of these. If you do delete the contents of any of those sandboxes, the folder is deleted too - only to be recreated by Sandboxie the next time you run something sandboxed in that particular sandbox.

*Edit* Actually I had to come back and clarify something about the new sandboxes. Maybe the reason you can't find them is that they don't actually exist until you run something sandboxed in them. When you switch to a sandbox, and run something sandboxed in it, Sandboxie creates the sandbox folder.


Last edited by Paul_K on Sun Aug 05, 2007 1:01 am; edited 1 time in total

_________________
XP Pro SP3
View user's profileSend private message
Paul_K


Joined: 18 Mar 2007
Posts: 477
Reply with quote
After you make the new sandboxes, do you use Sandboxie's "Switch to Sandbox", and then use the "Configuration > Sandbox Settings " to configure each of the new sandboxes?
Each box can have it's own File Copy Options, Automatic Cleanup Options, Recover Folder option, etc.
View user's profileSend private message
Rasheed187


Joined: 14 Jan 2006
Posts: 167
Reply with quote
Thanks for the help, I´m pretty sure that something is wrong with v2.85 (at least on my system), like I said before, eventhough I switch to the other sandbox (via tray) everything shows up in the defaultbox. When I click on "show sandbox contents", SBIE is telling me it´s empty.

This is how my config file looks:

Quote:
# Sandboxie Configuration File
# Automatically generated whenever the configuration changes.
# Set ConfigLevel to 99 to prevent the overwriting of this file.

[GlobalSettings]
ConfigLevel=1
BoxRootFolder=%APPDATA%
ForceDisableSeconds=10

FileTrace=.
PipeTrace=.
KeyTrace=.
IpcTrace=.

[DefaultBox]

Enabled=yes
CopyLimitKb=32768
OpenFilePath=msimn.exe,%AppData%\Identities
OpenFilePath=msimn.exe,%Local AppData%\Identities
OpenFilePath=msimn.exe,%AppData%\Microsoft\Address Book
OpenFilePath=msimn.exe,*.eml
OpenFilePath=outlook.exe,%AppData%\Microsoft\Outlook
OpenFilePath=outlook.exe,%Local AppData%\Microsoft\Outlook
OpenFilePath=outlook.exe,*.eml
OpenKeyPath=msimn.exe,HKEY_CURRENT_USER\Identities
OpenKeyPath=msimn.exe,HKEY_CURRENT_USER\Software\Microsoft\Outlook Express
OpenKeyPath=msimn.exe,HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager
OpenKeyPath=msimn.exe,HKEY_LOCAL_MACHINE\Software\Microsoft\Outlook Express
OpenKeyPath=msimn.exe,HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Outlook Express
OpenKeyPath=outlook.exe,HKEY_CURRENT_USER\Software\Microsoft\Office
OpenKeyPath=outlook.exe,HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook

LingerProcess=acrord32.exe
LingerProcess=jusched.exe
LingerProcess=syncor.exe

RecoverFolder=%Favorites%
RecoverFolder=%Personal%
RecoverFolder=%Desktop%

BlockDrivers=y
BlockFakeInput=y

[Test1]

Enabled=yes
CopyLimitKb=32768

BlockDrivers=y
BlockFakeInput=y

[Test2]

Enabled=yes
CopyLimitKb=32768

BlockDrivers=y
BlockFakeInput=y
View user's profileSend private message
Paul_K


Joined: 18 Mar 2007
Posts: 477
Reply with quote
Nothing wrong jumps out to me from your configuration file, but you should define at least one Recover Folder in each of the Testx sandboxes if you are going to test them - like is already done in your DefaultBox. If you run a program in one of those Testx sandboxes, and then save something to the Recover Folder, Sandboxie should prompt you to save the file when you select Delete Sandbox Contents, or Recover Files.
----
Double-click the tray icon and then View > Switch to Sandbox > and click Test 1. Then click Configuration > Sandbox Settings > Set Automatic Cleanup Options, and select the box for My Documents.
Click OK, then click Configuration > Reload Configuration and close the Sandboxie window.

(This will add RecoverFolder=%Personal% to the configuration file for Test1 sandbox. As a shortcut, you could just edit the configuration file yourself, but be sure to Reload Configuration after the edit)

While still selected for Test1 sandbox, right-click the tray icon and choose Run Sandboxed > Any Program. In the dialog box that opens type
notepad
and click OK

Type some text into notepad and then save the document to your My Documents folder. Close notepad.

Right-click the tray icon for Control, and choose Contents of Sandbox > Recover Files. Your saved text message should be there, still in the sandbox.
Or, if you were to select Contents of Sandbox > Delete Contents, Sandboxie should prompt you that there is a file that can be recovered, before it deletes the sandbox.
There is also an option in configuration to Recover files immediately, if you save one to your Recover Folder.
View user's profileSend private message
Rasheed187


Joined: 14 Jan 2006
Posts: 167
Reply with quote
Hi,

Now I know it for sure, I must be missing something because I get the exact same behavior on my virtual machine with the latest SBIE version. I don´t get it. Confused

What I do is:

1 I create a new sandbox named "Test1".
2 I switch to the sandbox via the trayicon.
3 I choose "Edit configuration" and after that "Reload configuration", without editing a thing.
4 I sandbox (install) some app, but it still shows up in the defaultbox, and the "Test1" sandbox stays empty.

This is how my config file looks:

Quote:
# Sandboxie Configuration File
# Automatically generated whenever the configuration changes.
# Set ConfigLevel to 99 to prevent the overwriting of this file.

[GlobalSettings]
ConfigLevel=1
BoxRootFolder=%APPDATA%
ForceDisableSeconds=10

FileTrace=.
PipeTrace=.
KeyTrace=.
IpcTrace=.
GuiTrace=.

[DefaultBox]

Enabled=yes
CopyLimitKb=32768
OpenFilePath=msimn.exe,%AppData%\Identities
OpenFilePath=msimn.exe,%Local AppData%\Identities
OpenFilePath=msimn.exe,%AppData%\Microsoft\Address Book
OpenFilePath=msimn.exe,*.eml
OpenFilePath=outlook.exe,%AppData%\Microsoft\Outlook
OpenFilePath=outlook.exe,%Local AppData%\Microsoft\Outlook
OpenFilePath=outlook.exe,*.eml
OpenKeyPath=msimn.exe,HKEY_CURRENT_USER\Identities
OpenKeyPath=msimn.exe,HKEY_CURRENT_USER\Software\Microsoft\Outlook Express
OpenKeyPath=msimn.exe,HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager
OpenKeyPath=msimn.exe,HKEY_LOCAL_MACHINE\Software\Microsoft\Outlook Express
OpenKeyPath=msimn.exe,HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Outlook Express
OpenKeyPath=outlook.exe,HKEY_CURRENT_USER\Software\Microsoft\Office
OpenKeyPath=outlook.exe,HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook


LingerProcess=acrord32.exe
LingerProcess=jusched.exe
LingerProcess=syncor.exe

RecoverFolder=%Favorites%
RecoverFolder=%Personal%
RecoverFolder=%Desktop%

BlockDrivers=y
BlockFakeInput=y
BlockWinHooks=y

BoxNameTitle=n

[Test1]

Enabled=yes
CopyLimitKb=32768

BlockDrivers=y
BlockFakeInput=y
BlockWinHooks=y

BoxNameTitle=n
View user's profileSend private message
Paul_K


Joined: 18 Mar 2007
Posts: 477
Reply with quote
A lot of this is a repeat, but since I don't see a RecoverFolder= statement in your configuration for Test1:
If you click on Edit Configuration, and then add (as shown in red)
[Test1]

Enabled=yes
CopyLimitKb=32768

RecoverFolder=%Personal%

BlockDrivers=y
BlockFakeInput=y
BlockWinHooks=y

BoxNameTitle=n
----
Then File > Save, File > Exit
Click OK on the dialog box, and then click on Reload Configuration

Right-click the Sandboxie Tray icon, Switch to Sandbox > click on Test1
Then right-click again, Run Sandboxed > Any Program ...
Type in the box that opens:
notepad
and click OK

Use Notepad to create a text file and then save it to your My Documents folder.
Close Notepad, and check for the file you saved by right-clicking the tray icon, Contents of Sandbox:
Then, either use Explore Contents, or just click Recover Files and Sandboxie should find it in the Test1 sandboxed My Documents folder.
If the text file isn't there, or somehow wound-up in DefaultBox, then YES you have a problem!
View user's profileSend private message
dlguild


Joined: 22 Apr 2007
Posts: 230
Location: Pennsylvania
Reply with quote
Rasheed187, what you are experiencing may be normal behavior for Sandboxie. On my system, if I right click on and executable file or shortcut and select 'Run Sandboxed' it always runs in the Default Box. If, on the other hand, you right click on the Sandboxie tray icon, select 'Run Sandboxed' and make a selection from there, it will run in the 'current' sandbox. I have noticed this behavior even if you have set up a particular application forced to a specific sandbox.

For example, on my system, I have a special sandbox set up just to run FireFox. If I double click my FireFox desktop icon, or double click firefox.exe directly from the Program Files directory, it will run in the FireFox sandbox I have set up. However, if I right click on either my desktop icon or the firefox.exe file and select 'Run Sandboxed' it will run in the Default Box.

I don't know if this can be considered a 'bug' in the program, but it had me confused until I caught on to what was happening. Does this parallel what you are experiencing? I noticed you have not forced any programs to specific sandboxes.

_________________
Dan
View user's profileSend private message
Only Defaultbox works (even though it thinks otherwise)
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 2  

Use the RSS feed to watch this topic for replies
  
  
 This topic is locked: you cannot edit posts or make replies.  

Sandboxie is Copyright © 2004-2012 by Sandboxie Holdings LLC.  All rights reserved.
Sandboxie.com | Contact Author
This site has been viewed 213,079,006 times since June 2004