Set the type of user which is not created by GUMD. GUMD stores user
information to comment field in /etc/passwd. Each field is separated
by comma and the last is a field for user type.
Since gum-utils is not working without GUMD daemon, useradd/usermod
is used instead of gum-utils to set the user's type.
Change-Id: I9b381a3f4dcf47c6b8fa53c168408321526b486d
Signed-off-by: Suchang Woo <suchang.woo@samsung.com>
echo "#################### tv-users.post ##################"
# create guest user
-/usr/sbin/useradd -m -G audio,video guest
+/usr/sbin/useradd -m -G audio,video -c ',,,,guest' guest
+
+# set user type
+/usr/sbin/usermod -c ',,,,normal' owner
# enable TLM (Tizen Login Manager) and generate tlm.conf
if [ -e /usr/lib/systemd/system/tlm.service ]; then