System information
84 Deploying Samba on IBM Eserver BladeCenter
Any errors will show up at the top of the report under the section where the error is located.
The rest of the report shows what parameters the Samba server will load.
Since no errors were found, Samba will run with this configuration file.
If the public share definition is modified to what is shown in Example 5-9, the report will look
similar to Example 5-10.
Example 5-9 Resource definition with two errors
[public]
path = /home/public
write list = root
read only = No
creat mask = 755
directory mask = 0777
force directory mode = 0758
The only error is noted under the public section. The report under the loaded services file
OK line displays the non-default parameters. This part of the report is useful for verifying the
share definition parameter settings. Notice that the force directory mode parameter will be
loaded with a value of 075 for the public share in Example 5-10.
Example 5-10 Output of testparm showing errors.
[root@portal1 samba]# testparm -sx
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[redbook]"
Processing section "[printers]"
Processing section "[public]"
Unknown parameter encountered: "creat mask"
Ignoring unknown parameter "creat mask"
Processing section "[Samba Docs]"
Loaded services file OK.
WARNING: You have some share names that are longer than 8 chars
These may give errors while browsing or may not be accessible
to some older clients
# Global parameters
[global]
workgroup = LINUX
server string = Samba Server on Red Hat Linux
encrypt passwords = Yes
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
wins support = Yes
[homes]
comment = Home Directories
path = %H
read only = No
create mask = 0700
directory mask = 0700
browseable = No
[redbook]
comment = RedBook files
path = /redbook