[Samba] read only mount on Mac OS Catalina
Rowland penny
rpenny at samba.org
Wed Jan 22 14:38:25 UTC 2020
On 22/01/2020 14:11, Paul Hartley via samba wrote:
> On Wed, Jan 22, 2020 at 12:42 AM Rowland penny via samba <
> samba at lists.samba.org> wrote:
>
>> On 22/01/2020 06:40, Paul Hartley via samba wrote:
>>> I have a simple samba 4.10 server on FreeBSD that I can mount using MacOS
>>> Catalina 10.15.2 using either the Finder connect to server option or via
>>> mount_smbfs. I can browse directories and see files already present on
>> the
>>> server but when I try to write a file on Mac OS Catalina (just doing a
>>> simple "touch filename"), I get the message "Read-only file system".
>> When
>>> I look at finder info for the mounted path where I want to write a file,
>> my
>>> username has read & write access. The same username is used for user
>>> permissions on the server. I have spent a fair amount of time trying a
>>> variety of remedies based on what I discover from searching online but
>> I'm
>>> getting nowhere. Would anyone have insight on why I'm getting a
>> read-only
>>> filesystem when successfully mounting my smb share, seeing files but not
>>> being able to write?
>>>
>>> My smb4.conf (with anonymized user and path values for this email) is as
>>> follows. The path attribute is owned by root:wheel at /home and the user
>>> path within (/home/user) is owned by root:user. /home/user also is set
>> to
>>> 2770.
>> I don't know about Freebsd, but, on Linux, I would expect /home to
>> belong to root:root with 0755 and /home/user to belong to user:user,
>> again with 0755
>>
> I'm not sharing /home, I used this as a bad example to simplify here...
A very bad example, if you have a problem with a share, show the share,
we are not psychic
> I'll rephrase -- I'm sharing dir2 found at /dir1/dir2. dir2 is owned by
> root:wheel and set to 755. There is a subdir /dir1/dir2/user within that
> is owned by root:user set to 2770. I can mount /dir1/dir2 with MacOS
> Catalina and see the contents of /dir1/dir2/user, but cannot write -- get a
> "read only filesystem" message.
>
This has come up before, your user dir is inheriting permissions from
dir2, which 755 or rwxr-xr-x, writeable only by the owner. The fix is to
set up two shares:
[share]
path = /dir1/dir2
read only = no
[share2]
path = /dir1/dir2/user
read only = no
If there are multiple 'user' paths, replace 'user' with '%U'
Rowland
More information about the samba
mailing list