Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 392
  • Last Modified:

Set an expiration date to a directory on an Ubuntu server

I have a section on my website that is privileged.  I would like to set an expiration date so that after a set time, the username and password will not work.

1.  Is this even possible
2.  Here is the snipet from my httpd.conf file

<Directory /var/www/restrict/websource>
      AuthType Basic
      AuthName "Web Edit"
      AuthUserFile /var/passwd/webpass
      AuthGroupFile /var/passwd/webgrp
      Require group webgrp
</Directory>

Thanks...
0
IGHQIT
Asked:
IGHQIT
  • 2
1 Solution
 
Maciej SsysadminCommented:
I don't think it's possible with apache.
I would create simple shell script, which will delete/lock (comment out) such user from your webpass file, and scheduled its run via cron/at.
0
 
senseifedonCommented:
Hi;
You can use mod_expire. Mod_expires link is: Apache mod_expires directives...
0
 
IGHQITAuthor Commented:
Perfect... That's exactly what I needed.
0
 
senseifedonCommented:
Glad to hear that. :)
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now