#!/bin/sh echo "#################### generic-users.post ####################" if ! generic_base_user_exists owner; then # By default GUM will create users in /opt/etc/passwd, which is # additional users database suitable for end-user created accounts. # However, the 'owner' user is shipped by Tizen system itself and # it's its default user. Consequently, it should always be available # and thus, it should be added to /etc/passwd. conf=/etc/gumd/gumd.conf origf=${conf}.orig mv -v $conf $origf sed -e 's,^\(PASSWD_FILE\).*,\1=/etc/passwd,' -e 's,^\(SHADOW_FILE\).*,\1=/etc/shadow,' <$origf >$conf gum-utils --offline --add-user --username=owner --usertype=admin --usecret="" mv -v $origf $conf fi