Hide Dot-Files, Network Trash Folder and Temporary Items

  • Hi, first sorry for my bad english.


    i have installed OpenMediaVault 0.4.22 with AFP, SMB/CIFS and FTP...
    All works very good. Thank you very much.


    But one thing i don´t like. The Apple Dot-Files & Folders (.Apple......), the Network Trash Folder and Temporary Items Folder.
    In SMB/CIFS i have put this Line in the "Extra Options" an it works very good:

    Code
    veto files = /Network Trash Folder/Temporary Items/.*


    But my Problem is in the FTP (ProFTPD).
    It is not possible in the main "Extra Option" from FTP. I need to add manually the line in the /etc/proftpd/proftpd.conf in each Share Directory like this:


    Is there a another solution?
    A "Extra Options" in the OpenMediaVaultGui for each Share Folder !?


    In the main "Extra Options" it don´t work.

    Code
    <Directory />
      HideFiles "(^\\..*|Network Trash Folder|Temporary Items)$"
    </Directory>


    Thank you very much.


    Dodo

  • for proftpd you don't have to do it for all shared folders.
    you should have this in your config as default


    Code
    <Directory /home/ftp>
      HideFiles (welcome.msg)
    </Directory>


    change it to

    Code
    <Directory /home/ftp>
      HideFiles "(welcome.msg|Network Trash Folder|Temporary Items|.Apple*)"
    </Directory>


    and it should do the trick for all of them. don't forget to restart proftpd


    an update from volker would be appreciated, which could be set as default or as an option to activate it at least

  • Thank you, this is much better. But the .ds_store and .temporary items is not hide.
    I have it now with this line:


    Zitat


    <Directory /home/ftp>
    HideFiles "(^\\..*|Network Trash Folder|Temporary Items|welcome.msg)$"
    </Directory>


    Thank you very much.


    Would be very good when this comes in a new Version for the "Extra Options".

  • you could have done it like this

    Code
    HideFiles "(welcome.msg|Network Trash Folder|Temporary Items|.*)"


    but i don't know if this good for everyone, maybe the want to see files which starts with a DOT.
    i would hide the specific files, it's not like there are a ton of them.


    .*DS_Store|.temporary|...


    the reason i use .*DS_Store is because sometimes there is a ._.DS_Store


    by the way i never have seen .temporary

  • i have tried this line:

    Code
    HideFiles "(welcome.msg|Network Trash Folder|Temporary Items|.*)"

    but with this all Files and Folder are hidden.


    Only with this Line

    Code
    HideFiles "(^\\..*|Network Trash Folder|Temporary Items|welcome.msg)$"

    it works. All dot files are hidden.
    Or so you have write with .*DS_Store|.temporary|......


    Thank you. I´m very happy with your answer, now i need only chance one line and not for all i have.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!