keep .htpasswd chmod from changing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • brankru
    Registered User
    • Sep 2003
    • 16

    #1

    keep .htpasswd chmod from changing

    I've had verotel billing my site, and just added MVC, which needs the .htpasswd file to be set at 666. I've done that, but each day either verotel or password sentry is resetting it (i believe) to 644...

    How can i keep the password file's chmod settings to stay at 666?
    this is not a sig
  • Lycanthrope
    Confirmed User
    • Jan 2004
    • 4517

    #2
    There are probably better ways, but it is early and I haven't had my coffee yet... anyhell, you could crate a file called "chperm.php" or whatever... and the file would contain the following:

    Code:
    <?php
    
    exec('chmod 666 /home/account/domain.com/.htaccess');
    
    ?>
    and you could setup a cron job to call it at whatever interval you need.

    Comment

    • brankru
      Registered User
      • Sep 2003
      • 16

      #3
      Thanks i'll make that file

      I'm a semi-noob however...how do i make the file execute at set intervals?
      this is not a sig

      Comment

      Working...