-   Linux - Server (
-   -   Unable to mount cifs network share in redhat 7 (

kkrrss 08-28-2016 02:56 AM

Unable to mount cifs network share in redhat 7
This is my output of the fstab file.


[root@APPIASRV ~]# cat /etc/fstab | grep cifs /mnt/my_temp_data cifs username=ftp_admin,password=password,file_mode=0777,dir_mode=0777 0 0

when I trying to mount from mount -a, it will show below message.


[root@APPIASRV ~]# mount -a
mount.cifs: bad UNC (

do anyone know what can be the reason ?

malekmustaq 08-28-2016 03:33 AM

Ask redhat people. You are either paying them or wanted to become one of their valued paying customers because you run their OS.

kkrrss 08-28-2016 03:50 AM

I dont have RHEL subscription for that. this is my test environment.

Appreciate if anyone can help me on this.

michaelk 08-28-2016 05:58 AM

Code: /mnt/my_temp_data cifs username=ftp_admin,password=password,file_mode=0777,dir_mode=0777 0 0
The correct syntax for mounting a samba share is:

// /mnt/my_temp_data cifs username=ftp_admin,password=password,file_mode=0777,dir_mode=0777 0 0

kkrrss 08-28-2016 06:03 AM

Thanks michaelk.

But when I used "ftp:" its giving below message.


[root@APPIASRV ~]# cat /etc/fstab | grep cifs
// /mnt/my_temp_data cifs username=ftp_admin,password=thambapanni,file_mode=0777,dir_mode=0777 0 0

[root@APPIASRV ~]# mount -a
Unable to find suitable address.
[root@APPIASRV ~]#

michaelk 08-28-2016 06:31 AM

Have you configured the firewall in to allow CIFS traffic.

You might want to consider using CentOS 7 instead of Redhat.

kkrrss 08-28-2016 07:23 AM

I have allowed all traffic to FTP server from praticuler server. but problem is same :(

Any ideas ?

Emerson 08-28-2016 07:24 AM

And what FTP has to do with this?

michaelk 08-28-2016 07:41 AM

I agree. ftp and cifs are different protocols. cifs is for mounting windows shares. What are you trying to accomplish?

The file manager can access a ftp site via ftp:// using its built in virtual file systems but the same can not be used in fstab or the command line.

It is possible to install additional packages to mount a ftp site as a "regular" file system but with out a subscription you can not do it using Redhat.

kkrrss 08-28-2016 07:41 AM


I know nothing do with FTP. only i need to fix below matter.

[root@APPIASRV ~]# mount -a
mount.cifs: bad UNC (

Emerson 08-28-2016 07:54 AM

For CIFS you need to open ports 13<something>, look it up.

deep27ak 08-30-2016 02:38 AM

One quick search lead me to multiple blogs with the solution

But as already said above the one BIG problem on working with Red Hat without subscription is you will not have access to global yum repositories. Although you might create a local yum repository with the packages available in the DVD.

kkrrss 09-04-2016 03:04 AM

Thanks a lot Deep27ak.

This was helpful to me and solved my problem.

Those who need further information, please check on this.

All times are GMT -5. The time now is 09:57 PM.