source: branches/guitools-1.0/smbusers/readme.smbusers@ 287

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

GUI tools: smbusers Version 0.9.1

File size: 7.3 KB
Line 
1Local Samba users and groups 0.9.1
2==================================
3
4NOTE: If smbusers.exe detects an error during startup (inspect the console
5 for "ERROR could not find ...." messages), it will not let you save any
6 changes to disk, as this might make the situation worse than it is.
7
8NOTE: Make sure you have read and understood Ticket #59 at
9 http://svn.netlabs.org/samba before using smbusers.exe!
10
11NOTE: Ticket #59 seems to be gone in Samba 3.3.x!
12
13NOTE: smbusers.exe needs rexxini.dll, drctl017.dll and vrobj.dll somewhere
14 in the LIBPATH. In case you installed a recent Samba WPI this is
15 requirement is fullfilled.
16
17NOTE: Version 0.5.0 or better are designed to work with the new usermod.cmd
18 script (enclosed for conveniance), which replaces useradd.cmd,
19 userren.cmd and userdel.cmd. Don't forget to update your smb.conf
20 (look into usermod.cmd to see what changes need to be done!).
21
22NOTE: In case it is not possible to change smb.conf there are forwarder
23 scripts included that translate the old calling convention into the
24 new one.
25
26With smbusers.exe you can
27- add users
28- remove users
29- add groups
30- remove groups
31- map (unix) groups to Samba groups (or as they are called: NT groups)
32- add users to groups
33- remove users from groups
34- view all (and edit some) user properties
35- configure Samba usermap feature
36- configure builtin Samba policies
37
38Specify --user=yourusername%yourpassword on the commandline to bypass the
39initial login dialog. If you want to create a WPS object that performs
40automatic login use --user=yourusername|yourpassword .
41
42Currently smbusers.exe checks several files for errors and corrects them:
43
44- master.passwd : duplicate entries, UID mismatch and missing user records
45- Samba users db : UID mismatch, corrupt Smb user (detected only)
46- group : duplicate entries, missing users, nonexisting users,
47 missing trailing comma
48- Samba groups : Detect when Samba has forgotten about its groups and only
49 the mapping is still there
50
51Editable fields on the users and groups page (alt-left-click into the field)
52can savely be edited, press "Save" to save to disk.
53
54You can perform the following tasks with smbusers.exe:
55
56"Users" page:
57
58Right click on the columns titles to customize the layout.
59
60NOTE: The preconfigured layout is recommended, in case you are not
61 interested into more technical details.
62
63NOTE: There is an alternative icon view on the users page, which does not
64 have a particular purpose at this time.
65
66Right click to bring up a context menu.
67
68- "Add users": Create new user accounts, these are added both to Samba, the
69 kLIBC files and SWAT. In case the selected user is only a kLIBC
70 user instead of adding a new user the kLIBC user info is shown
71 in order to add Samba user information. This behavior is not
72 intuitive and might be changed in future releases.
73- "Remove users": The opposite of the above.
74
75- "Join group": Add an existing user to an existing group
76- "Leave group": The opposite of the above.
77
78Doubleclick on a user brings up Samba user properties dialogue.
79
80This is another (pseudo) notebook with 3 pages:
81
82Account flags: Here you can change several user account flags.
83
84Profile data: Several of these can be changed now by alt-left-click into
85the value fields (like on users and group page).
86
87Group memberships: Show in which groups the current user is a member.
88
89Uncheck the "Show editable fields only" to show all fields.
90
91In addition you can modify values using the "pdbedit console" found on this
92window.
93
94NOTE: Due to a bug in the OS/2 Samba code, you MUST NOT add the first guest
95 account to any group at the moment - doing so will make Samba loose
96 the whole group information upon the next restart (see Samba Ticket #59
97 for details). If this happened to you, stop Samba, delete the file
98 group_mapping.tdb in the lock directory and run the rebuild script
99 (below to get Samba groups back).
100
101"Groups" page:
102
103Right click on the columns titles to customize the layout.
104NOTE: The preconfigured layout is recommended, in case you are not
105 interested into more technical details.
106
107Right click to bring up a context menu.
108
109- "Add group": Create a new group, both for Samba and kLIBC.
110- "Map group": Tie a new Samba group to an existing kLIBC group.
111- "Delete group": Opposite of "add group"
112- "Unmap group": Opposite of "map group"
113- "Script": Create a script of the current Samba groups in order to recreate
114 groups in case of an error (created for exploring Ticket #59). You
115 still can create the rebuild script in case the group information
116 is already lost as part of the information is still accessible).
117 Do not forget to remove the offending guest account also from the
118 user list in the etc\group file.
119- "Well-known": As long as no groups exists, this will create the well-known
120 Samba groups that should be present in every Samba installation.
121
122"Policies" page
123
124The Policies page found in Version 0.9.0 or better acts as a front end to
125pdbedit.exe policy editing capabilities. The drop down box lists all available
126policies and allows to update their values. In addition you may reset all
127policies to their default values.
128
129"Settings" page
130
131The Settings page found in Version 0.5.0 or better has the following options:
132
133"Debug": Previously found on the main window, opens a console window and
134 shows useful log information
135
136"Fix errors": smbusers.exe detects several errors in master.passwd and group
137 files and optionally coorects them. This option was present in
138 older versions of smbusers.exe, just not changeable. You should
139 leave it on normally.
140
141"Syncronize GECOS with Samba Full name": The GECOS field in master.passwd
142 usually holds the full name of the user, much like the Samba Full name
143 field. However per definition the GECOS field also may hold address
144 data and so on. If you want to store address data in the GECOS field
145 disable this option.
146
147"Syncronize primary GID": This rather experimental option makes sure that the
148 GID field in master.passwd is the same as the RID stored by Samba.
149 Usually that is the case anyway. This option is useful on older
150 installations, where the GID field was set to UID. Samba internally
151 set the RID to 513 (users) in that case. This option takes care of
152 this situation and changes the GID appropriately.
153 NOTE: The "guest" account is not touched, as this would trigger a
154 Ticket #59 situation (groups broken).
155
156
157How to get back to a working state in case of a pwd_mkdb.exe error:
158
1591. Copy %UNIXROOT%\ETC\master.passwd.bak to master.passwd
1602. Copy %UNIXROOT%\ETC\group.bak to group
1613. Remove %UNIXROOT%\ETC\*db.tmp
1624. Run pwd_mkdb.exe -d %UNIXROOT%\ETC %UNIXROOT%\ETC\master.passwd
163 Running usermod.cmd with parameters does exactly that.
164
165You should be back now.
166
167Bug reports appreciated.
168mailto:herwig.bauernfeind@aon.at
169HerwigB on irc://freenode/netlabs
Note: See TracBrowser for help on using the repository browser.