The GID selection rules for account creation are Linux distribution specific. It sounds like you are familiar with Red Hat, where I think this idea of GID=UID started. sles12sp1-brc:/dev/disk/by-uuid # useradd testout sles12sp1-brc:/dev/disk/by-uuid # grep testout /etc/passwd testout:x:1001:100::/home/testout:/bin/bash sles12sp1-brc:/dev/disk/by-uuid # grep 100 /etc/group users:x:100: sles12sp1-brc:/dev/disk/by-uuid # Cheers, Greg -----Original Message----- From: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Jaime Pinto Sent: Thursday, 4 August 2016 2:56 AM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org>; Jonathan Buzzard <jonathan@buzzard.me.uk> Cc: gpfsug-discuss@spectrumscale.org Subject: Re: [gpfsug-discuss] quota on secondary groups for a user? I guess I have a bit of a puzzle to solve, combining quotas on filesets, paths and USR/GRP attributes So much for the "standard" built-in linux account creation script, in which by default every new user is created with primary GID=UID, doesn't really help any of us. Jaime Quoting "Jonathan Buzzard" <jonathan@buzzard.me.uk>:
On 03/08/16 17:22, Jaime Pinto wrote:
Suppose I want to set both USR and GRP quotas for a user, however GRP is not the primary group. Will gpfs enforce the secondary group quota for that user?
Nope that's not how POSIX schematics work for group quotas. As far as I can tell only your primary group is used for group quotas. It basically makes group quotas in Unix a waste of time in my opinion. At least I have never come across a real world scenario where they work in a useful manner.
What I mean is, if the user keeps writing files with secondary group as the attribute, and that overall group quota is reached, will that user be stopped by gpfs?
File sets are the answer to your problems, but retrospectively applying them to a file system is a pain. You create a file set for a directory and can then apply a quota to the file set. Even better you can apply per file set user and group quotas. So if file set A has a 1TB quota you could limit user X to 100GB in the file set, but outside the file set they could have a different quota or even no quota.
Only issue is a limit of ~10,000 file sets per file system
JAB.
-- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
---------------------------------------------------------------- This message was sent using IMP at SciNet Consortium, University of Toronto. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
