How to have superuser power in a libertine container?

Asked by Emanuele Sorce on 2016-09-17

In a chroot vivid container, I haven't found any way to get root permission. I have installed a terminal, but i can't find root password. The su wasn't installed. So I moved the su file that I already have in the phone in the container, and I configured sudoers. Doesn't work. I tryed to change some directory permission but doesn't work (And I broke the container). There is a way?

Question information

Language:
English Edit question
Status:
Answered
For:
Libertine Edit question
Assignee:
Christopher Townsend Edit question
Last query:
2016-09-17
Last reply:
2016-09-19

Unfortunately, the way unprivileged chroot's work, sudo/su does not work due to the file permissions set when using proot to run commands inside the container. I've researched this extensively to find a solution, and I've yet to find a secure, workable solution.

The best bet is to wait for LXC support on Ubuntu Touch devices. I'll answer your other question separately about that.

Can you help with this problem?

Provide an answer of your own, or ask Emanuele Sorce for more information if necessary.

To post a message you must log in.