Differences
This shows you the differences between the selected revision and the current version of the page.
howto:bettersamba 2010/01/21 17:51 | howto:bettersamba 2017/09/06 18:38 current | ||
---|---|---|---|
Line 113: | Line 113: | ||
* Save the file and load it back up onto the DNS-323 (Using 'Load Configuration Settings') | * Save the file and load it back up onto the DNS-323 (Using 'Load Configuration Settings') | ||
* You're done! | * You're done! | ||
+ | |||
==== Some Side Notes: ==== | ==== Some Side Notes: ==== | ||
Line 123: | Line 124: | ||
# fun_plug part | # fun_plug part | ||
if [ -r "${FUNPLUGDIR}/etc/smb.conf" ]; then | if [ -r "${FUNPLUGDIR}/etc/smb.conf" ]; then | ||
- | mv ${FUNPLUGDIR}/etc/smb.conf /etc/samba >>${LOGFILE} | + | cp ${FUNPLUGDIR}/etc/smb.conf /etc/samba >>${LOGFILE} |
exec smb restart >>${LOGFILE} | exec smb restart >>${LOGFILE} | ||
else | else | ||
Line 192: | Line 193: | ||
Add ''map readonly = yes'' to your custom ''smb.conf''. | Add ''map readonly = yes'' to your custom ''smb.conf''. | ||
+ | |||
===== How To Create A Recycle Bin ===== | ===== How To Create A Recycle Bin ===== | ||
- | In a message posted in the [[http://forum.dsmg600.info/p19826-2008-08-28-16%3A38%3A32.html#p19826|DNS323 forum]], jrbilodeau wrote; ....here is what i did to get it working perfectly. | + | In a message posted in the [[http://dns323.kood.org/forum/p19826-2008-08-28-16%3A38%3A32.html#p19826|DNS323 forum]], jrbilodeau wrote; ....here is what i did to get it working perfectly. |
* Open a telnet session (I use putty) and type; | * Open a telnet session (I use putty) and type; | ||
Line 202: | Line 204: | ||
In Windows Explorer navigate to the ffp folder on Volume_1 and open up the smb.conf file with a linux friendly text editor (I use notepad++). | In Windows Explorer navigate to the ffp folder on Volume_1 and open up the smb.conf file with a linux friendly text editor (I use notepad++). | ||
- | Under the [ global ] setion I added the following lines | + | Under the [ global ] section I added the following lines |
vfs object = recycle | vfs object = recycle | ||
Line 215: | Line 217: | ||
recycle:exclude = *.tmp,*.temp, ~$*, *.~?? | recycle:exclude = *.tmp,*.temp, ~$*, *.~?? | ||
recycle:exclude_dir = /.recycle | recycle:exclude_dir = /.recycle | ||
+ | msdfs root = no | ||
Save it then add the following lines to fun_plug | Save it then add the following lines to fun_plug | ||
Line 224: | Line 227: | ||
Restart you dns323 | Restart you dns323 | ||
- | **Note:** I tested this before applying it to the funplug incase something didn`t go right I could simply reboot and go back to the original smb.conf file I suggest you do the same. | + | **Note 1:** I tested this before applying it to the funplug in case something didn`t go right I could simply reboot and go back to the original smb.conf file I suggest you do the same. |
+ | **Note 2:** The 'recycle:keeptree = Yes' tells samba to maintain the same directory tree structure where the files were from. For example, if you deleted/overwrite a file /dir_a/subdir_b/file_overwritten, your .recycle directory will look like : /mnt/HD-a2/.recycle/dir_a/subdir_b/file_overwritten. If you change 'recycle:keeptree = No, every directory will have a .recycle, that will be ugly. Depending on how secure you want the recycle files be, change directory mode as needed. | ||
Additional information regarding Samba's recycle bin can be found at [[http://www.linuxtopia.org/online_books/network_administration_guides/samba_reference_guide/30_VFS_10.html|Linuxtopia]] | Additional information regarding Samba's recycle bin can be found at [[http://www.linuxtopia.org/online_books/network_administration_guides/samba_reference_guide/30_VFS_10.html|Linuxtopia]] |