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

(Question) Copying over users #37

Open
benjaminjellison opened this issue Oct 1, 2019 · 1 comment
Open

(Question) Copying over users #37

benjaminjellison opened this issue Oct 1, 2019 · 1 comment

Comments

@benjaminjellison
Copy link

I'm trying to install LAVA on an AWS EC2 instance, and I got stuck on the setup. Here was the error message:

[setup.py] Running in docker [bash -c "cd /home/bjelli2/lava/tools/btrace && bash compile.sh"] . . . 
[docker run --rm -v /home/bjelli2:/home/bjelli2 -v /etc/passwd:/etc/passwd:ro -v /etc/group:/etc/group:ro -v /etc/shadow:/etc/shadow:ro -v /etc/gshadow:/etc/gshadow:ro lava32 su -l bjelli2 -c bash -c "cd /home/bjelli2/lava/tools/btrace && bash compile.sh"]
No passwd entry for user 'bjelli2'

Authentication is done outside the instance, so my username isn't stored in the normal places. I'd like to know what the purpose of copying /etc/passwd and the others serves, and if it could be bypassed.

AndrewFasano added a commit that referenced this issue Nov 14, 2019
@AndrewFasano
Copy link
Member

I spent some time looking into this and I think all these file mappings are unnecessary. Instead we can use the --user $UID argument to ensure that the guest and host have the same view of the filesystem. I pushed a start to fixing this to the fix_37 branch, but it's not quite finished yet. Hope to have it working and merged into master soon.

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