Files
binary-repo/sys/apps/shadow/shadow.sysconf
T
2022-12-02 07:46:36 +00:00

18 lines
509 B
Bash

#!/bin/sh
if [ ! -f /var/lib/ymp/sysconf/shadow/postinstall.done ] ; then
for app in su chage chsh expiry ; do
chmod u+s /usr/bin/$app
done
touch /etc/group
date > /var/lib/ymp/sysconf/shadow/postinstall.done
fi
if ! grep "^users:" /etc/group >/dev/null ; then
echo "users:x:100:" >> /etc/group
fi
if ! grep "^wheel:" /etc/group >/dev/null ; then
echo "wheel:x:10:root" >> /etc/group
fi
if ! grep "^root:" /etc/group >/dev/null ; then
echo "root:x:0:root" >> /etc/group
fi