LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 11-03-2015, 09:51 AM   #1
Ahmed83
LQ Newbie
 
Registered: Nov 2015
Posts: 1

Rep: Reputation: Disabled
LXC Container Namespaces Cgroup


Hi,

Sorry for my english, I'm french

Currently, I'm working on a LXC (Linux Containers) project, I heard that it was possible to use Namespaces in order to be ROOT on the container but not on the host machine.

Have you already heard about this method ? Have you any documentation to give me ?

Thanks,

Ahmed
Student in Engineering school at TELECOM Lille
 
Old 11-06-2015, 04:11 AM   #2
Bihna
LQ Newbie
 
Registered: Nov 2015
Posts: 1

Rep: Reputation: Disabled
Hi Ahmed,

No problem with your english guy we understand your problem

Of course you can be root into the container and not on your host. Separate the workspace but use the same user.
You user is a classic user on your host but you give to him root privilege into your container context.
 
Old 12-06-2015, 04:31 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by Ahmed83 View Post
Currently, I'm working on a LXC (Linux Containers) project, I heard that it was possible to use Namespaces in order to be ROOT on the container but not on the host machine.

Have you already heard about this method ? Have you any documentation to give me ?
You have likely heard about unprivileged containers. With them, the root user in the container is mapped to a non root userid in the host..

Have a look to:

https://www.stgraber.org/2014/01/17/...ed-containers/

https://linuxcontainers.org/fr/lxc/getting-started/
 
  


Reply



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
LXC Container: sound Not working charlie101 Linux - Virtualization and Cloud 11 04-14-2020 01:15 AM
[SOLVED] lxc new container how to set password jzoudavy Linux - Newbie 1 09-01-2015 01:52 PM
[SOLVED] Running ctdb in an LXC container PeterSteele CentOS 5 08-13-2015 07:45 AM
How to use Local ISO for LXC Container? sunveer Linux - Software 0 10-04-2013 04:44 AM
How to end a Linux Container (LXC) from within? Skaperen Linux - Virtualization and Cloud 0 06-14-2011 09:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 03:01 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