summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-01-09 11:30:05 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2014-01-09 11:30:05 -0800
commit345208d219a63d581d87184f306559a3971e550b (patch)
tree82d0d0ed09fa47e7fc9ba5daaca71db9324806e1 /lib
parente396dd61939c363f2fe423201d6f2d590d09c5a4 (diff)
downloadchef-345208d219a63d581d87184f306559a3971e550b.tar.gz
add comment
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/config.rb4
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