Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

smb.conf - include= option

Status
Not open for further replies.

KCV

Programmer
Aug 11, 2004
20
US
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

incldue = /etc/samba/shares.conf

There is no need to rotate this file.
 
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.

I hope I made it clear this time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top