Closed zpfvo closed 7 years ago
Can you even add UNIX groups with spaces? Ref: https://unix.stackexchange.com/questions/11477/what-are-the-allowed-group-names-for-groupadd
Just tried this on a Debian Jessie container:
root@host:~# groupadd 'one two'
groupadd: 'one two' is not a valid group name
So, how did you manage to do it? LDAP/NIS?
Apparently. Not that i think its a good idea. But somehow our Admin did :collision: LDAP.
I suppose that using a numerical value for these should work, I would just like another pair of eyes to look at it. @ypid, any issues that could show up?
@ypid yes, with pleasure. after lunch break :-)
@zpfvo Great. Could you add a Changelog entry as well?
@drybjed done. hope i did the formatting right
When $(id -gn) returns a group name with spaces the script fails. Without -n the id is used and there are no problems.