LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   CentOS (https://www.linuxquestions.org/questions/centos-111/)
-   -   How to run firefox in a namespace (https://www.linuxquestions.org/questions/centos-111/how-to-run-firefox-in-a-namespace-4175731084/)

Shaggy1 11-21-2023 11:07 AM

How to run firefox in a namespace
 
Code:

$ cat /etc/centos-release
CentOS Linux release 7.6.1810 (Core)

Hi

I want to run up firefox in a namespace, but have somehow managed to get myself in a chicken and situation.

What's happening now is the following:

I create the namespace as root like this:
Code:

$ ip netns add dummy
Then attempt to run firefox in the namespace using the following command:
Code:

$ ip netns exec dummy firefox
If I run as root I get this error:
Quote:

Running firefox as root in a regular users session is not supported ...
If I run as the local user I get this error:
Quote:

setting the network namespace "dummy" failed: Operation not permitted

The first time I did this, however, it worked for me - as in I managed somehow to run firefox in the namespace, though with current problems I'm not sure how I did it.
I think I managed to simply run firefox as root.

Does anyone have any idea how I can get to a point where I can run firefox in a namespace ?

pan64 11-21-2023 11:52 AM

if you really want to do something like that run firefox in docker. (like this: http://www.vmwareinsight.com/Article...ical-Interface)
Docker manages not only network namespace, but some others too.

lvm_ 11-21-2023 12:40 PM

https://www.google.co.uk/search?q=netns+regular+user


All times are GMT -5. The time now is 04:58 AM.