3
0
forked from pool/sysuser-tools
sysuser-tools/sysusers-generate-pre
Thorsten Kukuk 54305a4169 Accepting request 786819 from home:favogt:nobash
- Clean up sysusers2shadow and make it use only /bin/sh
- Don't let busybox adduser create the home directory, it breaks
  permissions of e.g. /sbin (home of daemon)
- Use only /bin/sh in sysusers-generate-pre and the generated code

OBS-URL: https://build.opensuse.org/request/show/786819
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=23
2020-03-20 11:31:21 +00:00

9 lines
203 B
Bash

#!/bin/sh
# pass systemd sysusers config paths as argument to this script.
echo '#!/bin/sh'
echo 'cat <<"EOF" |'
grep -he '^[ugmr]' "$@"
echo 'EOF'
echo '/usr/sbin/sysusers2shadow || [ -f /.buildenv ]'