mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Bugfix: Directories in /etc/skel will get users ownership when home dir is created (#24943)
* Bugfix: Directories in /etc/skel will get users ownership when home dir is created * Bugfix: Chmod works now recursive for the home dir
This commit is contained in:
parent
b46c098581
commit
0dc5e8bf71
1 changed files with 1 additions and 1 deletions
|
@ -719,7 +719,7 @@ class User(object):
|
|||
os.chown(path, uid, gid)
|
||||
for root, dirs, files in os.walk(path):
|
||||
for d in dirs:
|
||||
os.chown(path, uid, gid)
|
||||
os.chown(os.path.join(root, d), uid, gid)
|
||||
for f in files:
|
||||
os.chown(os.path.join(root, f), uid, gid)
|
||||
except OSError:
|
||||
|
|
Loading…
Reference in a new issue