Thanks for using the TrueNAS Community Edition issue tracker! TrueNAS Enterprise users receive direct support for their reports from our support portal.

Fix chown of skel directory contents for new local users

Description

PR: https://github.com/freenas/freenas/pull/5351

```
File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/filesystem.py", line 463, in chown
self._winacl(data ['path'] , 'chown', uid, gid, options)
middlewared.service_exception.CallError: [EFAULT] Winacl chown on path /mnt/ADTest/test_home/testuser/.profile failed with error: [winacl: /mnt/ADTest/test_home/testuser/.profile: chdir() failed.: Not a directory]
````

Before plumbing in middleware permissions api, we were recursively changing owner on each item in the newly copied skel separately. This was preserved in filesystem.chown call, but subsequent changes to ensure that recursive filesystem permissions changes will only occur in the given path caused regression in this account behavior. For now simply, remove the `recursive` flag since the '/usr/share/skel/' only contains files.

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Bug ClerkAugust 5, 2020 at 1:35 PM

Bug ClerkAugust 4, 2020 at 6:22 PM

Bug ClerkAugust 4, 2020 at 12:39 PM

Complete

Details

Assignee

Reporter

Priority

More fields

Katalon Platform

Created August 4, 2020 at 10:26 AM
Updated July 1, 2022 at 4:56 PM
Resolved August 4, 2020 at 6:22 PM

Flag notifications