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

Check for tools to manage users/groups not useful on all GNU/Linux distributions #2851

Open
paulmenzel opened this issue Jun 14, 2024 · 6 comments

Comments

@paulmenzel
Copy link

#2019 adds a check for all tools used by make install to the configure script.

There are distribution not using these tools to manage users and groups, or build hosts that do not want the user/group configuration be changed. Therefore, this check prevents building on these systems. It’d be great if these tools could be made optional.

After removing these checks, ./configure succeeds here, and make install just throws warnings, if these utilities are not there, so works.

@AndreasFuchsTPM
Copy link
Member

Which one of the tools groupadd, useradd, id, chown, chmod, mkdir, setfacl ist not available on your platform ?

@paulmenzel
Copy link
Author

Which one of the tools groupadd, useradd, id, chown, chmod, mkdir, setfacl ist not available on your platform ?

groupadd and useradd

@AndreasFuchsTPM
Copy link
Member

What are the alternatives that you use ?

@paulmenzel
Copy link
Author

We have our own scripts to edit /etc/{passwd,shadow}.

@AndreasFuchsTPM
Copy link
Member

How do other software projects handle this ?
... or do you usually just alias passwd=true ?
Because I don't know if we really want to just add a configure switch for disabling this.
On typical platforms, I'd expect coreutils to be installed.

@paulmenzel
Copy link
Author

How do other software projects handle this ? ... or do you usually just alias passwd=true ? Because I don't know if we really want to just add a configure switch for disabling this. On typical platforms, I'd expect coreutils to be installed.

Well, actually it’s quite common to not create users and edit system files by default, as often there are dedicated build hosts building the package to be installed. And then only during package installation some scripts take care of creating users and groups and so on.

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