Alfred von Campe
2012-Nov-19 16:14 UTC
[CentOS] How can I prevent apache from mounting all home directories?
We use automounted user home directories on our CentOS 6.3 desktops, and on the desktops on which we start apache, I have noticed that all 900+ home directories listed in NIS get (and stay!) mounted. If I don't start apache, this doesn't happen. We don't need access to home directories from apache, so I would like to prevent apache from mounting these home directories, but I haven't been able to figure out how to do it. We use the stock httpd.conf file, and I commented out the "LoadModule userdir_module" line to no avail. Any other suggestions? Alfred
Nux!
2012-Nov-19 16:20 UTC
[CentOS] How can I prevent apache from mounting all home directories?
On 19.11.2012 16:14, Alfred von Campe wrote:> We use automounted user home directories on our CentOS 6.3 desktops, > and on the desktops on which we start apache, I have noticed that all > 900+ home directories listed in NIS get (and stay!) mounted. If I > don't start apache, this doesn't happen. > > We don't need access to home directories from apache, so I would like > to prevent apache from mounting these home directories, but I haven't > been able to figure out how to do it. We use the stock httpd.conf > file, and I commented out the "LoadModule userdir_module" line to no > avail. Any other suggestions?Instead of omitting LoadModule you could try to leave it enabled, but specify a different userdir, i.e. not under /home. -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro
Mike Burger
2012-Nov-19 16:29 UTC
[CentOS] How can I prevent apache from mounting all home directories?
> We use automounted user home directories on our CentOS 6.3 desktops, and > on the desktops on which we start apache, I have noticed that all 900+ > home directories listed in NIS get (and stay!) mounted. If I don't start > apache, this doesn't happen. > > We don't need access to home directories from apache, so I would like to > prevent apache from mounting these home directories, but I haven't been > able to figure out how to do it. We use the stock httpd.conf file, and I > commented out the "LoadModule userdir_module" line to no avail. Any other > suggestions? > > AlfredIf I may...why are you running Apache on your desktops? -- Mike Burger http://www.bubbanfriends.org "It's always suicide-mission this, save-the-planet that. No one ever just stops by to say 'hi' anymore." --Colonel Jack O'Neill, SG1
Alfred von Campe
2012-Nov-19 16:46 UTC
[CentOS] How can I prevent apache from mounting all home directories?
On Nov 19, 2012, at 11:20, Nux! wrote:> Instead of omitting LoadModule you could try to leave it enabled, but > specify a different userdir, i.e. not under /home.There is no reference to /home anywhere that I can find. I assume that apache just expands ~ to list all home directories and then it mounts them. Alfred
Alfred von Campe
2012-Nov-20 20:17 UTC
[CentOS] How can I prevent apache from mounting all home directories? [SOLVED]
On Nov 19, 2012, at 11:14, I wrote:> We use automounted user home directories on our CentOS 6.3 desktops, and on the desktops on which we start apache, I have noticed that all 900+ home directories listed in NIS get (and stay!) mounted. If I don't start apache, this doesn't happen.After trying and failing to reproduce the problem on a test RHEL 6.3 server, I compared the apache configs on the two servers and noticed one difference: the CentOS system had mod_dnssd installed. After doing a "yum erase mod_dnssd" (which also removed gnome-user-share) the issue went away. Problem SOLVED! Alfred