[Gluster-users] when write a file using samba client gets 'Permission denied'
Christos Tsalidis
chtsalid at gmail.com
Wed Oct 10 10:57:21 UTC 2018
Hi,
I recreated as you said, but problem remains. Any other suggestion to make?
Thanks in advance!
Στις Τετ, 10 Οκτ 2018 στις 12:48 μ.μ., ο/η Ji-Hyeon Gim <
potatogim at potatogim.net> έγραψε:
> My configuration is same too :)
>
> Did you try to restart samba again?
>
> If that doesn't work, I suggest re-create volume freshly.
>
> When I met this problem, I guess I've deleted my volume and create it
> again.
>
>
> On 10/10/18 7:41 PM, Christos Tsalidis wrote:
> > Hi,
> >
> > yes this package is also downgraded, you can see it here.
> >
> >
> > [root at servera ~]# rpm -qa | egrep 'samba|vfs'
> > samba-common-libs-4.7.1-6.el7.x86_64
> > samba-client-libs-4.7.1-6.el7.x86_64
> > samba-common-tools-4.7.1-6.el7.x86_64
> > samba-vfs-glusterfs-4.7.1-6.el7.x86_64
> > samba-common-4.7.1-6.el7.noarch
> > samba-libs-4.7.1-6.el7.x86_64
> > samba-4.7.1-6.el7.x86_64
> >
> > And here also my smb.conf
> >
> >
> > [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
> >
> > Can you show me your smb.conf? Does it look like the same?
> >
> > Thanks in advance!
> >
> > Στις Τετ, 10 Οκτ 2018 στις 12:38 μ.μ., ο/η Ji-Hyeon Gim
> > <potatogim at potatogim.net <mailto:potatogim at potatogim.net>> έγραψε:
> >
> > Oh, Did you downgraded with samba-vfs-glusterfs package?
> >
> > On 10/10/18 7:34 PM, Christos Tsalidis wrote:
> > > Hi,
> > >
> > > I downgraded from 4.7.1-9.el7_5 to 4.7.1-6.el7 and still problem
> > > hasn't been resolved.
> > > Which is the version that you used to downgrade?
> > >
> > > Thanks in advance!
> > >
> > > Στις Τετ, 10 Οκτ 2018 στις 12:20 μ.μ., ο/η Christos Tsalidis
> > > <chtsalid at gmail.com <mailto:chtsalid at gmail.com>
> > <mailto:chtsalid at gmail.com <mailto:chtsalid at gmail.com>>> έγραψε:
> > >
> > > Hi,
> > >
> > > thanks for your reply! What is the version which you used to
> > > downgrade?
> > >
> > > Thanks in advance!
> > >
> > >
> > > Στις Τετ, 10 Οκτ 2018 στις 11:40 π.μ., ο/η Ji-Hyeon Gim
> > > <potatogim at potatogim.net <mailto:potatogim at potatogim.net>
> > <mailto:potatogim at potatogim.net <mailto:potatogim at potatogim.net>>>
> > έγραψε:
> > >
> > > Hello!
> > >
> > > When I downgraded samba and samba-vfs-gluster, It worked
> > well.
> > >
> > > If you are in a hurry, I recommend you to downgrade these
> > > packages.
> > >
> > >
> > > On 10/10/18 5:58 PM, Christos Tsalidis wrote:
> > > > 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!
> > > >
> > > > _______________________________________________
> > > > Gluster-users mailing list
> > > > Gluster-users at gluster.org
> > <mailto:Gluster-users at gluster.org>
> > <mailto:Gluster-users at gluster.org <mailto:Gluster-users at gluster.org
> >>
> > > > https://lists.gluster.org/mailman/listinfo/gluster-users
> > >
> > > Best regards.
> > >
> > > --
> > >
> > > Ji-Hyeon Gim
> > > Research Engineer, Gluesys
> > >
> > > Address. Gluesys R&D Center, 5F, 11-31, Simin-daero
> > 327beon-gil,
> > > Dongan-gu, Anyang-si,
> > > Gyeonggi-do, Korea
> > > (14055)
> > > Phone. +82-70-8787-1053
> > > Fax. +82-31-388-3261
> > > Mobile. +82-10-7293-8858
> > > E-Mail. potatogim at potatogim.net
> > <mailto:potatogim at potatogim.net> <mailto:potatogim at potatogim.net
> > <mailto:potatogim at potatogim.net>>
> > > Website. http://www.potatogim.net/
> > >
> > > The time I wasted today is the tomorrow the dead man was
> > eager
> > > to see yesterday.
> > > - Sophocles
> > >
> > Best regards.
> >
> > --
> >
> > Ji-Hyeon Gim
> > Research Engineer, Gluesys
> >
> > Address. Gluesys R&D Center, 5F, 11-31, Simin-daero 327beon-gil,
> > Dongan-gu, Anyang-si,
> > Gyeonggi-do, Korea
> > (14055)
> > Phone. +82-70-8787-1053
> > Fax. +82-31-388-3261
> > Mobile. +82-10-7293-8858
> > E-Mail. potatogim at potatogim.net <mailto:potatogim at potatogim.net>
> > Website. http://www.potatogim.net/
> >
> > The time I wasted today is the tomorrow the dead man was eager to
> > see yesterday.
> > - Sophocles
> >
> Best regards.
>
> --
>
> Ji-Hyeon Gim
> Research Engineer, Gluesys
>
> Address. Gluesys R&D Center, 5F, 11-31, Simin-daero 327beon-gil,
> Dongan-gu, Anyang-si,
> Gyeonggi-do, Korea
> (14055)
> Phone. +82-70-8787-1053
> Fax. +82-31-388-3261
> Mobile. +82-10-7293-8858
> E-Mail. potatogim at potatogim.net
> Website. http://www.potatogim.net/
>
> The time I wasted today is the tomorrow the dead man was eager to see
> yesterday.
> - Sophocles
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20181010/c0ace299/attachment.html>
More information about the Gluster-users
mailing list