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

FS#1346 - Procd does not respect a user's groups when using parameter user -- second try #6283

Closed
openwrt-bot opened this issue Feb 10, 2018 · 0 comments
Labels

Comments

@openwrt-bot
Copy link

flipreverse:

Hi folks!

I’m referring to git revision 4b3ffec.
Using this, procd does not respect a user’s groups (/etc/group) when starting a service.
In my case, I want a particular service running as a particular user (procd_set_param user foo). The user is a member of several groups, and they are needed when running that service.
Suppose user foo is in primary group bar, and in groups exampleA and exampleB.
The service runs as user foo, and as primary group bar. However, the service does not have the gids of exampleA and exampleB set as described in /etc/group. I verified it by using a wrapper script which wrote the output of ‘id’ to a file.

Steps to reproduce:

  1. Create a user foo having primary group bar, and is a member of group exampleA and exampleB..
  2. Write a short bash script which write the output of ‘id’ to a file.
  3. Create a service that starts the aforementioned script.
  4. Have a look at the output. It should say something like this: uid=XXX(foo) gid=xxx(foo).

I expect it to be: uid=XXX(foo) gid=XXX(bar) groups=XXX(exampleA) groups=XXX(exampleb).

Cheers,
Alex

P.S.: I've already posted that isse as #988 (https://bugs.openwrt.org/index.php?do=details&task_id=988). It was closed due to my very late response.

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

No branches or pull requests

1 participant