[PREVIOUS CHAPTER] [NEXT CHAPTER]

3 CGI

    3.1	when I forget remote administrator passwords

    makefml admin.cgi config

    	MENU -> CHANGE PASSWORD

    3.2	when I forget remote administrator passwords for elena ML CGI

    makefml ml-admin.cgi elena config

    	MENU -> CHANGE PASSWORD

    3.3	permission denied when newaliases runs

    In sendmail, newaliaes (root process) creates/update these .db files:

           /etc/aliaes.db  /var/spool/ml/etc/aliases.db

           /etc/aliaes.db  /var/spool/ml/etc/aliases.db

    FYI:

    /etc/aliaes

    /etc/aliaes.db

    /var/spool/ml/etc/aliases

    /var/spool/ml/etc/aliases.db

    3.4	apache's configuration error?

    Firstly check /usr/local/apache/logs/errors_log.
    Secondary check "User" line of httpd.conf.
    It should be the same as user "fml" which owns /var/spool/ml.

    3.5	symlink ?

    check "Options FollowSymLinks" for the directiry directive.

    3.6	aliases not updated when I make a ML by CGI ?

    Hmm, it is broken. Check the follwoing possibilities.

    * fml specific

    1. /var/spool/ml/etc/aliases has the ML entry you made.

    	/var/spool/ml/etc/aliases.pag
    	/var/spool/ml/etc/aliases.dir

    2. the date of /var/spool/ml/etc/aliases.db is newer than aliases

    * OS specific

    1. AliasFile of sendmail.cf

    	O AliasFile=/etc/aliases,/var/spool/ml/etc/aliases

    2. run newaliases and it shows two lines ?

       /etc/mail/aliases: 30 aliases, longest 49 bytes, 886 bytes total
       /var/spool/ml/etc/aliases: 20 aliases, longest 26 bytes, 239 bytes total

    3.7	Invalid command 'SSLRequireSSL'

    Q: /usr/local/apache/logs/error_log shows the following error. What is it?

    [Thu May 25 18:49:40 2000] [alert] [client xxx.xxx.xxx.xxx] \
                               /usr/local/fml/share/cgi-bin/fml/admin/.htaccess: \
                               Invalid command 'SSLRequireSSL', perhaps mis-spelled \
                               or defined by a module not included in the server \
                               configuration

    A:

    1. check the grammer for .htaccess

    2. check whether normail apache or apache + ssl. For example
       apache + mod_ssl shows the following staring message in error_log:

    	[notice] Apache/1.3.12 (Unix) mod_ssl/2.6.4 OpenSSL/0.9.5a
    	configured -- resuming normal operations

    but normal apache shows

    	Apache/1.3.12 (Unix) configured -- resuming normal operations

4.1 Error message examples

       ----- The following addresses had permanent fatal errors -----
       ----- Transcript of session follows -----

    	Quota exceeded

       ----- The following addresses had permanent fatal errors -----
    <rudo@nui.fml.org

       ----- Transcript of session follows -----
    procmail: Quota exceeded while writing "/var/spool/mail/rudo"
    550 <rudo@nui.fml.org>... Can't create output

error origin -------------------------------------------------------- unsafe permission of files or directories loop /etc/aliases miss-configuration did not newaliases user unknown no such user /etc/aliases miss-configuration did not newaliases sh: fml.pl not available you use smrsh? properly configured? Quota exceeded Quota exceeded 4.3 Can't locate getopts.pl in @INC at makefml line 104.

    The installation of perl fails. Please install perl again!

    4.4	You fails to use :include: form in /etc/aliases

    The following reasons are possible:

    * your mail system do not support include form.
      You may require C-Wrapper (see below).

    * "include" file exists in an insecure directory.
      Please check the whole hierarchy permission from / to the "include".
      check	/usr, /usr/local, /usr/local/fml, ... and chmod 755 them!

    4.5	553 machine-name host name configuration error

    An OS's sendmail causes this error but Sendmail R8 has such codes so I
    cannot understand what this error is.  Please ask the vendor.

    4.6	Executable files not allowed

    aliase database /etc/aliases rebuilt by root
    cannot open /var/spool/ml/etc/aliases
    Executable files not allowed

    % chmod a-x /var/spool/ml/etc/aliases

    4.7	Insecure dependency in chdir, Permission denied, ...

    4.8	sh: fml.pl not available for sendmail programs

          ----- The following addresses had permanent fatal errors -----
       "|/usr/local/fml/fml.pl /var/spool/ml/elena "
           (expanded from: :include:/var/spool/ml/elena/include)

          ----- Transcript of session follows -----
       sh: fml.pl not available for sendmail programs
       554 "|/usr/local/fml/fml.pl /var/spool/ml/elena "... Service unavailable

    Mprog,                P=/bin/sh, F=lsDFMoqeu9, S=10/30, R=20/40, D=$z:/,

       fml-support:  07458

    	require default_config.ph

    push(@LIBDIR, "/usr/local/fml");
    push(@INC,   "/usr/local/fml");
    1;

    # ln -s /usr/local/fml/fml.pl /usr/adm/sm.bin
    # ln -s /usr/local/fml/libloadconfig.pl /usr/adm/sm.bin/

    References: fml-support ML:

    	01877,01879,01881
    	03942,03944,03965
    	05706,05708,05712,05715,05721,05722,05723,05724,05725,05726,05727,05728
    	07458,07733

    4.9	:include: ... is unsafe for mailing to program ...

    * check read and write permission through :include: file path.
    * check chownsafe() of sendmail return value. Sendmail package has
    test programs in "test" directory
    (e.g. /usr/src/usr.sbin/sendmail/test/).

    4.10	include's owner != config.ph's owner.

    This is just a warning but it may be a possibility that your
    permission is invalid. Please check files under $DIR/.

    4.11	/var/spool/ml/src/fml.pl: permission denied

    Run "ls -l fml.pl" to check to show

    	rwxr-xr-x

    executable permission of perl is lost?

    4.12	550 User %s@%s doesn't have a valid shell for mailing to programs

    Please add the shell which sendmail uses to /etc/shells.

    * /usr/src/usr.sbin/sendmail/src/

    	else if (bitset(QBOGUSSHELL, a->q_alias->q_flags)) {
    	  a->q_flags |= QBADADDR;
    	  a->q_status = "5.7.1";
    	  if (a->q_alias->q_ruser == NULL)
    	    usrerr("550 UID %d is an unknown user: cannot mail to programs",
    		   a->q_alias->q_uid);
    	  else
    	    usrerr("550 User %s@%s doesn't have a valid shell for mailing to programs",
    		   a->q_alias->q_ruser, MyHostName);
    	}
    	else if (bitset(QUNSAFEADDR, a->q_alias->q_flags))

      if (!usershellok(pw->pw_name, pw->pw_shell)) {
        a->q_flags |= QBOGUSSHELL;
      }

    4.13	sh: /var/spool/ml/src/fml.pl: No such file or directory

    It implies no file but it implies several possibilities
    	* fml.pl is not found
    	* perl is not found
    	...

    4.14	sh: /var/spool/ml/src/fml.pl: command not found

    It implies no file but it implies several possibilities
    	* fml.pl is not found
    	* perl is not found.
    	The first line "#!/usr/local/bin/perl" determines the
    	location of perl.
    	...

[PREVIOUS CHAPTER] [NEXT CHAPTER]