The question is stupid, from the series "knew, but forgot" :)

In smb.conf it is written:

[root directory]# ...directory mask = 0777 

However, from a remote machine, directories in a shared location are created as 755. Why?

  • The answer is also from the series "like remember," so koment. Tried directory mode = 0777? - pyatak
  • Inserted, restarted. Now 775 :) - user6550
  • did not understand, did not work? - pyatak
  • Well, something has changed - it was 755, they began to be created as 775 :) But still not 777. - user6550
  • and under the user from which it creates, umask is not accidentally configured? - pyatak pm

1 answer 1

SAMBA Global Settings

  security = share [public] comment = users_shared path = /public browsable = yes guest ok = yes public = yes writable = yes create mask = 0666 directory mask = 0777 

FSTAB

 //10.19.12.1/public /mnt/users cifs username=user,password=pass,noperm,dir_mode=0777,file_mode=0777,iocharset=utf8,_netdev 0 0