Greets good Monks!
In the spirit of TMT1W2DI - my question could be answered in more than one way.

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


In reply to help...cgi-bin form - strategy needed to set user's out of office reply via the vacation prog. by weenie

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.