SMB share - deleting file/directory problem (Windows)

moran

Cadet
Joined
Sep 29, 2020
Messages
1
Hi everyone, I'm newbie and I have a question: the user has a directory and can copy files to it, how do I prevent it from being deleted after uploading?
 
Joined
Jan 7, 2015
Messages
1,155
I think what you want is to set the users directory/dataset to chmod 500 dir/ You can protect files in the same way using chmod 400 file. After doing this only the file/directory owner will be able to see these files. The files will need to be chmod again to remove them (from windows), removing anything from the root command prompt will require confirmation a write protected file, or something of the sort.
 
Top