You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to create a directory with an LDAP user as the owner, the ownership stays as "root"
During my tests I could only set ownership if the username is in /etc/passwd file:
directory '/home/user1' do
owner 'user1'
group 'ldap-users'
mode '0755'
action :create
end
If I run "sudo chown user1 /home/user1" after chef-client, the ownership is changed without any issues.
Version: Chef: 11.12.0.rc.1
Environment: Ubuntu 12.04
The text was updated successfully, but these errors were encountered:
@gkugel Is the chef-client run where this is failing also the first time ldap is being configured? If so, you might be hitting a problem with the fact that deep down in the stack (glibc), there is caching that occurs at the per-process level which means that configuration changes around nss aren't picked up by that process.
Yeah that most likely will not be solvable short of patching ruby itself and/or running nscd with user and group caching turned on. I doubt there's a fixable chef-client bug here.
When attempting to create a directory with an LDAP user as the owner, the ownership stays as "root"
During my tests I could only set ownership if the username is in /etc/passwd file:
directory '/home/user1' do
owner 'user1'
group 'ldap-users'
mode '0755'
action :create
end
If I run "sudo chown user1 /home/user1" after chef-client, the ownership is changed without any issues.
Version: Chef: 11.12.0.rc.1
Environment: Ubuntu 12.04
The text was updated successfully, but these errors were encountered: