I have Samba server running on my VM and try to connect on it from my workstation, but i still get errors.

Samba smb.conf :

comment = samba
path = /smb
write list = samba root


samba version : 4.8.3
OS version : CentOs 7


samba version : 4.9.1
OS version : Red Hat Enterprise 7.7

Mount command :

mount -t cifs // /samba -o username=samba,password=password,vers=2.1

Direct error after command exec :

mount error(2): No such file or directory

Error in /var/log/messages on client :

Sep 12 08:12:22 oc8211134760 kernel: CIFS VFS: BAD_NETWORK_NAME: \\\smb
Sep 12 08:12:22 oc8211134760 kernel: CIFS VFS: cifs_mount failed w/return code = -2

When i try to execute mount command with older version of samba, 1.0 the direct error is little bit different.

mount error(6): No such device or address

I was trying to find solution, but it looks like some common problem with versions of samba? Could it be because of different versions on Server/Client? And also i am little bit confused what is different between SMB protocol version i set in my mount command (vers=2.1/1.0) and the official version what command smbstatus is giving me (4.9.1).

Have anybody some ideas how can i solve this problem please?

1 Answer 1


The Share Name is "sam".


mount -t cifs // /samba -o username=samba,password=password,vers=2.1
  • 1
    No way... I am stupid, thought i have to specified directory, not the name... Thanks a lot
    – dvory59
    Commented Sep 12, 2019 at 7:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .