-
Notifications
You must be signed in to change notification settings - Fork 65
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
Invalid path '/root/.subuser': Permission denied #346
Comments
Are you running as root or as a normal user? What is the value in $HOME? |
That was the 1st thing I tried. But it's not the case (unless there is some linux features I don't know regarding that). But you can see in my logs Anyway, the home is correct:
But I think that for some reason when I run subuser it runs as root and $HOME ends up like |
@timthelion Do you have any thoughts about what it would be? I'd love to try subuser. |
Well it is running sudo under the hood: https://github.com/subuser-security/subuser/blob/master/logic/subuser#L51 Looking back into the source code, I see that I'm actually not using the
On my system the If the |
@timthelion Thanks for your response. The I've created the following script: test.sh #!/bin/bash
whoami
echo $SUDO_USER
echo $HOME When I run
When I run
When I run
In the case of subuser, I get the error I mentioned in the first post in all the bellow cases:
|
@timthelion I've never programed in python before, but I've done some search to make simple prints in the console, and found that the problem seems to be in the In
and the
and set the But before that, in the file subuser/logic/subuserlib/classes/user.py Line 47 in c04a1ba
and set It seems the command So I've changed:
to
and run
This change worked for me. I don't think it will work for everyone (like someone in the docker group), but it seems the line I mentioned above need some changes, like verifying if the home directory path returns Thanks for your attention. I won't close this issue for now assuming you might want to change that line, but if you want I close. |
Hi!
I use docker and like the idea of running applications in containers, and thought about creating a docker image to run on desktop (for example, connecting to the XServer), but Docker is more focused on the server side and some solutions like passing the socket to the container don't seem good from a security perspective.
Some days ago I saw about subuser and tried to install on my newly created virtual machine (it uses Linux Deepin 15.6).
I followed the steps (as in the docs):
Then I added
PATH=$HOME/.subuser/bin:$PATH
to the end of my~/.bashrc
file, logged out and logged in.When I tried to run subsuser, it asked me for a git user and email and I run the commands to add them (this was a newly created VM, as I stated above, so there was no git credentials).
Then the first command I run I received an error:
It seems it tries to acess
/root/.subuser
but isn't able to.From what I read in the docs, it should try to acess
~/.subuser
instead. I tried to run subuser with sudo but received the same error.I also uninstalled subuser and installed with pip3 without sudo in ~/.local/ but it couldn't even import the files (perhaps it has something to do with paths, but I don't know python very well). I couldn't even run
subuser version
(before, installing with sudo, it showed me 0.6.2 and other info, but most commands wouldn't work with the error above).In any case, I followed the docs in every step and even tried to run in a brand new virtual machine but no success so far.
Any thoughts about what could be the problem?
I don't know if it's because it's in deepin, but it's linux anyway and docker works fine in it. It seems more like it is trying to use the wrong directory.
The text was updated successfully, but these errors were encountered: