Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why do all of the commands require root? #6

Open
scizzorz opened this issue May 9, 2017 · 9 comments
Open

Why do all of the commands require root? #6

scizzorz opened this issue May 9, 2017 · 9 comments

Comments

@scizzorz
Copy link

scizzorz commented May 9, 2017

It seems like it's working entirely in ~/.rootbox - why does every command tell me I need to run it as root?

@refi64
Copy link
Member

refi64 commented May 9, 2017

Well, technically it isn't all of them... ;)

The reason is that Rootbox three root-only features:

  • Loop mounts, which are used to mount images and boxes.
  • chroots, which create the isolated environment that Rootbox uses.
  • Bind mounts, which are used to expose certain directories into the chroots.

There are non-root alternatives to each one here (fuseext2, schroot, and bindfs, respectively), but they all come with some restrictions:

So...it ends up being a lose-lose scenario.

@scizzorz
Copy link
Author

scizzorz commented May 9, 2017

Interesting - thanks for the response. I really enjoy the idea, but requiring root is impossible for me in some environments.

@scizzorz scizzorz closed this as completed May 9, 2017
@refi64
Copy link
Member

refi64 commented May 9, 2017

@scizzorz

requiring root is impossible for me in some environments

Do you have some examples?

@scizzorz
Copy link
Author

scizzorz commented May 9, 2017

Well, mostly just environments where I don't have root access 😉

I was hoping to be able to use rootbox as a system-level virtualenv a la Python, but on several systems I simply don't have root access, so this is unusable.

@refi64
Copy link
Member

refi64 commented May 10, 2017

Actually, you got me thinking and I've done some more research, and this might actually be possible...

@refi64 refi64 reopened this May 10, 2017
@refi64
Copy link
Member

refi64 commented Jul 19, 2017

@scizzorz As a side note: what exactly are the environments where root access is unavailable like?

@scizzorz
Copy link
Author

I'm not entirely sure I understand your question. Can you elaborate a bit?

@refi64
Copy link
Member

refi64 commented Jul 28, 2017

I'm mostly asking why it is the environments don't have root access. Is it a CI server or online development tool or...?

@scizzorz
Copy link
Author

Some class / lab machines at a university, compute nodes in various types of clusters, VMs at work, etc - they're all machines that I have an account on, but I am not the administrator or owner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants