How to hide those hidden files?

Discussion in 'General' started by rosa hsiao, Dec 21, 2005.

  1. rosa hsiao

    rosa hsiao New Member

    When login FTP server,there are many hidden files which I don't want to be displayed in the file list. What should I do?
     

    Attached Files:

  2. benbalbo

    benbalbo ISPConfig Developer ISPConfig Developer

    Checkout the proftpd configuration options. the "IgnoreHidden" option might offer what you're after.

    Edit: note that you might want users to get to dot files - like the .ht(access|passwd) files for example.
     
  3. rosa hsiao

    rosa hsiao New Member

    There are two files under /etc directory:
    proftpd.conf
    proftpd_ispconfig.conf

    And I can't find any option regarding "IgnoreHidden" in both files. Should I add the option "IgnoreHidden on" manually? Where should I add the option?
    I am using FC3+Proftp+ISPConfig 2.1.2.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, you must add the line to /etc/proftpd.conf
     
  5. rosa hsiao

    rosa hsiao New Member

    I add the following line to /etc/proftpd.conf under:

    Default ~
    IgnoreHidden on

    Then I restart proftpd,but it display the following error message:

    warning: AuthPAMAuthoritative is drprecated.
    Fatal: Proftpd directive not allowed in server config context on line 141 in /etc/proftpd.conf.

    What else do I miss?
     
  6. falko

    falko Super Moderator ISPConfig Developer

    This seems to be a different error that has nothing to do with the lines you put into /etc/proftpd.conf.

    What's in line 141 of your proftpd.conf?
     
  7. rosa hsiao

    rosa hsiao New Member

    The 141 line I put into /etc/proftpd.conf is:

    DefaultRoot ~ <==line 140
    IgnoreHidden on <==line 141


    Please see the attached images
     

    Attached Files:

  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Which options do you have in the LsDefaultOptions configuration directive in your proftpd.conf ?
     
  9. rosa hsiao

    rosa hsiao New Member

    There is no LsDefaultOptions in my proftpd.conf. But I find the following lines in it:

    AuthPAMAuthorititive on
    ListOptions "-a"
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    Please try to set:

    ListOptions ""

    and restart postfix. The list options are passed to the linux command "ls", with the parameter "-a" the ls command lists also dot files.
     
  11. rosa hsiao

    rosa hsiao New Member

    It works!

    But,how to hide those directories except /web such as:
    /cgi-bin
    /log
    /phptmp
    /ssl
    .
    .
     
  12. falko

    falko Super Moderator ISPConfig Developer

    If you hide those directories, the admin user won't be able to upload Perl scripts or download log files...
     
  13. rosa hsiao

    rosa hsiao New Member

    What if the administrator accidently delete those directories?
    Can't he just make any new directory name to put his perl or php scripts?
     
  14. till

    till Super Moderator Staff Member ISPConfig Developer

    All directories where it is critical when they where deleted cant be deleted by the web admin.
     
  15. falko

    falko Super Moderator ISPConfig Developer

  16. rosa hsiao

    rosa hsiao New Member

Share This Page