Solved

Set an expiration date to a directory on an Ubuntu server

Posted on 2012-04-10
4
369 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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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.

707 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now