1 | UserMod script for Samba Server for eCS (OS/2) Version 2.2.1
|
---|
2 | ============================================================
|
---|
3 |
|
---|
4 | Copyright (C) netlabs.org 2007-2009
|
---|
5 |
|
---|
6 | usermod.cmd is the new universal user manipulation script for the Samba
|
---|
7 | Server for eCS(OS/2). It integrates the functionality found in its
|
---|
8 | predecessors useradd.cmd, userdel.cmd and userren.cmd in one universal
|
---|
9 | script.
|
---|
10 |
|
---|
11 | The enclosed useradd.cmd, userdel.cmd and userren.cmd are just forwarder
|
---|
12 | scripts and just call usermod.cmd with appropriate parameters in order
|
---|
13 | to use the new usermod.cmd in situations were it is impossible to update
|
---|
14 | smb.conf.
|
---|
15 |
|
---|
16 | UserMod has 5 modes of operation:
|
---|
17 |
|
---|
18 | Add a new kLIBC user: usermod -a "username"
|
---|
19 | Add a machine account: usermod -a "machinename$"
|
---|
20 | Remove a kLIBC user: usermod -x "username"
|
---|
21 | Rename a kLIBC user: usermod -r "oldusername" "newusername"
|
---|
22 | Display help: usermod /?
|
---|
23 | Display help: usermod -?
|
---|
24 | Display help: usermod -H
|
---|
25 |
|
---|
26 | Running usermod without a paramter just rewrites the kLIBC password database.
|
---|
27 |
|
---|
28 | Unlike its predecessors, usermod.cmd not only adds/removes/renames users in
|
---|
29 | master.passwd, but also takes care of the group file. In addition usermod.cmd
|
---|
30 | acts more intelligently, when dealing with GID allocation, as it knows suitable
|
---|
31 | GIDs for the well-known group IDs (root: 512, users: 513, machines: 515).
|
---|
32 |
|
---|
33 | usermod.cmd inherited a lot of code from smbusers.exe, which should make it
|
---|
34 | more robust and less picky.
|
---|
35 |
|
---|
36 | Author: Herwig Bauernfeind, (c) 2009
|
---|
37 | Mailto: herwig.bauernfeind@aon.at
|
---|