Set user permissions correctly when selecting the location for the user's home directory
When creating a user jmaloney, and selecting a location for home directory /mnt/tank/home the initial permissions for /mnt/tank/home/jmaloney are set to root:wheel. This should be jmaloney:jmaloney. This affects samba homes share functionality until the correct permissions for the user folder are set.
Permission bug fixed in smb plugin
When home was set to true when creating a samba share, it used to recursively set each directory in the path's permissions to the parent directory permissions. This commit changes that and when home is true, the permissions of directories beneath it don't change.
Just adding a note this is not what I thought it was. When adding a user the permissions are fine when setting the home directory. It is when a smb home share is create with the "use as home share" checkbox that all of the user folders ownerships are changed to root:wheel.
Hello. So when a new share is created in the new UI. It automatically sends the default_permissions value as True in new UI when making a call to api v1, which shouldn't happen. This needs to be taken care of on the new UI side. The behavior described in the ticket is not valid for legacy UI. Please let me know if I got this wrong. Thank you