echo 'su - sandbox -c "open -a safari"' > ~/Desktop/safariInSandbox.command
chmod +x ~/Desktop/safariInSandbox.command
su - sandbox
The password for "sandbox" will be requested. Check whether Who-am-I, correctly returns "sandbox".
whoami
No you can start the browser:
firefox
If the "su"-command works you can create shell script or an alias for convenience with the following content:
su - sandbox -c firefox
xhost +
Use a login shell to login as sandbox.
Under Linux you have login shells at the text-consoles, which are opened with CTRL+ALT+F1 or CTRL+ALT+F2 ... CTRL+ALT+F6.
At the shell prompt of sandbox type
xterm -display :0.0 -bg yellow
Return to the X-Windows by typing CTRL+ALT+F7.
Usually it is F7 but it might also be F3, F4 ... F9.
Find the yellow xterm.
Launch the browser e.g. Firefox in this yellow xterm.
firefox &