Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: gbl on March 16, 2004, 09:16:17 PM

Title: Time Bombed User Account
Post by: gbl 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?
Title: Time Bombed User Account
Post by: Reinhold 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
Title: Time Bombed User Account
Post by: gbl on March 18, 2004, 07:24:09 AM
Thanks