Greetings!
After making some changes to the smb.conf file and restarting the server, the settings are lost, how can I change some parameters permanently?
Thks!
Saudações!
Após fazer algumas mudanças no arquivo smb.conf e reiniciar o servidor as configurações são perdidas, como posso alterar alguns parâmetros em definitivo?
Obrigado!
Helo!
Thank you for supporting.
Below are the fields I would like to change, I looked at the link passed by @stephdl but I couldn’t understand how to do it …
[global]
#
# 10base
#
server string = NethServer 7.9.2009 final (Samba %v)
[global]
max log size = 50
# Idle time before disconnecting the client
deadtime = 10080
# Alias NETBIOS names, used to provide access to Samba via multiple hostnames
netbios aliases =
;
; 20inherit_owner -- Global setting, may be overridden (see home$ share definition)
;
inherit owner = yes
[home$]
path = /var/lib/nethserver/home
administrative share = yes
;
; Home directories
;
[homes]
comment = Home directories
browseable = no
writable = yes
[print$]
path = /var/lib/nethserver/print_driver
There are to ways, I would prefer the second one.
First way is to copy the 10base file from
/etc/e-smith/templates/samba/smb.conf
to
/etc/e-smith/templates-custom/samba/smb.conf
and do your changes at the file at templates-custom. At least you have to expand the template:
expand-template /etc/samba/smb.conf
The problem is, with an update of nethserver the file at templates perhaps is modified
But you won’t get this modification because the config only is written with your template-custom.
The second way is to create a new file at
/etc/e-smith/etc/templates-custom/samba/smb.conf
for example named
11MyGlobalSettings
and write your settings to this file.
If you do an
expand-template /etc/samba/smb.conf
the smb.conf will be created with the 10base file from templates and behind these settings your settings from 11MyGlobalSettings at templates-custom.
If you have to do some settings before the 10base you can create a file