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

Print EPERM warning #16

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Conversation

hlovdal
Copy link
Contributor

@hlovdal hlovdal commented Oct 25, 2017

Print an extra, descriptive warning for EPERM. The far most likely cause for EPERM is that people try to run su-exec as a non-root user, so help them understand this is not possible. This addresses issue 10.

This pull request builds on top of pull request 15, but since that pull request is not merged yet, the diff to master will include too much. I'll happily rebase when that is merged.

riccardomurri and others added 14 commits May 30, 2017 16:20
This brings down `su-exec` to 11kB and `su-exec-static` to 853kB
on my Ubuntu 16.04 x86_64.
Static linking to GNU libc is not really allowed, and I am using GNU
libc for my purposes (running Java on CentOS and Fedora).

Being able to do "make install" makes packaging su-exec as an RPM
easier.
The far most likely cause for EPERM is that people try to run su-exec
as a non-root user, so help them understand this is not possible.
@hlovdal hlovdal changed the title Print eperm warning Print EPERM warning Oct 25, 2017
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

Successfully merging this pull request may close these issues.

None yet

2 participants