Samba - Management


2003-11-17
This section explains how to manage users and machine accounts using the scripts in section 0-2 Samba on FreeBSD.I. Adding User
To add a user for Windows XP clients…

# addsmbuser.sh username "full name" password

Example: # addsmbuser.sh bbryan "Benjamin Bryan" fdk537kdff39zs6

II. Adding Machine Account
A machine account is required for each Windows XP client. Use the netbios namae of the machine. For example, to addmachine pc-01…

# addmachine.sh pc-01$
# addmachinesamba.sh pc-01

(note the $ on the first command)

III. Removing Users

# removesmbuser.sh user

IV. Removing Machine Accounts

# rmuser machineaccount$
# smbpasswd -x machineaccount