diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-01-09 11:30:05 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-01-09 11:30:05 -0800 |
commit | 345208d219a63d581d87184f306559a3971e550b (patch) | |
tree | 82d0d0ed09fa47e7fc9ba5daaca71db9324806e1 /lib | |
parent | e396dd61939c363f2fe423201d6f2d590d09c5a4 (diff) | |
download | chef-345208d219a63d581d87184f306559a3971e550b.tar.gz |
add comment
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/config.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/chef/config.rb b/lib/chef/config.rb index 427394d737..f8bfa3ac21 100644 --- a/lib/chef/config.rb +++ b/lib/chef/config.rb @@ -497,6 +497,10 @@ class Chef default :fatal_windows_admin_check, false else + # user/group cannot start with '-', '+' or '~' + # user/group cannot contain ':', ',' or non-space-whitespace or null byte + # everything else is allowed (UTF-8, spaces, etc) and we delegate to your O/S useradd program to barf or not + # copies: http://anonscm.debian.org/viewvc/pkg-shadow/debian/trunk/debian/patches/506_relaxed_usernames?view=markup default :user_valid_regex, [ /^[^-+~:,\t\r\n\f\0]+[^:,\t\r\n\f\0]*$/ ] default :group_valid_regex, [ /^[^-+~:,\t\r\n\f\0]+[^:,\t\r\n\f\0]*$/ ] end |