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

sympa daemons to support users with multiple groups #160

Closed
eiro opened this issue Jan 10, 2018 · 11 comments
Closed

sympa daemons to support users with multiple groups #160

eiro opened this issue Jan 10, 2018 · 11 comments
Labels

Comments

@eiro
Copy link

eiro commented Jan 10, 2018

the problem and the questions related to it was posted on the list (https://listes.renater.fr/sympa/arc/sympa-developpers/2018-01/msg00008.html)

this patch isn't complete does only fix the problem for only one daemon but at least it point it out and provides a way to fix it.

0001-when-the-sympa-user-is-member-of-more-than-one-group.patch.txt

@eiro
Copy link
Author

eiro commented Jan 10, 2018

informations about the way i installed and started sympa (from an up and running debian buster)

$ g clone git@github.com:sympa-community/sympa
$ id
uid=1001(mc) gid=100(users) groups=100(users),27(sudo),105(sympalpha),115(sympa)
$ sudo install -o mc -g sympalpha -d /opt/sympalpha
$ autoreconf -i
$ ./configure
--prefix=/opt/sympalpha
--with-group=sympalpha
--with-user=mc
--without-initdir
--without-smrshdir
--disable-smtpc
--disable-fhs
--disable-dependency-tracking
--with-confdir=/opt/sympalpha/etc
--with-unitsdir=/opt/sympalpha/services

tmux new /opt/sympalpha/bin/archived.pl -d

@racke
Copy link
Contributor

racke commented Jan 10, 2018 via email

@ikedas
Copy link
Member

ikedas commented Jan 14, 2018 via email

@racke
Copy link
Contributor

racke commented Jan 14, 2018

Marc, please add the error message from Sympa startup to this issue.

@eiro
Copy link
Author

eiro commented Jan 16, 2018 via email

@eiro
Copy link
Author

eiro commented Jan 16, 2018 via email

@ikedas
Copy link
Member

ikedas commented Jan 16, 2018 via email

@ikedas
Copy link
Member

ikedas commented Jan 24, 2018 via email

@ikedas
Copy link
Member

ikedas commented Jan 29, 2018

Daemons of current version of Sympa can be invoked in either of following two manners.

  • Daemons of Sympa typically are changed user/group to an unprivileged user. By this reason, in many cases they are invoked by root, and several binary distributions disable login shell of this user to ensure restriction of privilege.
  • To apply similar restriction, daemons also may be directly invoked by an unprivileged user. However, in this case the user should have uid and primary group dedicated to Sympa. It looks making sense for me.

In conclusion, I think reported behavior was caused by the usage that was not expected by the design: Invokation by the user whose privilege was not restricted enough. I think this issue would be better to be closed with wontfix label.

@eiro
Copy link
Author

eiro commented Feb 8, 2018

hello Soji and thanks for your replies,

i missed them so i didn't answer. this is correct: i can run sympa as root and it worked as expected. this bug should be closed.

@ikedas
Copy link
Member

ikedas commented Feb 8, 2018

@eiro, Please feel free to close. I have no objection.

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

3 participants