[SOLVED] Samba Mount Error 2 No Such Directory or File

tap

New Member
Joined
Nov 12, 2020
Messages
2
Reaction score
0
Credits
23
I am trying to mount a Samba share and have encountered the following error.

The command used to mount the share is:
> sudo mount -t cifs //<Samba IP>/smb /mnt/smb -o user=<UserName>,password=<Password>,vers=3.0

The message returned is mount error(2): no such file or directory.

The strange thing is I am able to use the GUI to access the Samba folder via smb://. Ping and telnet work too. The /mnt/smb directory exists as well.

The OS is RHEL 7.8 (Maipo) and the kernel version is 3.10.0-1127. For the OS, both the firewall and SELinux have been disabled.
Both cifs and keyutils have been installed as well.

I have done plenty of google searches but to no avail. Are there other OS configs or command options to look at?
 


From the client on the command-line enter and share the output of: smbclient -L ip-adress
 
Last edited:
Hello, I would like to give an update on the problem. The cause is due to FIPS being enabled which blocks cifs from working properly. After disabling FIPS, the samba share could be mounted properly.
 
I fix this problem, i use ubuntu system, and connect remote samba from this fuction.
1. add Other Loccations in Files
2. input smb://ip
3. click connect btn
4. done
PS: It's been a failure use this command -> sudo mount -t cifs //remotepath /taretpath/ -o user=xxxx
 

Members online


Latest posts

Top