[Gluster-users] when write a file using samba client gets 'Permission denied'

Christos Tsalidis chtsalid at gmail.com
Wed Oct 10 08:58:50 UTC 2018


Hi all,

I am testing the glusterfs 3.12.14 version on CentOS Linux release 7.5.1804
and when I try to write a file using a samba client I get 'Permission
denied'. Below I give the output and my configuration.


[root at workstation ~]# df
Filesystem                            1K-blocks    Used Available Use%
Mounted on
/dev/mapper/centos-root                 6486016 1199008   5287008  19% /
devtmpfs                                 495892       0    495892   0% /dev
tmpfs                                    507736       0    507736   0%
/dev/shm
tmpfs                                    507736    6828    500908   2% /run
tmpfs                                    507736       0    507736   0%
/sys/fs/cgroup
/dev/sda1                               1038336  161940    876396  16% /boot
tmpfs                                    101548       0    101548   0%
/run/user/1000
//servera.lab.local/gluster-mastervol   2076672   66720   2009952   4%
/mnt/smbdata
[root at workstation ~]# ls /mnt/smbdata/
file00  file01  file02  file03  file04  file05  file06  file07  file08
file09  file10

[root at workstation ~]# cat /mnt/smbdata/file00

[root at workstation ~]# touch /mnt/smbdata/file11
touch: cannot touch ‘/mnt/smbdata/file11’: Permission denied


[gluster-mastervol]
comment = For samba share of volume mastervol
vfs objects = glusterfs
glusterfs:volume = mastervol
glusterfs:logfile = /var/log/samba/glusterfs-mastervol.%M.log
glusterfs:loglevel = 7
path = /
read only = no
kernel share modes = No


[root at servera ~]# systemctl status smb
● smb.service - Samba SMB Daemon
   Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor
preset: disabled)
   Active: active (running) since Wed 2018-10-10 10:51:42 CEST; 5min ago
 Main PID: 3078 (smbd)
   Status: "smbd: ready to serve connections..."
   CGroup: /system.slice/smb.service
           ├─3078 /usr/sbin/smbd --foreground --no-process-group
           ├─3080 /usr/sbin/smbd --foreground --no-process-group
           ├─3081 /usr/sbin/smbd --foreground --no-process-group
           ├─3082 /usr/sbin/smbd --foreground --no-process-group
           └─3096 /usr/sbin/smbd --foreground --no-process-group

Oct 10 10:51:41 servera.lab.local systemd[1]: Starting Samba SMB Daemon...
Oct 10 10:51:42 servera.lab.local smbd[3078]: [2018/10/10 10:51:42.014539,
0] ../lib/util/become_daemon.c:124(daemon_ready)
Oct 10 10:51:42 servera.lab.local systemd[1]: Started Samba SMB Daemon.
Oct 10 10:51:42 servera.lab.local smbd[3078]:   STATUS=daemon 'smbd'
finished starting up and ready to serve connections
Oct 10 10:52:06 servera.lab.local smbd[3085]: [2018/10/10 10:52:06.741897,
0] ../source3/modules/vfs_glusterfs.c:371(vfs_...nnect)
Oct 10 10:52:06 servera.lab.local smbd[3085]:   vfs_gluster_connect:
mastervol: Initialized volume from servers localhost
Oct 10 10:52:09 servera.lab.local smbd[3096]: [2018/10/10 10:52:09.812596,
0] ../source3/modules/vfs_glusterfs.c:371(vfs_...nnect)
Oct 10 10:52:09 servera.lab.local smbd[3096]:   vfs_gluster_connect:
mastervol: Initialized volume from servers localhost
Hint: Some lines were ellipsized, use -l to show in full.



[root at servera ~]# rpm -qa | egrep -i 'gluster|samba'
glusterfs-client-xlators-3.12.14-1.el7.x86_64
glusterfs-api-3.12.14-1.el7.x86_64
glusterfs-fuse-3.12.14-1.el7.x86_64
glusterfs-server-3.12.14-1.el7.x86_64
samba-common-tools-4.7.1-9.el7_5.x86_64
samba-vfs-glusterfs-4.7.1-9.el7_5.x86_64
samba-winbind-4.7.1-9.el7_5.x86_64
centos-release-gluster312-1.0-2.el7.centos.noarch
glusterfs-libs-3.12.14-1.el7.x86_64
glusterfs-3.12.14-1.el7.x86_64
glusterfs-cli-3.12.14-1.el7.x86_64
glusterfs-gnfs-3.12.14-1.el7.x86_64
samba-common-4.7.1-9.el7_5.noarch
samba-common-libs-4.7.1-9.el7_5.x86_64
samba-client-libs-4.7.1-9.el7_5.x86_64
samba-libs-4.7.1-9.el7_5.x86_64
samba-4.7.1-9.el7_5.x86_64
samba-winbind-modules-4.7.1-9.el7_5.x86_64
samba-winbind-clients-4.7.1-9.el7_5.x86_64


Any idea how I can solve this problem?

Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20181010/ad1761d8/attachment.html>


More information about the Gluster-users mailing list