Solved

Set an expiration date to a directory on an Ubuntu server

Posted on 2012-04-10
4
379 Views
Last Modified: 2012-04-13
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
Comment
Question by:IGHQIT
  • 2
4 Comments
 
LVL 23

Expert Comment

by:Maciej S
ID: 37831323
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
 
LVL 4

Accepted Solution

by:
senseifedon earned 500 total points
ID: 37838211
Hi;
You can use mod_expire. Mod_expires link is: Apache mod_expires directives...
0
 

Author Closing Comment

by:IGHQIT
ID: 37839894
Perfect... That's exactly what I needed.
0
 
LVL 4

Expert Comment

by:senseifedon
ID: 37841416
Glad to hear that. :)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question