Samba on NonStop User Manual

C Quick Start
This section provides an example of a very simple NS-Samba setup and illustrates each of the steps
with commands. In this example, we are configuring NS-Samba to provide read access to the
NS-Samba documentation directory /usr/local/samba/share/docs and read-write access
to /tmp directory. A user by name DEVS.CALVIN is used to access the shares.
1. Add the user DEVS.CALVIN to the NonStop system, if one does not exist already, using the
SAFECOM utility. Only the super user or group manager (group name DEVS and group number
101) uses the following command to add CALVIN to the group:
=ADD USER DEVS.CALVIN, 101, 10, PASSWORD hobbes
This command adds an user who has the user name DEVS.CALVIN and the user ID 101,10.
CALVIN's logon password for the NonStop server is hobbes. The other user attributes for
DEVS.CALVIN have their default values.
2. Add the user DEVS.CALVIN to the NS-Samba user database:
# /usr/bin/pdbedit -a devs.calvin
Enter DEVS.CALVIN’s NS-Samba password when prompted. In this example, tiger has
been provided as the password.
3. Configure the NS-Samba server by placing the following content in the /etc/samba/
smb.conf file:
# Samba configuration file
[global]
netbios name = POS05
workgroup = WORKGROUP
security = user
smbd:backgroundqueue = False
[SambaDocs]
comment = Samba documents
path = /usr/local/samba/share/docs
read only = yes
[tmp]
comment = Scratch pad
path = /tmp
read only = No
4. Verify the correctness of the syntax using testparm tool.
#testparm /etc/samba/smb.conf
Check and proceed if no errors or warnings are reported in the output. An example of the
output for the above mentioned configuration file is given below:
Load smb config files from /etc/samba/smb.conf
Processing section "[SambaDocs]"
Processing section "[tmp]"
Creating default valid table
Loaded services file OK
Server role: ROLE_STANDALONE
25