Samba: permission denied

A 5 star hangout for overworked and underpaid system admins.
Post Reply
Posts: 2
Joined: 2021/12/10 08:58:46

Samba: permission denied

Post by fkc » 2021/12/10 09:22:33

I have a server with a host and a Virtualbox VM.
The host is running CentOS 7 and it is updated. Indeed the VM is running CentOS 5 and I know this OS is not supported by several years but I can't update it now.

The alert of the problem is too generic and it's shown when I try to mount on the VM the samba folder that is living on the host:
[root@localhost ~]# sudo mount -t cifs // /mnt/ddrtmp/ -o usernamet=user1
mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page ( mount.cifs)
I just followed this guide: ... -centos-7/

Samba version:
Host -> samba 5
VM -> samba 3

I tried:
Disabling firewalld and SELinux
Using NFS
Change password of users and use several users

But all this got nothing changed.

Hope y'all got tips or solutions for this.

Thanks in advance.

User avatar
Site Admin
Posts: 32771
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Samba: permission denied

Post by TrevorH » 2021/12/10 17:14:36

Most likely samba in CentOS 5 is too old to understand any of the newer security protocols implemented to make Samba more secure. You could try forcing the samba version on the mount bu that assumes that the server you are connecting to does not have the older versions disabled (Windows does).
CentOS 8 died a premature death at the end of 2021 - migrate to Rocky/Alma/OEL/Springdale ASAP.
Info for USB installs on
CentOS 5 and 6 are dead, do not use them.
Use the FAQ Luke

Post Reply