LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 11-21-2023, 11:07 AM   #1
Shaggy1
Member
 
Registered: Oct 2010
Posts: 111

Rep: Reputation: 3
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 ?
 
Old 11-21-2023, 11:52 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,927

Rep: Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320
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.
 
Old 11-21-2023, 12:40 PM   #3
lvm_
Member
 
Registered: Jul 2020
Posts: 942

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


Reply

Tags
centos 7, firefox, namespace



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wiki: supposed to use the same wiki namespace? liquigel LQ Suggestions & Feedback 1 03-07-2004 10:11 AM
Understanding Namespace? nny0000 Programming 2 12-22-2003 08:45 PM
Linux 7 to 9 namespace migration issue er13b6ac Linux - Software 1 09-09-2003 05:27 AM
C++: How to use a namespace in a user-defined library? Gethyn Programming 9 08-15-2003 05:29 AM
namespace? using? explicit? restrict? what are these? Hano Programming 3 04-11-2002 07:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 02:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration