Operating System - HP-UX
1753260 Members
4743 Online
108792 Solutions
New Discussion

file and directory permissions with samba 4.5 (CIFS 4.05.11 installed)

 
Romy_LWN
Occasional Contributor

file and directory permissions with samba 4.5 (CIFS 4.05.11 installed)

Hi all

I installed CIFS Server Version 4.05.11 on hpux 11.31 in order to connect from am WIN 10 Version 1709, what was not working with samab 3.2.X

Now a lot of configuration parameters are unknown like "force directory mode ",..

How can i specity file and directory permissions now differing from defaut samba (create mask = 744 and directory mask = 755, am i right?) and default UNIX (666 and 777)

I need files 774 and dirs 775

When i specify this in smb.conf using only create mask and directory mask the resultion unix files are

764 (!) and directorys are 775 (= is OK)

what is wrong? Win User is using default permissions (no special umask set on HPUX)

(smb.conf:  unix extentions = no)

When i change settings in smb.conf the results are not always the same.

I always disconnect and reconnect the windows share.

Are the permissions informations cashed anywhere?

 

thanks for help - answer on monday is early enough

regards Romy

 

 

1 REPLY 1
Bhagw_p
Advisor

Re: file and directory permissions with samba 4.5 (CIFS 4.05.11 installed)

Hello Romy_LWN,

Greetings !!!

Thank you for choosing HPE Services. First let me apologize for the delay in our reply.

The latest HPE CIFS Server B.04.05.15.00 - https://h20392.www2.hpe.com/portal/swdepot/displayProductInfo.do?productNumber=B8725AA

The link to latest CIFS admin guide - https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-c03701890

The link to latest CIFS release notes - https://internal.support.hpe.com/hpsc/doc/public/display?sp4ts.oid=4248628&docLocale=en_US&docId=emr_na-a00020382en_us

Info on force directory mode
This parameter specifies a set of UNIX mode bit permissions that will always be set on a directory created by Samba. This is done by bitwise 'OR'ing these bits onto the mode bits of a directory that is being created. The default for this parameter is (in octal) 0000 which will not add any extra permission bits to a created directory. This operation is done after the mode mask in the parameter directory mask is applied.


The following link has more info on smb.conf file (you can also use # man smb.conf) - https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html

setting up shares using windows ACL - https://wiki.samba.org/index.php/Setting_up_a_Share_Using_Windows_ACLs

setting up shares using Posix ACL - https://wiki.samba.org/index.php/Setting_up_a_Share_Using_POSIX_ACLs


Hope this help.

Accept or Kudo