Jira (PUP-7830) Adding a user with a numeric group name fails

2017-08-18 Thread Adam Bottchen (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Adam Bottchen commented on  PUP-7830 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Adding a user with a numeric group name fails  
 
 
 
 
 
 
 
 
 
 
This is a limitation in the useradd tool provided by the OS, not a bug in Puppet. 
As specified in the documentation, Puppet uses OS supplied tools to manage users and groups. In this case, that means the use of useradd. Unfortunately, regardless of POSIX standards, useradd does not support supplementary groups that start with a digit: 
 
 
 
 
 
 
# grep 123 /etc/group 
 
 
 
 
123:x:502: 
 
 
 
 
# /usr/sbin/useradd -G 123 -M testuser 
 
 
 
 
useradd: group '123' does not exist
 
 
 
 
 
 
 
This is the command the user provider on EL distros will use, so our regex is merely preventing one from running into the limitation of the useradd command. If the regex at https://github.com/puppetlabs/puppet/blob/4.10.x/lib/puppet/type/user.rb#L288 were removed, the Puppet run would just fail on the useradd command itself with the error above. 
In general it is discouraged to have user or group names that are entirely numeric just from a system administration standpoint. That said, if existing account data requires it, a different resource will be needed to manage it. For example, an augeas or file_line resource against /etc/group, or an exec directly modifying it. Until the underlying useradd system tool provides this functionality, the Puppet user provider will be limited by it. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
   

Jira (PUP-7830) Adding a user with a numeric group name fails

2017-08-18 Thread Adam Bottchen (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Adam Bottchen updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7830 
 
 
 
  Adding a user with a numeric group name fails  
 
 
 
 
 
 
 
 
 

Change By:
 
 Adam Bottchen 
 
 
 

CS Priority:
 
 Needs Priority Reviewed 
 
 
 

CS Impact:
 
 This is actively blocking a customer from deploying due to the fact they use numbers for group names 
 
 
 

CS Severity:
 
 5 - Critical 
 
 
 

CS Business Value:
 
 1 - ? 
 
 
 

CS Frequency:
 
 1 - 1-5% of Customers 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are s

Jira (PUP-7830) Adding a user with a numeric group name fails

2017-08-10 Thread Nicky Kernohan (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Nicky Kernohan commented on  PUP-7830 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Adding a user with a numeric group name fails  
 
 
 
 
 
 
 
 
 
 
This was a cloned ticket for customer visibility 
Can you re-open it? 
Thanks 
On 10 August 2017 at 09:54, Henrik Lindberg (JIRA) < 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-7830) Adding a user with a numeric group name fails

2017-08-10 Thread Nicky Kernohan (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Nicky Kernohan commented on  PUP-7830 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Adding a user with a numeric group name fails  
 
 
 
 
 
 
 
 
 
 
This is an external ticket for customer visibility 
Please do not close 
Thanks 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-7830) Adding a user with a numeric group name fails

2017-08-10 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7830 
 
 
 
  Adding a user with a numeric group name fails  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 

Component/s:
 
 Platform 
 
 
 

Component/s:
 
 Types and Providers 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-7830) Adding a user with a numeric group name fails

2017-08-10 Thread Nicky Kernohan (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Nicky Kernohan created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-7830 
 
 
 
  Adding a user with a numeric group name fails  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Affects Versions:
 

 PUP 4.10.1 
 
 
 

Assignee:
 

 Unassigned 
 
 
 

Components:
 

 Platform 
 
 
 

Created:
 

 2017/08/10 1:16 AM 
 
 
 

Environment:
 
 
CentOS Linux release 7.2.1511 4.10.1 
Seems to apply to all versions/ *nix OS 
 
 
 

Priority:
 
  Blocker 
 
 
 

Reporter:
 
 Nicky Kernohan 
 
 
 
 
 
 
 
 
 
 
Basic Info 
On the User resource, specifying a group with a group name as a number fails 
CentOS is a POSIX compliant, so can accept numbers for a group name fine 
Puppet Version: 
Tested in 4.10, Customer reporting in 4.5  OS Name/Version: CentOS Linux release 7.2.1511 Describe your issue in as much detail as possible... 
Creating a user with a group name as a number