Quick quesiton about maldet scanning?

Discussion in 'Server Operation' started by Spawnsworth, Nov 26, 2014.

  1. Spawnsworth

    Spawnsworth Member

    Hi all,

    I hope someone can help.

    Is there a way I can make maldet follow symlinks when running a scan? I would use:

    Code:
    sudo maldet -a /webroot
    webroot is a symlink of /var/www and I would like it to scan that rather than the absolute path.

    The reason being, this is an ISP Config server and I want to be able to easily identify each site rather than having to manuallu lookup who 'web77, web121' etc are. Hope this makes sense!

    Thanks
     
  2. Nap

    Nap Member

    You might need to wrap maldet in a script.
    Use readlink -f /webroot to dereference the symlink, and then use the result in your script.

    Cheers,
    Nap
     

Share This Page