FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 11-10-2010, 08:19 AM
Martin Gracik
 
Default Allow the user to be added to wheel group (#462161)

---
modules/create_user.py | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/modules/create_user.py b/modules/create_user.py
index ee77072..c472cfc 100644
--- a/modules/create_user.py
+++ b/modules/create_user.py
@@ -208,6 +208,12 @@ class moduleClass(Module):

self.admin.setpassUser(userEnt, self.passwordEntry.get_text(), 0)

+ # add user to wheel group
+ if self.is_admin.get_active():
+ wheelEnt = self.admin.lookupGroupByName("wheel")
+ wheelEnt.add(libuser.MEMBERNAME, username)
+ self.admin.modifyGroup(wheelEnt)
+
return RESULT_SUCCESS

def createScreen(self):
@@ -242,7 +248,7 @@ class moduleClass(Module):

self.vbox.pack_start(label, False, True)

- table = gtk.Table(2, 4)
+ table = gtk.Table(3, 4)
table.set_row_spacings(6)
table.set_col_spacings(6)

@@ -274,6 +280,10 @@ class moduleClass(Module):
table.attach(label, 0, 1, 3, 4, gtk.FILL)
table.attach(self.confirmEntry, 1, 2, 3, 4, gtk.SHRINK, gtk.FILL, 5)

+ self.is_admin = gtk.CheckButton(_("Add to Administrators group"))
+ self.is_admin.set_alignment(0.0, 0.5)
+ table.attach(self.is_admin, 2, 3, 1, 2, gtk.FILL)
+
self.vbox.pack_start(table, False)

label = gtk.Label(_("If you need to use network authentication, such as Kerberos or NIS, "
--
1.7.1.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 05:46 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org