Samba: share subfolder as read only.

Hi,

Currently I have a Samba shared configured as follows:

[pub_fileshare]
comment = Public fileshare
path = /u02/pub
guest ok = Yes
writeable = Yes

There is a subfolder under /u02/pub called /u02/pub/expenses/hardware that I need to make read only. How do I do this? I am new to using Samba.

I configured the share /u02/pub/expenses/hardware using the configuration below. This works as it is shared as read only.

[Hardware]
comment = Hardware share
path = /u02/pub/expenses/hardware
read only = Yes
guest ok = Yes

User can still access the folder through \\servername\pub\expenses\hardware with write permissions. How do I make it read only?

:confused:

Thanks.

Did you reload the configuration?

Hi Pludi,

I read that Samba rereads the configuration every 30 seconds? I can connect to the new share and it is read only so would that have verified that the configuration was reread?

It does make sense that connecting through the writable share to the hardware directory that I will be able to write to it. Then connecting to the new read only hardware share directly I can only read.

I would imagine that I have to put some entry in here to configure the hardware share as read only?

[pub_fileshare]
comment = Public fileshare
path = /u02/pub
guest ok = Yes
writeable = Yes

Thanks