Network and Storage Protocols

Bad (none) permissions on files and directories created with cifs

MZa
749 Views

I have cifs/nfs share on volume with security style unix. If the file (or directory) is created with CIFS it has set permissions to "000"

ll /netapp/upload/users/zacekm/
d---------. 2 zacekm zacekm 4096 Mar 8 09:24 d1
drwxr-xr-x. 2 zacekm zacekm 4096 Mar 8 09:25 d2

 

The d1 dir is created with nfs, the d2 dir with cifs. The umask of the share is set to 0. Is there any option similar to "force create mode" on Samba share? I need at least 700 for dirs and 600 for files.

Thanks

 

stor6::> cifs share show -vserver upload -share-name upload

Vserver: upload
Share: upload
CIFS Server NetBIOS Name: STOR6-UPLOAD
Path: /upload
Share Properties: oplocks
browsable
changenotify
access-based-enumeration
show-previous-versions
Symlink Properties: symlinks
File Mode Creation Mask: 0
Directory Mode Creation Mask: 0
Share Comment: -
Share ACL: Everyone / Full Control
File Attribute Cache Lifetime: -
Volume Name: upload
Offline Files: manual
Vscan File-Operations Profile: standard
Maximum Tree Connections on Share: 4294967295
UNIX Group for File Create: -

 

2 REPLIES 2

Ontapforrum
715 Views

Please check these..

 

Under UNIX security style, a file or directory can be accessed or modified by the superuser (typically uid 0), owner, or a group of users who have been given permission to do so.

 

What the security styles and their effects are
https://docs.netapp.com/us-en/ontap/nfs-admin/security-styles-their-effects-concept.html

 

How to understand UNIX permissions

https://kb.netapp.com/Advice_and_Troubleshooting/Data_Storage_Software/ONTAP_OS/How_to_understand_UNIX_permissions

 

 

Related:
How ONTAP preserves UNIX permissions:
https://docs.netapp.com/us-en/ontap/nfs-admin/ontap-preserves-unix-permissions-concept.html

How to show effective permissions for Windows or Unix Users
https://kb.netapp.com/Advice_and_Troubleshooting/Data_Storage_Software/ONTAP_OS/How_to_show_effective_permissions_for_Windows_or_Unix_Users

MZa
711 Views

I can change the permissions of existing files and directories from the Linux client, but I need the newly created files and directories to have some reasonable permissions set automatically, such as 750 for directories and 640 for files.  Is there an option in NetApp similar to samba's "force create mode"?

Public