source: branches/scripts/user/readme.usermod@ 940

Last change on this file since 940 was 299, checked in by Herwig Bauernfeind, 16 years ago

smb.cmd: Check if master.passwd exists, give hints in case of error

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