By writing a line like include=/etc/samba/smbshares/, would it include automatically all the files under smbshares directory? If not wouldn't that be a useful features like it is found in other conf files? say logrotate.conf has that feature.
The include line is to add a single files information to the smb.conf. For instance all of your share information might be in a file called shares.conf so the include would be
I think I did not state the question right. My intention was not to logrotate the file, but just to insist on the type of feature the logrotate.conf file has. By speciying the directory name in the conf file, they include all files under that dir to configure logrotate. for eg. include /etc/logrotate.d, includes files under logrotate.d directory. If we have a feature in smb.conf where by saying include /etc/shares, where we have a conf file for each share under this directory, then management becomes ez, by unlinking a file in this direcotry I delete a share, without touching the smb.conf file.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.