?
Solved

Set an expiration date to a directory on an Ubuntu server

Posted on 2012-04-10
4
Medium Priority
?
386 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Fine Tune your automatic Updates for Ubuntu / Debian
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.
Suggested Courses
Course of the Month14 days, 10 hours left to enroll

771 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