You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Denny Snyder <ds...@suscom.net> on 2002/09/25 23:03:18 UTC
[users@httpd] Apache UserDir - 2 directories?
Hello all,
I have 2 servers that I use for my ISP services - 1 for POP/IMAP/Webmail/SMTP Incoming and 1 for User Webspace
publishing. I use RSYNC to copy over the /etc/passwd, /etc/shadow, and /etc/group file to the User webspace server
every 5 minutes. With this config snippet:
DocumentRoot /var/www/html
UserDir /home/*
UserDir enabled all
UserDir disabled root
IndexOptions FancyIndexing
Everything works like a champ! Using pureftp on the userweb server, the home directory isn't created until they ftp
successfully for the first time using the same username and password as their email.....
Unfortunately I ran into a bit of a problem due to a limitation in the ext2/ext3 file system where you can only have 32000
"links" (directories) within another subdirectory (a.k.a. /home) - without recompiling the ext source and even then you
only get up to around 32768..... To get around our inability to create any new users - I modified the /etc/default/adduser
to /var/home for the home directory spec and now I can create new users.....
BUT when all this gets sync'd over to the userweb server - Apache only looks under /home for UserDirs (as specified and
expected) - How can I make Apache be able to look at both /home AND /var/home?
Or, if I just change the UserDir to be a blank value will Apache read the location out of the /etc/passwd file and go to the
appropriate place?
How can I fix this? Can I have 2 UserDir variables?:
DocumentRoot /var/www/html
UserDir /home/*
UserDir /var/home/*
UserDir enabled all
UserDir disabled root
IndexOptions FancyIndexing
I have over 30 thousand accounts but only about 75 or so people that actually use the web publishing piece....
Any and all help would be greatly appreciated!!
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache UserDir - 2 directories?
Posted by Denny Snyder <ds...@suscom.net>.
Not like it would solve my immediate problem with Apache UserDir publishing.....
But my curiosity is now piqued - how would I modify the defaults to create such a home directory layout automatically
upon user creation?
On 25 Sep 2002 at 23:25, Anders Widman wrote:
> >> Unfortunately I ran into a bit of a problem due to a limitation in
> >> the
> > ext2/ext3 file system where you can only have 32000
> >> "links" (directories) within another subdirectory (a.k.a. /home) -
> >> without
> > recompiling the ext source and even then you
> >> only get up to around 32768..... To get around our inability to
> >> create
> > any new users - I modified the /etc/default/adduser
> >> to /var/home for the home directory spec and now I can create new
> > users.....
>
> > What about reorganizing your user dir layout by the leading letter
> > of their login? /home/aaron becomes /home/a/aaron, and /home/jimbo
> > becomes /home/j/jimbo. That should allow about 750000 users :)
>
> Aren't there other filesystems that allow more that 32k links in
> the same folder?
>
> > -Jacob
> > http://www.listingbook.com
>
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache UserDir - 2 directories?
Posted by Robert Andersson <ro...@profundis.nu>.
Denny Snyder wrote:
> I hate to think about formatting my file system just to try to get around
a problem I'm having with Apache - I can switch
> homedirectories one more time yet and then I'll be running into the
maximum user count limit anyway....
Exactly what is discussed here:
http://httpd.apache.org/docs-2.0/misc/rewriteguide.html, under the section
"Structured Homedirs"
Regards,
Robert Andersson
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache UserDir - 2 directories?
Posted by Jacob Coby <jc...@listingbook.com>.
> But my curiosity is now piqued - how would I modify the defaults to
> create such a home directory layout automatically
> upon user creation?
with a bit of regexp parsing, you can grab the first character of the login
name, and then pass the home dir to useradd. Even if you don't want the dir
created now, it should create the dir you specify when they login.
> xfs? Can anyone list the 32 bit addressing file systems that are
available in Linux?
XFS is at http://oss.sgi.com/projects/xfs/
I don't know how useful this will be to you, but a list of alternative
filesystems is at http://www.tldp.org/HOWTO/Filesystems-HOWTO-9.html
-Jacob
http://www.listingbook.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache UserDir - 2 directories?
Posted by Denny Snyder <ds...@suscom.net>.
xfs? Can anyone list the 32 bit addressing file systems that are available in Linux?
I hate to think about formatting my file system just to try to get around a problem I'm having with Apache - I can switch
homedirectories one more time yet and then I'll be running into the maximum user count limit anyway....
On 25 Sep 2002 at 17:32, Jacob Coby wrote:
> > Aren't there other filesystems that allow more that 32k links in
> > the same folder?
>
> Yeah, I think xfs, and some of the other newer file systems can go
> more than 32k. But, really once you get that high, it becomes easier
> to manage mentally if you organize a little better. Probably a bit
> faster to navigate too.
>
> ext3 has limits because it's really ext2+.journal. Which makes it
> nice if there is a bug in the ext3 driver :)
>
> -Jacob
> http://www.listingbook.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache UserDir - 2 directories?
Posted by Jacob Coby <jc...@listingbook.com>.
> Aren't there other filesystems that allow more that 32k links in the
> same folder?
Yeah, I think xfs, and some of the other newer file systems can go more than
32k. But, really once you get that high, it becomes easier to manage
mentally if you organize a little better. Probably a bit faster to navigate
too.
ext3 has limits because it's really ext2+.journal. Which makes it nice if
there is a bug in the ext3 driver :)
-Jacob
http://www.listingbook.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache UserDir - 2 directories?
Posted by Anders Widman <an...@tnonline.net>.
>> Unfortunately I ran into a bit of a problem due to a limitation in the
> ext2/ext3 file system where you can only have 32000
>> "links" (directories) within another subdirectory (a.k.a. /home) - without
> recompiling the ext source and even then you
>> only get up to around 32768..... To get around our inability to create
> any new users - I modified the /etc/default/adduser
>> to /var/home for the home directory spec and now I can create new
> users.....
> What about reorganizing your user dir layout by the leading letter of their
> login? /home/aaron becomes /home/a/aaron, and /home/jimbo becomes
> /home/j/jimbo. That should allow about 750000 users :)
Aren't there other filesystems that allow more that 32k links in the
same folder?
> -Jacob
> http://www.listingbook.com
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache UserDir - 2 directories?
Posted by Jacob Coby <jc...@listingbook.com>.
> Unfortunately I ran into a bit of a problem due to a limitation in the
ext2/ext3 file system where you can only have 32000
> "links" (directories) within another subdirectory (a.k.a. /home) - without
recompiling the ext source and even then you
> only get up to around 32768..... To get around our inability to create
any new users - I modified the /etc/default/adduser
> to /var/home for the home directory spec and now I can create new
users.....
What about reorganizing your user dir layout by the leading letter of their
login? /home/aaron becomes /home/a/aaron, and /home/jimbo becomes
/home/j/jimbo. That should allow about 750000 users :)
-Jacob
http://www.listingbook.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org