Comments (6)
@caleblloyd so sorry, but I didn't understand much of your reply.
I'm back to say that, if a group is required to be present you can ensure its presence with docker run --group-add <group-name>
, in my case docker run --group-add=docker
.
from fixuid.
This issue is still present.
Even if user
is part of secondary groups in /etc/group, the user's groups only reflect what is set in /etc/fixuid/config.yml. You can verify this by running groups
Running with @felipecrs workaround will make the group present in the output of groups
from fixuid.
Secondary groups are specified in /etc/groups
in the 4th column, which is referenced by username
In the case the container is run with the UID of an existing user that does not match the name of the configured fixuid user, the UID is not changed, so secondary groups will not match:
Lines 138 to 147 in 4467c25
But in the typical case that the container is run with a UID that does not match any user in /etc/passwd
, the UID of the configured fixuid user will be changed, but the secondary groups from /etc/group
will still match, since they are referenced by username
from fixuid.
The problem lies in the ExitOrExec function that is executing the next process after doing all the changes. It is setting the euid and egid, but not looking up and setting additional groups from /etc/group from inside the container.
from fixuid.
@aigarius good catch - it was not recomputing /etc/passwd and /etc/group - opened #37 to address
from fixuid.
With this fix I was able to greatly simplify fixdockergid
and drop the dependency on setpriv
for it. Thanks a lot!
felipecrs/fixdockergid@ce80584
from fixuid.
Related Issues (20)
- Is it possible to make fixuid "silent" HOT 3
- Is it possible to send user:group as a command line parameter ? HOT 1
- ID lacks trailing quote in some log messages
- no aarch64 and armv7l releases HOT 3
- how to implement in postgresql? HOT 13
- Add ability to update internal group ids HOT 4
- fixuid: permission denied
- Doesn't properly work with multiple users inside container? HOT 9
- Problem with symbolic links HOT 2
- Fix CI & Automate Release Process
- Rename username to $USER environment variable HOT 1
- Group does not change (UID & GID from 1000 to 1001) HOT 2
- Merge fixdockergid with fixuid HOT 7
- [feature request]: progress indicator HOT 2
- Correct owner not set on mounted volumes if the runtime UID is the same as the container UID HOT 2
- [Feature Request] Allow user to specify number of processes? HOT 7
- WSL2 went wrong with fixuid? HOT 1
- How to run fixuid without overriding base image entrypoint?
- fixuid must be owned by user 'root' and include the setuid bit HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fixuid.