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