N
N
Nikolay Baranenko2016-06-17 12:40:44
linux
Nikolay Baranenko, 2016-06-17 12:40:44

How to properly distribute rights for samba?

Hello.
There is an OS with the samba service installed
Version:
Linux version 3.10.0-327.3.1.el7.x86_64
NAME="Red Hat Enterprise Linux Server"
VERSION="7.2 (Maipo)"
ID_LIKE="fedora"
VERSION_ID="7.2"
PRETTY_NAME= Red Hat Enterprise Linux Server 7.2 ( Maipo
) ="7.2" smbclient -V Version 4.2.
pdbedit -a -u usersamba
and issued the rights (I understand that apparently this is not possible, BUT I wanted to achieve the result faster)
sudo chmod –R 777 /data
Config

; /etc/smb.conf
;
; /etc/rc.d/init.d/smb stop
; /etc/rc.d/init.d/smb start

[global]
 guest account = usersamba
   log file = /var/log/samba-log.%m
   lock directory = /var/lock/samba
   share modes = yes

[data]
   comment = files source
   path = /data
   read only = no
   public = yes
valid users = usersamba
create mode = 0750
        writable =  yes
        guest ok = Yes
browseable = yes

The connection is successful.
I see files.
I transfer successfully.
BUT when new files appear in the folder, their transfer for the usersamba user is no longer possible.
Please help me solve the problem.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolay Baranenko, 2016-07-19
@drno-reg

all_squash in exports helped with configuring NFS

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question