Set user type for GUMD 85/35385/1
authorSuchang Woo <suchang.woo@samsung.com>
Fri, 13 Feb 2015 01:44:03 +0000 (10:44 +0900)
committerSuchang Woo <suchang.woo@samsung.com>
Fri, 13 Feb 2015 02:04:55 +0000 (11:04 +0900)
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>
scripts/tv-users.post

index f979849..c426d22 100644 (file)
@@ -2,7 +2,10 @@
 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