Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

- - - - -

Run Opera As A User While Root On Norton Bootable Recovery Tool


  • Please log in to reply
No replies to this topic

#1 Guest_hollowface_*

Guest_hollowface_*

  • Guests
  • OFFLINE
  •  

Posted 11 February 2017 - 03:23 PM

Run Opera As A User While Root On Norton Bootable Recovery Tool


hnwmea.JPG


Guide Overview

The purpose of this guide is to teach you how to configure a running session of Norton Bootable Recovery Tool so that you can be logged in as root, but run Opera as a regular user. This creates a safer browsing experience.


Caution! Please read for more information.
These steps allow applications running as user1 to access root's X server. This access is NOT limited to Opera.



Tools Needed
  • Norton Bootable Recovery Tool (Release 2016.1.1.30) [SHA512:8a8ebac4a6c9fb39c1ffeacbb4a72ba8c71e5b33b4d8174e776e80e03c5a8c5b835a48cc491de159f0ceddb04c331d437dd218df940c48694083441334ef32f4]
Instructions
Setup User Account And Configure Access
  • In terminal type:
    useradd -m -U user1
  • In terminal type:
    xhost +si:localuser:user1
Add Shortcut To The Bottom Panel
  • In terminal type:
    mkdir -p /root/.local/share/applications
  • In terminal type:
    cp /usr/share/applications/opera-browser.desktop /root/.local/share/applications/opera-browser-user1.desktop
  • In terminal type:
    sed -i '4s/Name=Opera/Name=Opera (user1)/' /root/.local/share/applications/opera-browser-user1.desktop
  • In terminal type:
    sed -i '30s/Exec=\/usr\/bin\/opera %U/Exec=su -c opera user1/' /root/.local/share/applications/opera-browser-user1.desktop
  • In terminal type:
    sed -i '5,27d' /root/.local/share/applications/opera-browser-user1.desktop
  • In terminal type:
    sed -i '9d' /root/.local/share/applications/opera-browser-user1.desktop
  • In terminal type:
    sed -i '6d' /root/.local/share/applications/opera-browser-user1.desktop
  • Right-click on the bottom panel of the screen, and choose "Add to panel...".
  • In the Add to Panel popup choose "Application Launcher...", click "Forward", click the pointer beside "Internet" to expand the view of that category, click "Opera (user1), click "Add", and click "Close".
  • Right-click on the new "Opera (user1)" icon on the bottom panel of the screen, choose "Move", and use your mouse to reposition the icon where you want on the panel.
Usage
Launch Opera From Commandline
  • In terminal type:
    su -c "opera" user1 & exit
Launch Opera Using Panel Icon
  • Pretty self explanatory. Click the "Opera (user1)" icon. You can distinguish it from the "Opera" icon, by hovering over it.
Notes
  • Since Norton Bootable Recovery Tool is frugal, all changes will be erased at reboot. You'll need to repeat this process every time you use Norton Bootable Recovery Tool.
  • The "Opera (user1)" icon steps also add an entry to the main menu. This menu is not active by default.
  • The "Opera (user1)" icon and menu entry will only be present in the root account.
  • These steps allow applications running as user1 to access root's X server. This access is NOT limited to Opera.
  • When running NBRT (Norton Bootable Recovery Tool) you can determine the release by clicking "About". Line one will say something like "Version: 2016.1.1.30".


BC AdBot (Login to Remove)

 


m



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users