On Thu, 12 Aug 2010 10:20:50 +0200, Laurent Blume wrote: > I'm trying to restrict access in /etc/security/access.conf based on > group names which have spaces in them (Windows domains groups, in the > form DOMAIN+group of users). It already works for groups without a > space. > > I tried escaping with \ or quoting, but it didn't seem to work. Any idea > if/how that can be done?
Mmm, couldn't be that here apply the same restrictions as for usernames? BTW, "man groupadd" says: *** CAVEATS It is usually recommended to only use usernames that begin with a lower case letter or an underscore, and are only followed by lower case letters, digits, underscores, dashes, and optionally terminated by a dollar sign. In regular expression terms: [a-z_][a-z0-9_-]*[$]? On Debian, the only constraints are that usernames must neither start with a dash (´-´) nor contain a colon (´:´) or a whitespace (space:´ ´, end of line: ´\n´, tabulation: ´\t´, etc.). Groupnames may only be up to 32 characters long. You may not add a NIS or LDAP group. This must be performed on the corresponding server. If the groupname already exists in an external group database such as NIS or LDAP, groupadd will deny the group creation request. *** P.S. That man page seems to have an error. When it reads "username" I guess it should be "groupnames", instead :-? Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/pan.2010.08.12.11.09...@gmail.com