If I have 10,000 webapps on my server and I'd like enhanced permissions and make a user for every app (/var/www/NAME
will have a matching /tmp/www/NAME
), will everything be fine or will problems occur when I have 10k users?
|
|||||||||
|
There are very few things that have problems with that many users and groups. The core NSS tooling is generally pretty robust, and glibc and the Linux kernel specifically won't have substantial problems. If you use an NSS that uses network access, you might need to use a local cache tool to give good performance - but only because many lookups will take a lot of time, not because of any fundamental problem with that count. |
|||
|
Note that this is in response to the question as rephrased in the comment. I would group users into "meta groups" which could be commercial groups (gold, valued, free, yadda, yadda) or just a hash of the company name. Then I would have this:
as their $HOME with only permission for them to read it and an ssh access by key only. The OS will guarantee that every file with no group/world read permissions will be readable by either groups or everyone.
would be their public folder which has to be world readable but not world rightable. The However, doing hosting on this model does not scalable and allowing customers shell access on your production server a sure way to get yourself in a heap of trouble. |
|||||
|
If you've accumulated lots of bad karma in your previous lives, you might find yourself in a position where you use NFS (Nightmare^WNetwork File System) today. NFS traditionally has a limit on 16 groups, but this can be avoided with modern installations. This article is worth reading if this applies to you: http://nfsworld.blogspot.com/2005/03/whats-deal-on-16-group-id-limitation.html |
|||
|