0

How can I edit file smb.conf to solve this problem:

Every samba user can read and write the folder /myfolder but only the person who created the file in folder can delete his file.

Jason Sturges
  • 15,855
  • 14
  • 59
  • 80
Cụt Cánh
  • 375
  • 2
  • 10

1 Answers1

0

I would proceed by setting the (so called) sticky bit on the directory, e.g.

chmod 2755 /path/to/directory

The use of the sticky bit means other users cannot delete or rename files. More information on the sticky bit is available at http://en.wikipedia.org/wiki/Sticky_bit (or via a Google search).

Thanks,

Patrick

Patrick Rynhart
  • 485
  • 4
  • 11