+useradd %TZ_SYS_GLOBALAPP_USER -r -c "system user for common applications" -g root -u 201
+
+# change owner of TZ_USER_APP (/etc/skel/apps_rw) to tizenglobalapp
+saveHOME="$HOME"
+HOME="%{_sysconfdir}/skel"
+. "%{_sysconfdir}/tizen-platform.conf"
+
+chown %TZ_SYS_GLOBALAPP_USER:root $TZ_USER_APP
+
+# add .shared and .shared_tmp at skel
+mkdir -p $TZ_USER_APP/.shared
+mkdir -p $TZ_USER_APP/.shared_tmp
+chsmack -a User::Home $TZ_USER_APP/.shared
+chsmack -a User::Home $TZ_USER_APP/.shared_tmp
+chmod 755 $TZ_USER_APP/.shared
+chmod 755 $TZ_USER_APP/.shared_tmp
+
+HOME="$saveHOME"