weenie has asked for the wisdom of the Perl Monks concerning the following question:
1. Is there a module available (I have searched fruitlessly) that would allow me to easily let a user set/unset, and change their .vacation.msg file via a cgi form?
2. I have implemented SSL on Apache (OpenBSD) - and have the directory that the cgi will run out of set to force authentication - and it works :) . I think I could take the remote_user variable and substitute it in perl code to modify the vacation and forward files in the user's home dir. But I believe I would still have to run 'vacation -i' as the user. I'm not sure how to go about this (would setuid be the best/only way? or how might I perhaps su - username to do it?)
Also - it would seem unwieldy as user population grows to have to maintain the htaccess file (I may have to move to an OpenLDAP solution - but have no experience implementing such).
3. Can anyone point me to resources, and/or example code to do this sort of user file manipulation?
4. charity solution Has anyone done this whom is willing to share their hard work with a humble weenie monk?
Thank you.
NeoMonk Weenie
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: help...cgi-bin form - strategy needed to set user's out of office reply via the vacation prog.
by Corion (Patriarch) on Apr 28, 2003 at 07:07 UTC | |
|
Re: help...cgi-bin form - strategy needed to set user's out of office reply via the vacation prog.
by Anonymous Monk on Apr 27, 2003 at 23:17 UTC | |
|
Re: help...cgi-bin form - strategy needed to set user's out of office reply via the vacation prog.
by submersible_toaster (Chaplain) on Apr 28, 2003 at 06:57 UTC | |
|
Re: help...cgi-bin form - strategy needed to set user's out of office reply via the vacation prog.
by Anonymous Monk on Apr 29, 2003 at 03:54 UTC |