Changeset 2435

Show
Ignore:
Timestamp:
09/08/05 23:57:29 (19 years ago)
Author:
jerome
Message:

Added the --gidmin, --gidmax, --dousers, --dogroups command line switches
to pkturnkey.
Added group management to pkturnkey.
Severity : testers more than welcome :-)

Location:
pykota/trunk
Files:
16 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pkturnkey

    r2432 r2435  
    2828import os 
    2929import pwd 
     30import grp 
    3031 
    3132from pykota.tool import Tool, PyKotaToolError, crashed, N_ 
     
    4647  -v | --version       Prints pkturnkey version number then exits. 
    4748  -h | --help          Prints this message then exits. 
     49   
     50  -d | --dousers       Manages users accounts as well. 
     51   
     52  -D | --dogroups      Manages users groups as well. 
     53                       Implies -d | --dousers. 
     54   
     55  -e | --emptygroups   Includes empty groups. 
    4856   
    4957  -f | --force         Modifies the database instead of printing what 
     
    5462                       uid will be used automatically. 
    5563                       If not set, 0 will be used automatically. 
     64                       Implies -d | --dousers. 
    5665                        
    5766  -U | --uidmax uid    Only adds users whose uid is lesser than or equal to 
     
    5968                       uid will be used automatically. 
    6069                       If not set, a large value will be used automatically. 
     70                       Implies -d | --dousers. 
     71 
     72  -g | --gidmin gid    Only adds groups whose gid is greater than or equal to 
     73                       gid. You can pass a groupname there as well, and its 
     74                       gid will be used automatically. 
     75                       If not set, 0 will be used automatically. 
     76                       Implies -D | --dogroups. 
     77                        
     78  -G | --gidmax gid    Only adds groups whose gid is lesser than or equal to 
     79                       gid. You can pass a groupname there as well, and its 
     80                       gid will be used automatically. 
     81                       If not set, a large value will be used automatically. 
     82                       Implies -D | --dogroups. 
    6183 
    6284examples :                               
    6385 
    64   $ pkturnkey --uidmin jerome 
     86  $ pkturnkey --dousers --uidmin jerome 
    6587 
    6688  Will simulate the initialization of PyKota's database will all existing 
    6789  printers and print accounts for all users whose uid is greater than 
    68   or equal to jerome's one. 
     90  or equal to jerome's one. Won't manage any users group. 
     91   
    6992  To REALLY initialize the database instead of simulating it, please 
    7093  use the -f | --force command line switch. 
     
    88111         
    89112    def listUsers(self, uidmin, uidmax) :     
    90         """Returns a list of usernames whose uids are between uidmin and uidmax.""" 
     113        """Returns a list of users whose uids are between uidmin and uidmax.""" 
    91114        self.printInfo("Extracting all users whose uid is between %s and %s." % (uidmin, uidmax)) 
    92         return [entry[0] for entry in pwd.getpwall() if uidmin <= entry[2] <= uidmax] 
     115        return [(entry[0], entry[3]) for entry in pwd.getpwall() if uidmin <= entry[2] <= uidmax] 
     116         
     117    def listGroups(self, gidmin, gidmax, users) : 
     118        """Returns a list of groups whose gids are between gidmin and gidmax.""" 
     119        self.printInfo("Extracting all groups whose gid is between %s and %s." % (gidmin, gidmax)) 
     120        groups = [(entry[0], entry[2], entry[3]) for entry in grp.getgrall() if gidmin <= entry[2] <= gidmax] 
     121        gidusers = {} 
     122        usersgid = {} 
     123        for u in users : 
     124            gidusers.setdefault(u[1], []).append(u[0]) 
     125            usersgid.setdefault(u[0], []).append(u[1])  
     126             
     127        membership = {}     
     128        for g in range(len(groups)) : 
     129            (gname, gid, members) = groups[g] 
     130            newmembers = {} 
     131            for m in members : 
     132                newmembers[m] = m 
     133            try : 
     134                usernames = gidusers[gid] 
     135            except KeyError :     
     136                pass 
     137            else :     
     138                for username in usernames : 
     139                    if not newmembers.has_key(username) : 
     140                        newmembers[username] = username 
     141            for member in newmembers.keys() :             
     142                if not usersgid.has_key(member) : 
     143                    del newmembers[member] 
     144            membership[gname] = newmembers.keys() 
     145        return membership 
    93146         
    94147    def runCommand(self, command, dryrun) :     
     
    112165            command = "edpykota --add --noquota %s" % " ".join(['"%s"' % u for u in users]) 
    113166            self.runCommand(command, dryrun) 
     167             
     168    def createGroups(self, groups, dryrun=0) : 
     169        """Creates all groups in PyKota's database.""" 
     170        if groups : 
     171            commands = ["edpykota --groups --add --noquota %s" % " ".join(['"%s"' % g for g in groups.keys()])] 
     172            revmembership = {} 
     173            for (groupname, usernames) in groups.items() : 
     174                for username in usernames : 
     175                    revmembership.setdefault(username, []).append(groupname) 
     176            for (username, groupnames) in revmembership.items() :         
     177                commands.append('edpykota --ingroups %s "%s"' % (",".join(['"%s"' % g for g in groupnames]), username)) 
     178            for command in commands : 
     179                self.runCommand(command, dryrun) 
    114180         
    115181    def main(self, names, options) : 
     
    122188            names = ["*"] 
    123189             
    124         self.printInfo("Please be patient...") 
     190        self.printInfo(_("Please be patient...")) 
    125191        dryrun = not options["force"] 
    126192        if dryrun : 
    127             self.printInfo("Don't worry, the database WILL NOT BE MODIFIED.") 
     193            self.printInfo(_("Don't worry, the database WILL NOT BE MODIFIED.")) 
    128194        else :     
    129             self.printInfo("Please WORRY NOW, the database WILL BE MODIFIED.") 
    130              
    131         if not options["uidmin"] :     
    132             self.printInfo(_("System users will have a print account as well !"), "warn") 
    133             uidmin = 0 
     195            self.printInfo(_("Please WORRY NOW, the database WILL BE MODIFIED.")) 
     196             
     197        if options["dousers"] :     
     198            if not options["uidmin"] :     
     199                self.printInfo(_("System users will have a print account as well !"), "warn") 
     200                uidmin = 0 
     201            else :     
     202                try : 
     203                    uidmin = int(options["uidmin"]) 
     204                except :     
     205                    try : 
     206                        uidmin = pwd.getpwnam(options["uidmin"])[2] 
     207                    except KeyError, msg :     
     208                        raise PyKotaToolError, _("Unknown username %s : %s") % (options["uidmin"], msg) 
     209                         
     210            if not options["uidmax"] :     
     211                uidmax = sys.maxint 
     212            else :     
     213                try : 
     214                    uidmax = int(options["uidmax"]) 
     215                except :     
     216                    try : 
     217                        uidmax = pwd.getpwnam(options["uidmax"])[2] 
     218                    except KeyError, msg :     
     219                        raise PyKotaToolError, _("Unknown username %s : %s") % (options["uidmax"], msg) 
     220             
     221            if uidmin > uidmax :             
     222                (uidmin, uidmax) = (uidmax, uidmin) 
     223            users = self.listUsers(uidmin, uidmax) 
    134224        else :     
    135             try : 
    136                 uidmin = int(options["uidmin"]) 
    137             except :     
     225            users = [] 
     226             
     227        if options["dogroups"] :     
     228            if not options["gidmin"] :     
     229                self.printInfo(_("System groups will have a print account as well !"), "warn") 
     230                gidmin = 0 
     231            else :     
    138232                try : 
    139                     uidmin = pwd.getpwnam(options["uidmin"])[2] 
    140                 except KeyError, msg :     
    141                     raise PyKotaToolError, _("Unknown username %s : %s") % (options["uidmin"], msg) 
    142                      
    143         if not options["uidmax"] :     
    144             uidmax = sys.maxint 
     233                    gidmin = int(options["gidmin"]) 
     234                except :     
     235                    try : 
     236                        gidmin = grp.getgrnam(options["gidmin"])[2] 
     237                    except KeyError, msg :     
     238                        raise PyKotaToolError, _("Unknown groupname %s : %s") % (options["gidmin"], msg) 
     239                         
     240            if not options["gidmax"] :     
     241                gidmax = sys.maxint 
     242            else :     
     243                try : 
     244                    gidmax = int(options["gidmax"]) 
     245                except :     
     246                    try : 
     247                        gidmax = grp.getgrnam(options["gidmax"])[2] 
     248                    except KeyError, msg :     
     249                        raise PyKotaToolError, _("Unknown groupname %s : %s") % (options["gidmax"], msg) 
     250             
     251            if gidmin > gidmax :             
     252                (gidmin, gidmax) = (gidmax, gidmin) 
     253            groups = self.listGroups(gidmin, gidmax, users) 
     254            if not options["emptygroups"] : 
     255                for (groupname, members) in groups.items() : 
     256                    if not members : 
     257                        del groups[groupname] 
    145258        else :     
    146             try : 
    147                 uidmax = int(options["uidmax"]) 
    148             except :     
    149                 try : 
    150                     uidmax = pwd.getpwnam(options["uidmax"])[2] 
    151                 except KeyError, msg :     
    152                     raise PyKotaToolError, _("Unknown username %s : %s") % (options["uidmax"], msg) 
    153          
    154         if uidmin > uidmax :             
    155             (uidmin, uidmax) = (uidmax, uidmin) 
    156         users = self.listUsers(uidmin, uidmax) 
     259            groups = [] 
     260             
    157261        printers = self.listPrinters()                     
    158          
    159262        if printers : 
    160263            self.createPrinters(printers, dryrun) 
    161             self.createUsers(users, dryrun) 
     264            self.createUsers([entry[0] for entry in users], dryrun) 
     265            self.createGroups(groups, dryrun) 
    162266         
    163267        if dryrun : 
    164             self.printInfo("Simulation terminated.") 
     268            self.printInfo(_("Simulation terminated.")) 
    165269        else :     
    166             self.printInfo("Database initialized !") 
     270            self.printInfo(_("Database initialized !")) 
    167271                     
    168272                      
     
    170274    retcode = 0 
    171275    try : 
    172         short_options = "hvfu:U:" 
    173         long_options = ["help", "version", "force", "uidmin=", "uidmax="] 
     276        short_options = "hvdDefu:U:g:G:" 
     277        long_options = ["help", "version", "dousers", "dogroups", \ 
     278                        "emptygroups", "force", "uidmin=", "uidmax=", \ 
     279                        "gidmin=", "gidmax="] 
    174280         
    175281        # Initializes the command line tool 
     
    186292        options["help"] = options["h"] or options["help"] 
    187293        options["version"] = options["v"] or options["version"] 
     294        options["dousers"] = options["d"] or options["dousers"] 
     295        options["dogroups"] = options["D"] or options["dogroups"] 
     296        options["emptygroups"] = options["e"] or options["emptygroups"] 
    188297        options["force"] = options["f"] or options["force"] 
    189298        options["uidmin"] = options["u"] or options["uidmin"] 
    190299        options["uidmax"] = options["U"] or options["uidmax"] 
    191          
     300        options["gidmin"] = options["g"] or options["gidmin"] 
     301        options["gidmax"] = options["G"] or options["gidmax"] 
     302         
     303        if options["uidmin"] or options["uidmax"] : 
     304            if not options["dousers"] : 
     305                manager.printInfo(_("The --uidmin or --uidmax command line option implies --dousers as well."), "warn") 
     306            options["dousers"] = 1     
     307             
     308        if options["gidmin"] or options["gidmax"] : 
     309            if not options["dogroups"] : 
     310                manager.printInfo(_("The --gidmin or --gidmax command line option implies --dogroups as well."), "warn") 
     311            options["dogroups"] = 1 
     312         
     313        if options["dogroups"] : 
     314            if not options["dousers"] : 
     315                manager.printInfo(_("The --dogroups command line option implies --dousers as well."), "warn") 
     316            options["dousers"] = 1     
     317             
    192318        if options["help"] : 
    193319            manager.display_usage_and_quit() 
  • pykota/trunk/man/de/pkturnkey.1

    r2433 r2435  
    22.TH PKTURNKEY "1" "septembre 2005" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 
    33.SH NOM 
    4 pkturnkey \- page de manuel de pkturnkey 1.23alpha27_unofficial 
     4pkturnkey \- page de manuel de pkturnkey 1.23alpha28_unofficial 
    55.SH DESCRIPTION 
    6 pkturnkey v1.23alpha27_unofficial (c) 2003, 2004, 2005 Jerome Alet \- alet@librelogiciel.com 
     6pkturnkey v1.23alpha28_unofficial (c) 2003, 2004, 2005 Jerome Alet \- alet@librelogiciel.com 
    77.PP 
    88A turn key tool for PyKota. When launched, this command will initialize 
     
    2323Prints this message then exits. 
    2424.TP 
     25\fB\-d\fR | \fB\-\-dousers\fR 
     26Manages users accounts as well. 
     27.TP 
     28\fB\-D\fR | \fB\-\-dogroups\fR 
     29Manages users groups as well. 
     30Implies \fB\-d\fR | \fB\-\-dousers\fR. 
     31.TP 
     32\fB\-e\fR | \fB\-\-emptygroups\fR 
     33Includes empty groups. 
     34.TP 
    2535\fB\-f\fR | \fB\-\-force\fR 
    2636Modifies the database instead of printing what 
     
    3242uid will be used automatically. 
    3343If not set, 0 will be used automatically. 
     44Implies \fB\-d\fR | \fB\-\-dousers\fR. 
    3445.TP 
    3546\fB\-U\fR | \fB\-\-uidmax\fR uid 
     
    3849uid will be used automatically. 
    3950If not set, a large value will be used automatically. 
     51Implies \fB\-d\fR | \fB\-\-dousers\fR. 
     52.TP 
     53\fB\-g\fR | \fB\-\-gidmin\fR gid 
     54Only adds groups whose gid is greater than or equal to 
     55gid. You can pass a groupname there as well, and its 
     56gid will be used automatically. 
     57If not set, 0 will be used automatically. 
     58Implies \fB\-D\fR | \fB\-\-dogroups\fR. 
     59.TP 
     60\fB\-G\fR | \fB\-\-gidmax\fR gid 
     61Only adds groups whose gid is lesser than or equal to 
     62gid. You can pass a groupname there as well, and its 
     63gid will be used automatically. 
     64If not set, a large value will be used automatically. 
     65Implies \fB\-D\fR | \fB\-\-dogroups\fR. 
    4066.PP 
    4167examples : 
    4268.IP 
    43 \f(CW$ pkturnkey --uidmin jerome\fR 
     69\f(CW$ pkturnkey --dousers --uidmin jerome\fR 
    4470.IP 
    4571Will simulate the initialization of PyKota's database will all existing 
    4672printers and print accounts for all users whose uid is greater than 
    47 or equal to jerome's one. 
     73or equal to jerome's one. Won't manage any users group. 
     74.IP 
    4875To REALLY initialize the database instead of simulating it, please 
    4976use the \fB\-f\fR | \fB\-\-force\fR command line switch. 
  • pykota/trunk/man/el_GR/pkturnkey.1

    r2433 r2435  
    22.TH PKTURNKEY "1" "septembre 2005" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 
    33.SH NOM 
    4 pkturnkey \- page de manuel de pkturnkey 1.23alpha27_unofficial 
     4pkturnkey \- page de manuel de pkturnkey 1.23alpha28_unofficial 
    55.SH DESCRIPTION 
    6 pkturnkey v1.23alpha27_unofficial (c) 2003, 2004, 2005 Jerome Alet \- alet@librelogiciel.com 
     6pkturnkey v1.23alpha28_unofficial (c) 2003, 2004, 2005 Jerome Alet \- alet@librelogiciel.com 
    77.PP 
    88A turn key tool for PyKota. When launched, this command will initialize 
     
    2323Prints this message then exits. 
    2424.TP 
     25\fB\-d\fR | \fB\-\-dousers\fR 
     26Manages users accounts as well. 
     27.TP 
     28\fB\-D\fR | \fB\-\-dogroups\fR 
     29Manages users groups as well. 
     30Implies \fB\-d\fR | \fB\-\-dousers\fR. 
     31.TP 
     32\fB\-e\fR | \fB\-\-emptygroups\fR 
     33Includes empty groups. 
     34.TP 
    2535\fB\-f\fR | \fB\-\-force\fR 
    2636Modifies the database instead of printing what 
     
    3242uid will be used automatically. 
    3343If not set, 0 will be used automatically. 
     44Implies \fB\-d\fR | \fB\-\-dousers\fR. 
    3445.TP 
    3546\fB\-U\fR | \fB\-\-uidmax\fR uid 
     
    3849uid will be used automatically. 
    3950If not set, a large value will be used automatically. 
     51Implies \fB\-d\fR | \fB\-\-dousers\fR. 
     52.TP 
     53\fB\-g\fR | \fB\-\-gidmin\fR gid 
     54Only adds groups whose gid is greater than or equal to 
     55gid. You can pass a groupname there as well, and its 
     56gid will be used automatically. 
     57If not set, 0 will be used automatically. 
     58Implies \fB\-D\fR | \fB\-\-dogroups\fR. 
     59.TP 
     60\fB\-G\fR | \fB\-\-gidmax\fR gid 
     61Only adds groups whose gid is lesser than or equal to 
     62gid. You can pass a groupname there as well, and its 
     63gid will be used automatically. 
     64If not set, a large value will be used automatically. 
     65Implies \fB\-D\fR | \fB\-\-dogroups\fR. 
    4066.PP 
    4167examples : 
    4268.IP 
    43 \f(CW$ pkturnkey --uidmin jerome\fR 
     69\f(CW$ pkturnkey --dousers --uidmin jerome\fR 
    4470.IP 
    4571Will simulate the initialization of PyKota's database will all existing 
    4672printers and print accounts for all users whose uid is greater than 
    47 or equal to jerome's one. 
     73or equal to jerome's one. Won't manage any users group. 
     74.IP 
    4875To REALLY initialize the database instead of simulating it, please 
    4976use the \fB\-f\fR | \fB\-\-force\fR command line switch. 
  • pykota/trunk/man/es/pkturnkey.1

    r2433 r2435  
    22.TH PKTURNKEY "1" "septembre 2005" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 
    33.SH NOM 
    4 pkturnkey \- page de manuel de pkturnkey 1.23alpha27_unofficial 
     4pkturnkey \- page de manuel de pkturnkey 1.23alpha28_unofficial 
    55.SH DESCRIPTION 
    6 pkturnkey v1.23alpha27_unofficial (c) 2003, 2004, 2005 Jerome Alet \- alet@librelogiciel.com 
     6pkturnkey v1.23alpha28_unofficial (c) 2003, 2004, 2005 Jerome Alet \- alet@librelogiciel.com 
    77.PP 
    88A turn key tool for PyKota. When launched, this command will initialize 
     
    2323Prints this message then exits. 
    2424.TP 
     25\fB\-d\fR | \fB\-\-dousers\fR 
     26Manages users accounts as well. 
     27.TP 
     28\fB\-D\fR | \fB\-\-dogroups\fR 
     29Manages users groups as well. 
     30Implies \fB\-d\fR | \fB\-\-dousers\fR. 
     31.TP 
     32\fB\-e\fR | \fB\-\-emptygroups\fR 
     33Includes empty groups. 
     34.TP 
    2535\fB\-f\fR | \fB\-\-force\fR 
    2636Modifies the database instead of printing what 
     
    3242uid will be used automatically. 
    3343If not set, 0 will be used automatically. 
     44Implies \fB\-d\fR | \fB\-\-dousers\fR. 
    3445.TP 
    3546\fB\-U\fR | \fB\-\-uidmax\fR uid 
     
    3849uid will be used automatically. 
    3950If not set, a large value will be used automatically. 
     51Implies \fB\-d\fR | \fB\-\-dousers\fR. 
     52.TP 
     53\fB\-g\fR | \fB\-\-gidmin\fR gid 
     54Only adds groups whose gid is greater than or equal to 
     55gid. You can pass a groupname there as well, and its 
     56gid will be used automatically. 
     57If not set, 0 will be used automatically. 
     58Implies \fB\-D\fR | \fB\-\-dogroups\fR. 
     59.TP 
     60\fB\-G\fR | \fB\-\-gidmax\fR gid 
     61Only adds groups whose gid is lesser than or equal to 
     62gid. You can pass a groupname there as well, and its 
     63gid will be used automatically. 
     64If not set, a large value will be used automatically. 
     65Implies \fB\-D\fR | \fB\-\-dogroups\fR. 
    4066.PP 
    4167examples : 
    4268.IP 
    43 \f(CW$ pkturnkey --uidmin jerome\fR 
     69\f(CW$ pkturnkey --dousers --uidmin jerome\fR 
    4470.IP 
    4571Will simulate the initialization of PyKota's database will all existing 
    4672printers and print accounts for all users whose uid is greater than 
    47 or equal to jerome's one. 
     73or equal to jerome's one. Won't manage any users group. 
     74.IP 
    4875To REALLY initialize the database instead of simulating it, please 
    4976use the \fB\-f\fR | \fB\-\-force\fR command line switch. 
  • pykota/trunk/man/fr/pkturnkey.1

    r2433 r2435  
    22.TH PKTURNKEY "1" "septembre 2005" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 
    33.SH NOM 
    4 pkturnkey \- page de manuel de pkturnkey 1.23alpha27_unofficial 
     4pkturnkey \- page de manuel de pkturnkey 1.23alpha28_unofficial 
    55.SH DESCRIPTION 
    6 pkturnkey v1.23alpha27_unofficial (c) 2003, 2004, 2005 Jerome Alet \- alet@librelogiciel.com 
     6pkturnkey v1.23alpha28_unofficial (c) 2003, 2004, 2005 Jerome Alet \- alet@librelogiciel.com 
    77.PP 
    88A turn key tool for PyKota. When launched, this command will initialize 
     
    2323Prints this message then exits. 
    2424.TP 
     25\fB\-d\fR | \fB\-\-dousers\fR 
     26Manages users accounts as well. 
     27.TP 
     28\fB\-D\fR | \fB\-\-dogroups\fR 
     29Manages users groups as well. 
     30Implies \fB\-d\fR | \fB\-\-dousers\fR. 
     31.TP 
     32\fB\-e\fR | \fB\-\-emptygroups\fR 
     33Includes empty groups. 
     34.TP 
    2535\fB\-f\fR | \fB\-\-force\fR 
    2636Modifies the database instead of printing what 
     
    3242uid will be used automatically. 
    3343If not set, 0 will be used automatically. 
     44Implies \fB\-d\fR | \fB\-\-dousers\fR. 
    3445.TP 
    3546\fB\-U\fR | \fB\-\-uidmax\fR uid 
     
    3849uid will be used automatically. 
    3950If not set, a large value will be used automatically. 
     51Implies \fB\-d\fR | \fB\-\-dousers\fR. 
     52.TP 
     53\fB\-g\fR | \fB\-\-gidmin\fR gid 
     54Only adds groups whose gid is greater than or equal to 
     55gid. You can pass a groupname there as well, and its 
     56gid will be used automatically. 
     57If not set, 0 will be used automatically. 
     58Implies \fB\-D\fR | \fB\-\-dogroups\fR. 
     59.TP 
     60\fB\-G\fR | \fB\-\-gidmax\fR gid 
     61Only adds groups whose gid is lesser than or equal to 
     62gid. You can pass a groupname there as well, and its 
     63gid will be used automatically. 
     64If not set, a large value will be used automatically. 
     65Implies \fB\-D\fR | \fB\-\-dogroups\fR. 
    4066.PP 
    4167examples : 
    4268.IP 
    43 \f(CW$ pkturnkey --uidmin jerome\fR 
     69\f(CW$ pkturnkey --dousers --uidmin jerome\fR 
    4470.IP 
    4571Will simulate the initialization of PyKota's database will all existing 
    4672printers and print accounts for all users whose uid is greater than 
    47 or equal to jerome's one. 
     73or equal to jerome's one. Won't manage any users group. 
     74.IP 
    4875To REALLY initialize the database instead of simulating it, please 
    4976use the \fB\-f\fR | \fB\-\-force\fR command line switch. 
  • pykota/trunk/man/it/pkturnkey.1

    r2433 r2435  
    22.TH PKTURNKEY "1" "septembre 2005" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 
    33.SH NOM 
    4 pkturnkey \- page de manuel de pkturnkey 1.23alpha27_unofficial 
     4pkturnkey \- page de manuel de pkturnkey 1.23alpha28_unofficial 
    55.SH DESCRIPTION 
    6 pkturnkey v1.23alpha27_unofficial (c) 2003, 2004, 2005 Jerome Alet \- alet@librelogiciel.com 
     6pkturnkey v1.23alpha28_unofficial (c) 2003, 2004, 2005 Jerome Alet \- alet@librelogiciel.com 
    77.PP 
    88A turn key tool for PyKota. When launched, this command will initialize 
     
    2323Prints this message then exits. 
    2424.TP 
     25\fB\-d\fR | \fB\-\-dousers\fR 
     26Manages users accounts as well. 
     27.TP 
     28\fB\-D\fR | \fB\-\-dogroups\fR 
     29Manages users groups as well. 
     30Implies \fB\-d\fR | \fB\-\-dousers\fR. 
     31.TP 
     32\fB\-e\fR | \fB\-\-emptygroups\fR 
     33Includes empty groups. 
     34.TP 
    2535\fB\-f\fR | \fB\-\-force\fR 
    2636Modifies the database instead of printing what 
     
    3242uid will be used automatically. 
    3343If not set, 0 will be used automatically. 
     44Implies \fB\-d\fR | \fB\-\-dousers\fR. 
    3445.TP 
    3546\fB\-U\fR | \fB\-\-uidmax\fR uid 
     
    3849uid will be used automatically. 
    3950If not set, a large value will be used automatically. 
     51Implies \fB\-d\fR | \fB\-\-dousers\fR. 
     52.TP 
     53\fB\-g\fR | \fB\-\-gidmin\fR gid 
     54Only adds groups whose gid is greater than or equal to 
     55gid. You can pass a groupname there as well, and its 
     56gid will be used automatically. 
     57If not set, 0 will be used automatically. 
     58Implies \fB\-D\fR | \fB\-\-dogroups\fR. 
     59.TP 
     60\fB\-G\fR | \fB\-\-gidmax\fR gid 
     61Only adds groups whose gid is lesser than or equal to 
     62gid. You can pass a groupname there as well, and its 
     63gid will be used automatically. 
     64If not set, a large value will be used automatically. 
     65Implies \fB\-D\fR | \fB\-\-dogroups\fR. 
    4066.PP 
    4167examples : 
    4268.IP 
    43 \f(CW$ pkturnkey --uidmin jerome\fR 
     69\f(CW$ pkturnkey --dousers --uidmin jerome\fR 
    4470.IP 
    4571Will simulate the initialization of PyKota's database will all existing 
    4672printers and print accounts for all users whose uid is greater than 
    47 or equal to jerome's one. 
     73or equal to jerome's one. Won't manage any users group. 
     74.IP 
    4875To REALLY initialize the database instead of simulating it, please 
    4976use the \fB\-f\fR | \fB\-\-force\fR command line switch. 
  • pykota/trunk/man/nb_NO/pkturnkey.1

    r2433 r2435  
    22.TH PKTURNKEY "1" "septembre 2005" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 
    33.SH NOM 
    4 pkturnkey \- page de manuel de pkturnkey 1.23alpha27_unofficial 
     4pkturnkey \- page de manuel de pkturnkey 1.23alpha28_unofficial 
    55.SH DESCRIPTION 
    6 pkturnkey v1.23alpha27_unofficial (c) 2003, 2004, 2005 Jerome Alet \- alet@librelogiciel.com 
     6pkturnkey v1.23alpha28_unofficial (c) 2003, 2004, 2005 Jerome Alet \- alet@librelogiciel.com 
    77.PP 
    88A turn key tool for PyKota. When launched, this command will initialize 
     
    2323Prints this message then exits. 
    2424.TP 
     25\fB\-d\fR | \fB\-\-dousers\fR 
     26Manages users accounts as well. 
     27.TP 
     28\fB\-D\fR | \fB\-\-dogroups\fR 
     29Manages users groups as well. 
     30Implies \fB\-d\fR | \fB\-\-dousers\fR. 
     31.TP 
     32\fB\-e\fR | \fB\-\-emptygroups\fR 
     33Includes empty groups. 
     34.TP 
    2535\fB\-f\fR | \fB\-\-force\fR 
    2636Modifies the database instead of printing what 
     
    3242uid will be used automatically. 
    3343If not set, 0 will be used automatically. 
     44Implies \fB\-d\fR | \fB\-\-dousers\fR. 
    3445.TP 
    3546\fB\-U\fR | \fB\-\-uidmax\fR uid 
     
    3849uid will be used automatically. 
    3950If not set, a large value will be used automatically. 
     51Implies \fB\-d\fR | \fB\-\-dousers\fR. 
     52.TP 
     53\fB\-g\fR | \fB\-\-gidmin\fR gid 
     54Only adds groups whose gid is greater than or equal to 
     55gid. You can pass a groupname there as well, and its 
     56gid will be used automatically. 
     57If not set, 0 will be used automatically. 
     58Implies \fB\-D\fR | \fB\-\-dogroups\fR. 
     59.TP 
     60\fB\-G\fR | \fB\-\-gidmax\fR gid 
     61Only adds groups whose gid is lesser than or equal to 
     62gid. You can pass a groupname there as well, and its 
     63gid will be used automatically. 
     64If not set, a large value will be used automatically. 
     65Implies \fB\-D\fR | \fB\-\-dogroups\fR. 
    4066.PP 
    4167examples : 
    4268.IP 
    43 \f(CW$ pkturnkey --uidmin jerome\fR 
     69\f(CW$ pkturnkey --dousers --uidmin jerome\fR 
    4470.IP 
    4571Will simulate the initialization of PyKota's database will all existing 
    4672printers and print accounts for all users whose uid is greater than 
    47 or equal to jerome's one. 
     73or equal to jerome's one. Won't manage any users group. 
     74.IP 
    4875To REALLY initialize the database instead of simulating it, please 
    4976use the \fB\-f\fR | \fB\-\-force\fR command line switch. 
  • pykota/trunk/man/pkturnkey.1

    r2433 r2435  
    22.TH PKTURNKEY "1" "September 2005" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 
    33.SH NAME 
    4 pkturnkey \- manual page for pkturnkey 1.23alpha27_unofficial 
     4pkturnkey \- manual page for pkturnkey 1.23alpha28_unofficial 
    55.SH DESCRIPTION 
    6 pkturnkey v1.23alpha27_unofficial (c) 2003, 2004, 2005 Jerome Alet \- alet@librelogiciel.com 
     6pkturnkey v1.23alpha28_unofficial (c) 2003, 2004, 2005 Jerome Alet \- alet@librelogiciel.com 
    77.PP 
    88A turn key tool for PyKota. When launched, this command will initialize 
     
    2323Prints this message then exits. 
    2424.TP 
     25\fB\-d\fR | \fB\-\-dousers\fR 
     26Manages users accounts as well. 
     27.TP 
     28\fB\-D\fR | \fB\-\-dogroups\fR 
     29Manages users groups as well. 
     30Implies \fB\-d\fR | \fB\-\-dousers\fR. 
     31.TP 
     32\fB\-e\fR | \fB\-\-emptygroups\fR 
     33Includes empty groups. 
     34.TP 
    2535\fB\-f\fR | \fB\-\-force\fR 
    2636Modifies the database instead of printing what 
     
    3242uid will be used automatically. 
    3343If not set, 0 will be used automatically. 
     44Implies \fB\-d\fR | \fB\-\-dousers\fR. 
    3445.TP 
    3546\fB\-U\fR | \fB\-\-uidmax\fR uid 
     
    3849uid will be used automatically. 
    3950If not set, a large value will be used automatically. 
     51Implies \fB\-d\fR | \fB\-\-dousers\fR. 
     52.TP 
     53\fB\-g\fR | \fB\-\-gidmin\fR gid 
     54Only adds groups whose gid is greater than or equal to 
     55gid. You can pass a groupname there as well, and its 
     56gid will be used automatically. 
     57If not set, 0 will be used automatically. 
     58Implies \fB\-D\fR | \fB\-\-dogroups\fR. 
     59.TP 
     60\fB\-G\fR | \fB\-\-gidmax\fR gid 
     61Only adds groups whose gid is lesser than or equal to 
     62gid. You can pass a groupname there as well, and its 
     63gid will be used automatically. 
     64If not set, a large value will be used automatically. 
     65Implies \fB\-D\fR | \fB\-\-dogroups\fR. 
    4066.PP 
    4167examples : 
    4268.IP 
    43 \f(CW$ pkturnkey --uidmin jerome\fR 
     69\f(CW$ pkturnkey --dousers --uidmin jerome\fR 
    4470.IP 
    4571Will simulate the initialization of PyKota's database will all existing 
    4672printers and print accounts for all users whose uid is greater than 
    47 or equal to jerome's one. 
     73or equal to jerome's one. Won't manage any users group. 
     74.IP 
    4875To REALLY initialize the database instead of simulating it, please 
    4976use the \fB\-f\fR | \fB\-\-force\fR command line switch. 
  • pykota/trunk/man/pt_BR/pkturnkey.1

    r2433 r2435  
    22.TH PKTURNKEY "1" "septembre 2005" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 
    33.SH NOM 
    4 pkturnkey \- page de manuel de pkturnkey 1.23alpha27_unofficial 
     4pkturnkey \- page de manuel de pkturnkey 1.23alpha28_unofficial 
    55.SH DESCRIPTION 
    6 pkturnkey v1.23alpha27_unofficial (c) 2003, 2004, 2005 Jerome Alet \- alet@librelogiciel.com 
     6pkturnkey v1.23alpha28_unofficial (c) 2003, 2004, 2005 Jerome Alet \- alet@librelogiciel.com 
    77.PP 
    88A turn key tool for PyKota. When launched, this command will initialize 
     
    2323Prints this message then exits. 
    2424.TP 
     25\fB\-d\fR | \fB\-\-dousers\fR 
     26Manages users accounts as well. 
     27.TP 
     28\fB\-D\fR | \fB\-\-dogroups\fR 
     29Manages users groups as well. 
     30Implies \fB\-d\fR | \fB\-\-dousers\fR. 
     31.TP 
     32\fB\-e\fR | \fB\-\-emptygroups\fR 
     33Includes empty groups. 
     34.TP 
    2535\fB\-f\fR | \fB\-\-force\fR 
    2636Modifies the database instead of printing what 
     
    3242uid will be used automatically. 
    3343If not set, 0 will be used automatically. 
     44Implies \fB\-d\fR | \fB\-\-dousers\fR. 
    3445.TP 
    3546\fB\-U\fR | \fB\-\-uidmax\fR uid 
     
    3849uid will be used automatically. 
    3950If not set, a large value will be used automatically. 
     51Implies \fB\-d\fR | \fB\-\-dousers\fR. 
     52.TP 
     53\fB\-g\fR | \fB\-\-gidmin\fR gid 
     54Only adds groups whose gid is greater than or equal to 
     55gid. You can pass a groupname there as well, and its 
     56gid will be used automatically. 
     57If not set, 0 will be used automatically. 
     58Implies \fB\-D\fR | \fB\-\-dogroups\fR. 
     59.TP 
     60\fB\-G\fR | \fB\-\-gidmax\fR gid 
     61Only adds groups whose gid is lesser than or equal to 
     62gid. You can pass a groupname there as well, and its 
     63gid will be used automatically. 
     64If not set, a large value will be used automatically. 
     65Implies \fB\-D\fR | \fB\-\-dogroups\fR. 
    4066.PP 
    4167examples : 
    4268.IP 
    43 \f(CW$ pkturnkey --uidmin jerome\fR 
     69\f(CW$ pkturnkey --dousers --uidmin jerome\fR 
    4470.IP 
    4571Will simulate the initialization of PyKota's database will all existing 
    4672printers and print accounts for all users whose uid is greater than 
    47 or equal to jerome's one. 
     73or equal to jerome's one. Won't manage any users group. 
     74.IP 
    4875To REALLY initialize the database instead of simulating it, please 
    4976use the \fB\-f\fR | \fB\-\-force\fR command line switch. 
  • pykota/trunk/man/pt/pkturnkey.1

    r2433 r2435  
    22.TH PKTURNKEY "1" "septembre 2005" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 
    33.SH NOM 
    4 pkturnkey \- page de manuel de pkturnkey 1.23alpha27_unofficial 
     4pkturnkey \- page de manuel de pkturnkey 1.23alpha28_unofficial 
    55.SH DESCRIPTION 
    6 pkturnkey v1.23alpha27_unofficial (c) 2003, 2004, 2005 Jerome Alet \- alet@librelogiciel.com 
     6pkturnkey v1.23alpha28_unofficial (c) 2003, 2004, 2005 Jerome Alet \- alet@librelogiciel.com 
    77.PP 
    88A turn key tool for PyKota. When launched, this command will initialize 
     
    2323Prints this message then exits. 
    2424.TP 
     25\fB\-d\fR | \fB\-\-dousers\fR 
     26Manages users accounts as well. 
     27.TP 
     28\fB\-D\fR | \fB\-\-dogroups\fR 
     29Manages users groups as well. 
     30Implies \fB\-d\fR | \fB\-\-dousers\fR. 
     31.TP 
     32\fB\-e\fR | \fB\-\-emptygroups\fR 
     33Includes empty groups. 
     34.TP 
    2535\fB\-f\fR | \fB\-\-force\fR 
    2636Modifies the database instead of printing what 
     
    3242uid will be used automatically. 
    3343If not set, 0 will be used automatically. 
     44Implies \fB\-d\fR | \fB\-\-dousers\fR. 
    3445.TP 
    3546\fB\-U\fR | \fB\-\-uidmax\fR uid 
     
    3849uid will be used automatically. 
    3950If not set, a large value will be used automatically. 
     51Implies \fB\-d\fR | \fB\-\-dousers\fR. 
     52.TP 
     53\fB\-g\fR | \fB\-\-gidmin\fR gid 
     54Only adds groups whose gid is greater than or equal to 
     55gid. You can pass a groupname there as well, and its 
     56gid will be used automatically. 
     57If not set, 0 will be used automatically. 
     58Implies \fB\-D\fR | \fB\-\-dogroups\fR. 
     59.TP 
     60\fB\-G\fR | \fB\-\-gidmax\fR gid 
     61Only adds groups whose gid is lesser than or equal to 
     62gid. You can pass a groupname there as well, and its 
     63gid will be used automatically. 
     64If not set, a large value will be used automatically. 
     65Implies \fB\-D\fR | \fB\-\-dogroups\fR. 
    4066.PP 
    4167examples : 
    4268.IP 
    43 \f(CW$ pkturnkey --uidmin jerome\fR 
     69\f(CW$ pkturnkey --dousers --uidmin jerome\fR 
    4470.IP 
    4571Will simulate the initialization of PyKota's database will all existing 
    4672printers and print accounts for all users whose uid is greater than 
    47 or equal to jerome's one. 
     73or equal to jerome's one. Won't manage any users group. 
     74.IP 
    4875To REALLY initialize the database instead of simulating it, please 
    4976use the \fB\-f\fR | \fB\-\-force\fR command line switch. 
  • pykota/trunk/man/sv_SE/pkturnkey.1

    r2433 r2435  
    22.TH PKTURNKEY "1" "septembre 2005" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 
    33.SH NOM 
    4 pkturnkey \- page de manuel de pkturnkey 1.23alpha27_unofficial 
     4pkturnkey \- page de manuel de pkturnkey 1.23alpha28_unofficial 
    55.SH DESCRIPTION 
    6 pkturnkey v1.23alpha27_unofficial (c) 2003, 2004, 2005 Jerome Alet \- alet@librelogiciel.com 
     6pkturnkey v1.23alpha28_unofficial (c) 2003, 2004, 2005 Jerome Alet \- alet@librelogiciel.com 
    77.PP 
    88A turn key tool for PyKota. When launched, this command will initialize 
     
    2323Prints this message then exits. 
    2424.TP 
     25\fB\-d\fR | \fB\-\-dousers\fR 
     26Manages users accounts as well. 
     27.TP 
     28\fB\-D\fR | \fB\-\-dogroups\fR 
     29Manages users groups as well. 
     30Implies \fB\-d\fR | \fB\-\-dousers\fR. 
     31.TP 
     32\fB\-e\fR | \fB\-\-emptygroups\fR 
     33Includes empty groups. 
     34.TP 
    2535\fB\-f\fR | \fB\-\-force\fR 
    2636Modifies the database instead of printing what 
     
    3242uid will be used automatically. 
    3343If not set, 0 will be used automatically. 
     44Implies \fB\-d\fR | \fB\-\-dousers\fR. 
    3445.TP 
    3546\fB\-U\fR | \fB\-\-uidmax\fR uid 
     
    3849uid will be used automatically. 
    3950If not set, a large value will be used automatically. 
     51Implies \fB\-d\fR | \fB\-\-dousers\fR. 
     52.TP 
     53\fB\-g\fR | \fB\-\-gidmin\fR gid 
     54Only adds groups whose gid is greater than or equal to 
     55gid. You can pass a groupname there as well, and its 
     56gid will be used automatically. 
     57If not set, 0 will be used automatically. 
     58Implies \fB\-D\fR | \fB\-\-dogroups\fR. 
     59.TP 
     60\fB\-G\fR | \fB\-\-gidmax\fR gid 
     61Only adds groups whose gid is lesser than or equal to 
     62gid. You can pass a groupname there as well, and its 
     63gid will be used automatically. 
     64If not set, a large value will be used automatically. 
     65Implies \fB\-D\fR | \fB\-\-dogroups\fR. 
    4066.PP 
    4167examples : 
    4268.IP 
    43 \f(CW$ pkturnkey --uidmin jerome\fR 
     69\f(CW$ pkturnkey --dousers --uidmin jerome\fR 
    4470.IP 
    4571Will simulate the initialization of PyKota's database will all existing 
    4672printers and print accounts for all users whose uid is greater than 
    47 or equal to jerome's one. 
     73or equal to jerome's one. Won't manage any users group. 
     74.IP 
    4875To REALLY initialize the database instead of simulating it, please 
    4976use the \fB\-f\fR | \fB\-\-force\fR command line switch. 
  • pykota/trunk/man/th/pkturnkey.1

    r2433 r2435  
    22.TH PKTURNKEY "1" "septembre 2005" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 
    33.SH NOM 
    4 pkturnkey \- page de manuel de pkturnkey 1.23alpha27_unofficial 
     4pkturnkey \- page de manuel de pkturnkey 1.23alpha28_unofficial 
    55.SH DESCRIPTION 
    6 pkturnkey v1.23alpha27_unofficial (c) 2003, 2004, 2005 Jerome Alet \- alet@librelogiciel.com 
     6pkturnkey v1.23alpha28_unofficial (c) 2003, 2004, 2005 Jerome Alet \- alet@librelogiciel.com 
    77.PP 
    88A turn key tool for PyKota. When launched, this command will initialize 
     
    2323Prints this message then exits. 
    2424.TP 
     25\fB\-d\fR | \fB\-\-dousers\fR 
     26Manages users accounts as well. 
     27.TP 
     28\fB\-D\fR | \fB\-\-dogroups\fR 
     29Manages users groups as well. 
     30Implies \fB\-d\fR | \fB\-\-dousers\fR. 
     31.TP 
     32\fB\-e\fR | \fB\-\-emptygroups\fR 
     33Includes empty groups. 
     34.TP 
    2535\fB\-f\fR | \fB\-\-force\fR 
    2636Modifies the database instead of printing what 
     
    3242uid will be used automatically. 
    3343If not set, 0 will be used automatically. 
     44Implies \fB\-d\fR | \fB\-\-dousers\fR. 
    3445.TP 
    3546\fB\-U\fR | \fB\-\-uidmax\fR uid 
     
    3849uid will be used automatically. 
    3950If not set, a large value will be used automatically. 
     51Implies \fB\-d\fR | \fB\-\-dousers\fR. 
     52.TP 
     53\fB\-g\fR | \fB\-\-gidmin\fR gid 
     54Only adds groups whose gid is greater than or equal to 
     55gid. You can pass a groupname there as well, and its 
     56gid will be used automatically. 
     57If not set, 0 will be used automatically. 
     58Implies \fB\-D\fR | \fB\-\-dogroups\fR. 
     59.TP 
     60\fB\-G\fR | \fB\-\-gidmax\fR gid 
     61Only adds groups whose gid is lesser than or equal to 
     62gid. You can pass a groupname there as well, and its 
     63gid will be used automatically. 
     64If not set, a large value will be used automatically. 
     65Implies \fB\-D\fR | \fB\-\-dogroups\fR. 
    4066.PP 
    4167examples : 
    4268.IP 
    43 \f(CW$ pkturnkey --uidmin jerome\fR 
     69\f(CW$ pkturnkey --dousers --uidmin jerome\fR 
    4470.IP 
    4571Will simulate the initialization of PyKota's database will all existing 
    4672printers and print accounts for all users whose uid is greater than 
    47 or equal to jerome's one. 
     73or equal to jerome's one. Won't manage any users group. 
     74.IP 
    4875To REALLY initialize the database instead of simulating it, please 
    4976use the \fB\-f\fR | \fB\-\-force\fR command line switch. 
  • pykota/trunk/man/tr/pkturnkey.1

    r2433 r2435  
    22.TH PKTURNKEY "1" "septembre 2005" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 
    33.SH NOM 
    4 pkturnkey \- page de manuel de pkturnkey 1.23alpha27_unofficial 
     4pkturnkey \- page de manuel de pkturnkey 1.23alpha28_unofficial 
    55.SH DESCRIPTION 
    6 pkturnkey v1.23alpha27_unofficial (c) 2003, 2004, 2005 Jerome Alet \- alet@librelogiciel.com 
     6pkturnkey v1.23alpha28_unofficial (c) 2003, 2004, 2005 Jerome Alet \- alet@librelogiciel.com 
    77.PP 
    88A turn key tool for PyKota. When launched, this command will initialize 
     
    2323Prints this message then exits. 
    2424.TP 
     25\fB\-d\fR | \fB\-\-dousers\fR 
     26Manages users accounts as well. 
     27.TP 
     28\fB\-D\fR | \fB\-\-dogroups\fR 
     29Manages users groups as well. 
     30Implies \fB\-d\fR | \fB\-\-dousers\fR. 
     31.TP 
     32\fB\-e\fR | \fB\-\-emptygroups\fR 
     33Includes empty groups. 
     34.TP 
    2535\fB\-f\fR | \fB\-\-force\fR 
    2636Modifies the database instead of printing what 
     
    3242uid will be used automatically. 
    3343If not set, 0 will be used automatically. 
     44Implies \fB\-d\fR | \fB\-\-dousers\fR. 
    3445.TP 
    3546\fB\-U\fR | \fB\-\-uidmax\fR uid 
     
    3849uid will be used automatically. 
    3950If not set, a large value will be used automatically. 
     51Implies \fB\-d\fR | \fB\-\-dousers\fR. 
     52.TP 
     53\fB\-g\fR | \fB\-\-gidmin\fR gid 
     54Only adds groups whose gid is greater than or equal to 
     55gid. You can pass a groupname there as well, and its 
     56gid will be used automatically. 
     57If not set, 0 will be used automatically. 
     58Implies \fB\-D\fR | \fB\-\-dogroups\fR. 
     59.TP 
     60\fB\-G\fR | \fB\-\-gidmax\fR gid 
     61Only adds groups whose gid is lesser than or equal to 
     62gid. You can pass a groupname there as well, and its 
     63gid will be used automatically. 
     64If not set, a large value will be used automatically. 
     65Implies \fB\-D\fR | \fB\-\-dogroups\fR. 
    4066.PP 
    4167examples : 
    4268.IP 
    43 \f(CW$ pkturnkey --uidmin jerome\fR 
     69\f(CW$ pkturnkey --dousers --uidmin jerome\fR 
    4470.IP 
    4571Will simulate the initialization of PyKota's database will all existing 
    4672printers and print accounts for all users whose uid is greater than 
    47 or equal to jerome's one. 
     73or equal to jerome's one. Won't manage any users group. 
     74.IP 
    4875To REALLY initialize the database instead of simulating it, please 
    4976use the \fB\-f\fR | \fB\-\-force\fR command line switch. 
  • pykota/trunk/man/zh_TW/pkturnkey.1

    r2433 r2435  
    22.TH PKTURNKEY "1" "septembre 2005" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 
    33.SH NOM 
    4 pkturnkey \- page de manuel de pkturnkey 1.23alpha27_unofficial 
     4pkturnkey \- page de manuel de pkturnkey 1.23alpha28_unofficial 
    55.SH DESCRIPTION 
    6 pkturnkey v1.23alpha27_unofficial (c) 2003, 2004, 2005 Jerome Alet \- alet@librelogiciel.com 
     6pkturnkey v1.23alpha28_unofficial (c) 2003, 2004, 2005 Jerome Alet \- alet@librelogiciel.com 
    77.PP 
    88A turn key tool for PyKota. When launched, this command will initialize 
     
    2323Prints this message then exits. 
    2424.TP 
     25\fB\-d\fR | \fB\-\-dousers\fR 
     26Manages users accounts as well. 
     27.TP 
     28\fB\-D\fR | \fB\-\-dogroups\fR 
     29Manages users groups as well. 
     30Implies \fB\-d\fR | \fB\-\-dousers\fR. 
     31.TP 
     32\fB\-e\fR | \fB\-\-emptygroups\fR 
     33Includes empty groups. 
     34.TP 
    2535\fB\-f\fR | \fB\-\-force\fR 
    2636Modifies the database instead of printing what 
     
    3242uid will be used automatically. 
    3343If not set, 0 will be used automatically. 
     44Implies \fB\-d\fR | \fB\-\-dousers\fR. 
    3445.TP 
    3546\fB\-U\fR | \fB\-\-uidmax\fR uid 
     
    3849uid will be used automatically. 
    3950If not set, a large value will be used automatically. 
     51Implies \fB\-d\fR | \fB\-\-dousers\fR. 
     52.TP 
     53\fB\-g\fR | \fB\-\-gidmin\fR gid 
     54Only adds groups whose gid is greater than or equal to 
     55gid. You can pass a groupname there as well, and its 
     56gid will be used automatically. 
     57If not set, 0 will be used automatically. 
     58Implies \fB\-D\fR | \fB\-\-dogroups\fR. 
     59.TP 
     60\fB\-G\fR | \fB\-\-gidmax\fR gid 
     61Only adds groups whose gid is lesser than or equal to 
     62gid. You can pass a groupname there as well, and its 
     63gid will be used automatically. 
     64If not set, a large value will be used automatically. 
     65Implies \fB\-D\fR | \fB\-\-dogroups\fR. 
    4066.PP 
    4167examples : 
    4268.IP 
    43 \f(CW$ pkturnkey --uidmin jerome\fR 
     69\f(CW$ pkturnkey --dousers --uidmin jerome\fR 
    4470.IP 
    4571Will simulate the initialization of PyKota's database will all existing 
    4672printers and print accounts for all users whose uid is greater than 
    47 or equal to jerome's one. 
     73or equal to jerome's one. Won't manage any users group. 
     74.IP 
    4875To REALLY initialize the database instead of simulating it, please 
    4976use the \fB\-f\fR | \fB\-\-force\fR command line switch. 
  • pykota/trunk/NEWS

    r2432 r2435  
    2222PyKota NEWS : 
    2323        
     24    - 1.23alpha28 : 
     25     
     26        - Added group management to pkturnkey. 
     27         
     28        - Fixed umask in setup script. 
     29         
    2430    - 1.23alpha27 : 
    2531     
  • pykota/trunk/pykota/version.py

    r2432 r2435  
    2222# 
    2323 
    24 __version__ = "1.23alpha27_unofficial" 
     24__version__ = "1.23alpha28_unofficial" 
    2525 
    2626__doc__ = "PyKota : a complete Printing Quota Solution for CUPS and LPRng."