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

groupadd/useradd command not found #8

Open
grahamPegNetwork opened this issue Feb 12, 2021 · 1 comment
Open

groupadd/useradd command not found #8

grahamPegNetwork opened this issue Feb 12, 2021 · 1 comment

Comments

@grahamPegNetwork
Copy link

I'm not sure where the issue is, but it seems I ran into some issues with the runas.sh script as follows:

inotify    | /files/runas.sh: line 82: groupadd: command not found
inotify    | /files/runas.sh: line 83: useradd: command not found
inotify    | chown: unknown user/group user_1000_1000:group_1000_1000
inotify    | [2021-02-12 08:12:20] Running command as user "user_1000_1000"...
inotify    | setuser: user user_1000_1000 not found

I set user/group IDs to 1000 as that is my current user, everything else is fairly normal in the config file from what I can tell. Right now I'm just trying to run a test, outputting anything to a local file.

@pdahlman
Copy link

pdahlman commented Jun 4, 2021

This is due to commit e65260f where base image was changed to Alpine. As Alpine uses adduser/addgroup instead of useradd/groupaddg, the commands used in runas.sh can't be found.

The script needs updating or you have to add user/group, in the container, with the same id as is used on the host. If the id exist, runas.sh won't try to create a new user/group.

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