[Samba] Can't write to a samba share mounted as an AD user
pisymbol at gmail.com
Thu Aug 2 18:51:34 UTC 2018
On Thu, Aug 2, 2018 at 2:46 PM, pisymbol <pisymbol at gmail.com> wrote:
> On Thu, Aug 2, 2018 at 1:55 PM, Rowland Penny via samba <
> samba at lists.samba.org> wrote:
>> On Thu, 2 Aug 2018 13:16:26 -0400
>> pisymbol via samba <samba at lists.samba.org> wrote:
>> > On Thu, Aug 2, 2018 at 1:11 PM, Eric Altman via samba
>> > <samba at lists.samba.org
>> > > wrote:
>> > >
>> > > It’s just that the mount has read-only access despite the file
>> > > ownership and modes being set to give full read-write?
>> > >
>> > >
>> > That is almost correct (I can create empty files via touch) which has
>> > me baffled.
>> > -aps (Alex)
>> You do not have any lines like this in your smb.conf:
>> winbind nss info = rfc2307
>> idmap config *:backend = tdb
>> idmap config *:range = 2000-9999
>> idmap config SAMDOM : backend = rid
>> idmap config SAMDOM : schema_mode = rfc2307
>> idmap config SAMDOM : range = 10000-999999
> I added these lines (changed SAMDOM accordingly).
> That helped but didn't fix the problem. But I do see users and domains.
> [admin at outerdrive Public]# getfacl .
> # file: .
> # owner: admin
> # group: administrators
> The 'domain users changed' is a real thing and no I am not responsible for
> I am mounting as a user who is in both 'SAMDOM\users' and 'SAMDOM\domain
> users changed' etc using SMB 2.1.
> But I still can't write a darn file....
Eureka! Sorry about that. The above did indeed fixed it. I had the uid/gid
set to 0 on mount. If I mount it now as my uid/gid I can write files to it.
Thank you Rowland and Eric. I really do appreciate it. I completely forget
about 'idmap' and now I feel kinda dumb.
Wow, this was way more a pain in the butt then it should have been given
the QNAP is an "appliance."
More information about the samba