summaryrefslogtreecommitdiff
path: root/community/cinnamon/set_wheel.patch
blob: 5669b67e5ca275133458694fe5a583bb8807c5d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/files/usr/lib/cinnamon-settings-users/cinnamon-settings-users.py
+++ b/files/usr/lib/cinnamon-settings-users/cinnamon-settings-users.py
@@ -747,7 +747,7 @@ class Module:
             pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_size("/usr/share/cinnamon/faces/user-generic.png", 48, 48)
             description = "<b>%s</b>\n%s" % (fullname, username)
             piter = self.users.append(None, [new_user, pixbuf, description])
-            # Add the user to his/her own group and sudo if Administrator was selected
+            # Add the user to his/her own group and wheel if Administrator was selected
             if dialog.account_type_combo.get_active() == 1:
-                os.system("usermod %s -G %s,sudo,nopasswdlogin" % (username, username)) 
+                os.system("usermod %s -G %s,sudo,wheel,nopasswdlogin" % (username, username))
             else:
                 os.system("usermod %s -G %s" % (username, username))
             self.load_groups()