help, CIFS new file - group permissions not accepted

Status
Not open for further replies.

marian78

Patron
Joined
Jun 30, 2011
Messages
210
Hi,

i have instaled freenas v9.2.1.7 x64.

Have problem with cifs shares after upgrade freenas from 9.2.0 to 9.2.1.7.

Now problem:

1. created dataset "asistent" - with permissions for user "asistent" and group "asistent" - 770

2. setup CIFS SHARE "asistent" linked to dataset "asistent" in freenas UI - tutorial "Configuring Local User Access" ((http://doc.freenas.org/index.php/Windows_(CIFS)_Shares#Configuring_Local_User_Access)

3. now i create new file "test.txt" over cifs (from windows) in share "asistent"

4. problem - group permissions that have this file is like 750. I need 770 (need group write permission), but i cant force create it with this permissions.

Pictures of settings are in uploaded files:
 

Attachments

  • cifs_service_1.JPG
    cifs_service_1.JPG
    45.1 KB · Views: 231
  • cifs_service_2.JPG
    cifs_service_2.JPG
    41.7 KB · Views: 228
  • dataset_asistent_permissions.JPG
    dataset_asistent_permissions.JPG
    28.5 KB · Views: 238
  • windows_sharing_settings.JPG
    windows_sharing_settings.JPG
    43.4 KB · Views: 216
  • group_permissions_over_cifs.JPG
    group_permissions_over_cifs.JPG
    58.2 KB · Views: 232

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
You should use "Windows ACL Type" unless you have specific reason not to. Once you set it that way you can set NTFS permissions through the security tab in Windows Explorer.

Typically, in windows a group with "write" privileges will need the following "Modify, Read & Execute, List Folder Contents, Read, and Write".
A group with "read-only" privileges will need "Read & Execute, List Folder Contents, and Read".
 

marian78

Patron
Joined
Jun 30, 2011
Messages
210
ok, thx, i will try ... but strange, until upgrade to v9.2.1.7 i used always unix style permissions (for me it is better to setup). Is there any solution for unix permissions?
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
ok, thx, i will try ... but strange, until upgrade to v9.2.1.7 i used always unix style permissions (for me it is better to setup). Is there any solution for unix permissions?
Upload your smb4.conf file [/usr/local/etc/smb4.conf] (you can redact anything sensitive - I just need to see your settings). I don't use unix ACLs and so I will probably be of little help. Have you tried setting the directory mask and file mask?
 

marian78

Patron
Joined
Jun 30, 2011
Messages
210
hi, thx for your time. here is my smb4.conf (edited with NOTEPAD++).

edit: I try setup mask in CLI like "chmod -R 770 /mnt/volume/asistent", but when i, for example, create new file over cifs, it is created with other permissions. I try alco samba auxiliary parameters like "create mask = 770" with no luck.
 

Attachments

  • smb4.conf.txt
    14.4 KB · Views: 260
Last edited:

marian78

Patron
Joined
Jun 30, 2011
Messages
210
ok, meanwhile, i try windows acl. When set in freenas, then i opened in windows mounted folder properties. There can i see in list of users also "everyone". Then i delete it. Now to this share can access only user that i setup in freenas? no other user can add in windows new user or change permissions?

everyone_on_windows.JPG
 

marian78

Patron
Joined
Jun 30, 2011
Messages
210
Any help or working tutorial for new version freenas 9.2.1.7 how to properly setup CIFS share for local user access without "everyone" permissions enabled?
 
Status
Not open for further replies.
Top