3

I have the home folder of my Raspberry Pi B+ shared via SMB working fine. Now i'm trying to make a public, write only folder: i edited the configuration like so but it doesn't seem to work. I can't write anything to that folder.

Configuration:

[public]
path = /home/pi/Kingston/Public
create mask = 0644
directory mask = 0755
browsable = no
writeable = yes
guest ok = yes
Matteo
  • 473
  • 1
  • 4
  • 11

1 Answers1

0

Try changing your directory mask to 0766 => 6 = read and write

5 = read and execute

Edit: the directory mask is equivalent to the unix file system permissions in numeric notation. Therefore 0 means no permissions, 1 means execute and so on.

Further reading here https://en.wikipedia.org/wiki/File_system_permissions#Numeric_notation

Edit 2: Like goldilocks corrected me a directory needs also execution permission. Therefore the mask has to be 0777. Like Chris Down explained in his answer on Unix & Linux:

The execute bit allows the affected user to enter the directory, and access files and directories inside

dmorawetz
  • 111
  • 1