[Samba] odd issue with permisions
Dan Egli
dan at newideatest.site
Tue Oct 27 19:08:03 UTC 2020
On 10/27/2020 12:50 PM, Rowland penny via samba wrote:
> On 27/10/2020 18:35, Dan Egli via samba wrote:
>> I'm really confused about something. It seems like on my samba server
>> the user AND GROUP permissions must match for me to access any files in
>> my home directory. Here's an example of what I mean: ($ = at unix shell,
>>> = in smbclient)
>> $ mkdir ~dan/test1
>> $ chmod 700 ~dan/test1
>> $ smbclient -U dan //localhost/dan
>>> cd test1
>>> put test1.txt
>> (failure, NT_STATUS_ACCESS_DENIED)
>>> quit
>> $ chmod 070 ~dan/test1
>> $ smbclient -U dan //localhost/dan
>>> cd test1
>>> put test1.txt
>> (failure, NT_STATUS_ACCESS_DENIED)
>>> quit
>> $ chmod 770 ~dan/test1
>> $ smbclient -U dan //localhost/dan
>>> cd test1
>>> put test.txt
>> (SUCCESS)
>>
>>
>> Why on earth would samba even CARE about group permissions when user
>> permissions are perfectly fine? Help me fix this?
>
> What OS ?
>
> What version of Samba ?
>
> Please post your smb.conf
>
> Rowland
>
>
Sorry, Samba version 4.11.2-13 is running on CentOS 8. My smb.conf is
shown below, sans comments:
[global]
workgroup = EgliFamily
server string = Samba Server Version %v
log file = /var/log/samba/log.%m
max log size = 50
security = user
passdb backend = tdbsam
acl allow execute always = true
load printers = yes
cups options = raw
[homes]
comment = Home Directories
browseable = no
writable = yes
directory mask = 770
create mask = 660
acl check permissions = no
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
--
Dan Egli
On my Test server
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba/attachments/20201027/46f51e32/OpenPGP_signature.sig>
More information about the samba
mailing list