old-www/HOWTO/Autodir-HOWTO/x99.html

174 lines
2.9 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML
><HEAD
><TITLE
>Why not pam_mkhomedir?</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Autodir HOWTO"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Before going into the details..."
HREF="x91.html"><LINK
REL="NEXT"
TITLE="Where can Autodir be used?"
HREF="x116.html"></HEAD
><BODY
CLASS="sect1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Autodir HOWTO</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x91.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x116.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="AEN99"
></A
>3. Why not pam_mkhomedir?</H1
><P
>The PAM module <TT
CLASS="literal"
>pam_mkhomedir</TT
> uses Pluggable Authentication Module architecture for its operation. As such, there are some limitations associated with it. For instance:</P
><P
></P
><UL
><LI
><P
>Some servers may not authenticate users but they may expect user directories to exist. This means they do not use PAM, and in turn, <TT
CLASS="literal"
>pam_mkhomedir</TT
> does not get a chance to create home directories. The notorious example is on email servers.</P
></LI
><LI
><P
>PAM is always an optional component for authentication. Some services may not use PAM at all and use a different method to authenticate users. In this case <TT
CLASS="literal"
>pam_mkhomedir</TT
> is never going to be used.</P
></LI
><LI
><P
>Generally <TT
CLASS="filename"
>/home</TT
> is owned by root and only root users can create home directories in it. Therefore the service that wishes to create home directories through PAM must be run as root, or else the home directory must have the same permissions as, for instance, <TT
CLASS="filename"
>/tmp</TT
>.</P
></LI
></UL
><P
>Finally, <EM
>Autodir</EM
> is much wider in scope and supports many more interesting features.</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x91.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="x116.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Before going into the details...</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Where can Autodir be used?</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>