Samba: permission denied

A 5 star hangout for overworked and underpaid system admins.
Post Reply
fkc
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 //192.168.0.100/private /mnt/ddrtmp/ -o usernamet=user1
Password:
mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
I just followed this guide: https://linuxize.com/post/how-to-instal ... -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
TrevorH
Site Admin
Posts: 33202
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).
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply