From: Nico Kadel-Garcia on
I'm looking at some requests for auto-mounting of CIFS at work.
pam_mount seems well designed to do just this, but there seems to be
real RPM hell of backporting it from any actively supported version of
Fedora: it looks like even for Fedora 10, it's dependent on XML
support in PAM. And since the codebase for RHEL 5 is now 3 years old,
with no sign of even a beta release of RHEL 6 on the way, it looks
like I'd have to go through RPM hell to backport it.

Does anyone have a working pam_mount for RHEL 5 that they can point me
to? It might even be worth some consulting money to get a copy of it.
I'm working as a consultant right now, and really don't want to blow a
month of consulting time to provide something that I'm not even sure
is feasible on such an old code base.
From: HASM on
Nico Kadel-Garcia <nkadel(a)gmail.com> writes:

> I'm looking at some requests for auto-mounting of CIFS at work.

I automount CIFS on Fedora via autofs and it seems to work fine.

-- HASM
From: Nico Kadel-Garcia on
On Feb 1, 11:28 am, HASM <netn...(a)invalid.com> wrote:
> Nico Kadel-Garcia <nka...(a)gmail.com> writes:
> > I'm looking at some requests for auto-mounting of  CIFS at work.
>
> I automount CIFS on Fedora via autofs and it seems to work fine.
>
> -- HASM

That's great. I'll hope that it works well for RHEL 6, when it comes
out. Unfortunately, for work's systems, I can't consider Fedora stable
enougl. (I might, for an individual service, but for general use, not
at work. That means backporting. Fedora SRPM's don't install on RHEL
without running them throuch rpm2cpio, because of the checksum
changes. (I'd give a lot for a usable backport of that RPM change, but
that induces its own RPM hell.)
From: HASM on
Nico Kadel-Garcia <nkadel(a)gmail.com> writes:

nico>>> I'm looking at some requests for auto-mounting of �CIFS at work.
hasm>> I automount CIFS on Fedora via autofs and it seems to work fine.
nico> That's great. I'll hope that it works well for RHEL 6, when it comes
nico> out.

Well, you did say CIFS in your original, thus I assume you have it on RHEL5
(I have one of those boxes at work and could look, though I think they're
now running the Oracle edition). I assume that you also have autofs.

All I do is to configure an autofs mount map for CIFS and let whatever is
installed on the system handle it, i.e. there's no need to install
anything.

-- HASM


From: Nico Kadel-Garcia on
On Feb 2, 11:37 am, HASM <netn...(a)invalid.com> wrote:
> Nico Kadel-Garcia <nka...(a)gmail.com> writes:
>
> nico>>> I'm looking at some requests for auto-mounting of  CIFS at work..
> hasm>> I automount CIFS on Fedora via autofs and it seems to work fine.
> nico> That's great. I'll hope that it works well for RHEL 6, when it comes
> nico> out.
>
> Well, you did say CIFS in your original, thus I assume you have it on RHEL5
> (I have one of those boxes at work and could look, though I think they're
> now running the Oracle edition).  I assume that you also have autofs.
>
> All I do is to configure an autofs mount map for CIFS and let whatever is
> installed on the system handle it, i.e. there's no need to install
> anything.
>
> -- HASM

OK. I didn't write the original setup, and really shouldn't post it,
but I can make sure that I have a test box with autofs in a fairly
normal configuration. Oracle..... Oracle also does interesting things.
Can you send me an example of your cifs setup for autofs, because the
default tables don't include it. Are the directories mounting as
designated users, or are they mounting all as the same generic user
(which seems the only way to do it without CIFS credentials provided
in a text file or via other means.)