Koozali.org: home of the SME Server

Time Bombed User Account

gbl

Time Bombed User Account
« on: March 16, 2004, 09:16:17 PM »
Has anyone a Idea how I can setup a FTP Useraccount that lockes out on a specific time?

Offline Reinhold

  • *
  • 517
  • +0/-0
    • http://127.0.0.1
Time Bombed User Account
« Reply #1 on: March 17, 2004, 11:48:02 PM »
Guenter,

Depending on the number of users and whether you want to lock them out once or regularly
...or really just lock ftp for them you might want to look at "The lazy admin tools".

Lazy Admin Tools HowTo
http://mirror.contribs.org/smeserver/contribs/mblotwijk/HowToGuides/lazy-admin-tools.htm

Using LAT a small script:
------------------------cut--------------------------
#!/bin/sh
lat-users -a -c harry | Harry | Potter | Quidditch''
------------------------cut--------------------------
Creates user 'harry' with password 'Quidditch' from the command line.

or:
------------------------cut--------------------------
#!/bin/sh
lat-users -d -f -c harry''
------------------------cut--------------------------
Deletes user 'harry' from the command line.

If you place such a make-harry or kill-harry into the daily or weekly crontab you could open & close access for harry.

HTH
Reinhold
............

gbl

Time Bombed User Account
« Reply #2 on: March 18, 2004, 07:24:09 AM »
Thanks