Samba ‚testparm‘ – check an smb.conf configuration file for internal correctness

Samba ‚testparm‘ – checks the syntax of the smb.conf file if your smb.conf file is in the default location (/etc/samba/smb.conf) you do not need to specify the location

 

# testparm
Load smb config files from /etc/samba/smb.conf
Processing section „[homes]“
Processing section „[printers]“
Processing section „[tmp]“
Processing section „[html]“
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
<enter>
# Global parameters
[global]
workgroup = MYGROUP
server string = Samba Server
security = SHARE
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[tmp]
comment = Wakko tmp
path = /tmp
guest only = Yes
[html]
comment = Wakko www
path = /var/www/html
force user = andriusb
force group = users
read only = No
guest only = Yes

Leave a Reply

You must be logged in to post a comment.