Jira (PUP-6038) Puppet sets GID

2 views
Skip to first unread message

Patrick Thyen (JIRA)

unread,
Mar 10, 2016, 7:27:03 AM3/10/16
to puppe...@googlegroups.com
Patrick Thyen created an issue
 
Puppet / Bug PUP-6038
Puppet sets GID
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2016/03/10 4:26 AM
Priority: Major Major
Reporter: Patrick Thyen

file { 'zone_dir' :
                ensure  => 'directory',
                path    => '/tmp/test',
                mode    => 'u=rwx,g=rw,a=r',
}

When Puppet creates a new directory as mentioned above, puppet sets the Sticky-Bit although it is not set.
If the directory exist, Puppet doesn't

Workaround is:

mode =>  'u=rwx,g=rw,a=r-t',

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc)
Atlassian logo

Patrick Thyen (JIRA)

unread,
Mar 10, 2016, 7:28:03 AM3/10/16
to puppe...@googlegroups.com
Patrick Thyen updated an issue
Change By: Patrick Thyen
{code}file { ' zone_dir test_dir ' :

                ensure  => 'directory',
                path    => '/tmp/test',
                mode    => 'u=rwx,g=rw,a=r',
}{code}


When Puppet creates a new directory as mentioned above, puppet sets the Sticky-Bit although it is not set.
If the directory exist, Puppet doesn't

Workaround is:
{code}mode =>  'u=rwx,g=rw,a=r-t',{code}

Henrik Lindberg (JIRA)

unread,
Mar 10, 2016, 9:43:02 AM3/10/16
to puppe...@googlegroups.com
Henrik Lindberg updated an issue

ping Kylo Ginsberg

Change By: Henrik Lindberg
Scrum Team: Client Platform

Kylo Ginsberg (JIRA)

unread,
Mar 10, 2016, 1:15:04 PM3/10/16
to puppe...@googlegroups.com
Kylo Ginsberg commented on Bug PUP-6038
 
Re: Puppet sets GID

Thanks for the bug report Patrick Thyen! Can you add information about what puppet version this was found with and what platform(s) you've observed this on?

Patrick Thyen (JIRA)

unread,
Mar 16, 2016, 5:41:03 AM3/16/16
to puppe...@googlegroups.com
Patrick Thyen commented on Bug PUP-6038
 
Re: Puppet sets GID

Hey Kylo Ginsberg

It was Centos 6.7 and Centos 7 with Puppet 3.8

Sean McDonald (JIRA)

unread,
May 16, 2017, 2:41:04 PM5/16/17
to puppe...@googlegroups.com
Sean McDonald updated an issue
Change By: Sean McDonald
Labels: triaged
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Sean McDonald (JIRA)

unread,
May 16, 2017, 2:41:05 PM5/16/17
to puppe...@googlegroups.com
Sean McDonald updated an issue
Change By: Sean McDonald
Team: Agent

Moses Mendoza (JIRA)

unread,
May 16, 2017, 2:43:03 PM5/16/17
to puppe...@googlegroups.com
Moses Mendoza commented on Bug PUP-6038
 
Re: Puppet sets GID

Was able to reproduce partially - on Centos 7 with Puppet 4.9.4, using this manifest:

file { 'test_dir' :
                ensure  => 'directory',
                path    => '/tmp/test',
                mode    => 'u=rwx,g=rw,a=r',
}

The resulting directory created is as:

dr--r--r--. 2 root                      root                          6 May 11 00:28 test

Reid Wahl (JIRA)

unread,
Nov 20, 2017, 12:07:03 AM11/20/17
to puppe...@googlegroups.com
Reid Wahl commented on Bug PUP-6038
 
Re: Puppet sets GID

Moses Mendoza Is that not the expected behavior? I would think that the all = read permission (rather than all + read) coming at the end would override the user and group permissions set in the first and second positions. It's setting absolute permissions for all users rather than ensuring that the read permission is present (a+r) or ensuring that it's absent (a-r).

This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db)
Atlassian logo

Reid Wahl (JIRA)

unread,
Nov 20, 2017, 12:10:04 AM11/20/17
to puppe...@googlegroups.com
Reid Wahl commented on Bug PUP-6038
 
Re: Puppet sets GID

As it stands, I'm using Fedora 26 with Puppet 5.3.3 and am not able to reproduce there. Perhaps this was resolved in Puppet 4 or 5?

Josh Cooper (Jira)

unread,
Jan 26, 2021, 6:14:02 PM1/26/21
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-6038
 
Re: Puppet sets GID

chmod results in the directory having permissions 444:

[root ~]# rm -rf /tmp/test/
[root ~]# mkdir /tmp/test
[root ~]# chmod u=rwx,g=rw,a=r /tmp/test
[root ~]# stat -c '%a' /tmp/test
444

puppet (6.19.1) behaves the same:

[root ~]# rm -rf /tmp/test/
[root ~]# cat sticky.pp
file { '/tmp/test':
  ensure  => 'directory',
  mode    => 'u=rwx,g=rw,a=r',
}
[root ~]# puppet apply sticky.pp
Notice: Compiled catalog for xxx in environment production in 0.01 seconds
Notice: /Stage[main]/Main/File[/tmp/test]/ensure: created
Notice: Applied catalog in 0.01 seconds
[root ~]# stat -c '%a' /tmp/test
444

so I'm going to close this as cannot reproduce

This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages