LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-28-2016, 02:56 AM   #1
kkrrss
Member
 
Registered: Jun 2016
Posts: 56
Blog Entries: 1

Rep: Reputation: Disabled
Unable to mount cifs network share in redhat 7


This is my output of the fstab file.

Code:
[root@APPIASRV ~]# cat /etc/fstab | grep cifs
ftp://172.18.41.70/MY_TEMP_DATA /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.

Code:
[root@APPIASRV ~]# mount -a
mount.cifs: bad UNC (ftp://172.18.41.70/MY_TEMP_DATA)
do anyone know what can be the reason ?
 
Old 08-28-2016, 03:33 AM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,667

Rep: Reputation: 494Reputation: 494Reputation: 494Reputation: 494Reputation: 494
Ask redhat people. You are either paying them or wanted to become one of their valued paying customers because you run their OS.
 
Old 08-28-2016, 03:50 AM   #3
kkrrss
Member
 
Registered: Jun 2016
Posts: 56

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
I dont have RHEL subscription for that. this is my test environment.

Appreciate if anyone can help me on this.
 
Old 08-28-2016, 05:58 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 20,452

Rep: Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564
Code:
ftp://172.18.41.70/MY_TEMP_DATA /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:
Code:
//172.18.41.70/MY_TEMP_DATA /mnt/my_temp_data cifs username=ftp_admin,password=password,file_mode=0777,dir_mode=0777 0 0
 
Old 08-28-2016, 06:03 AM   #5
kkrrss
Member
 
Registered: Jun 2016
Posts: 56

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Thanks michaelk.

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

Code:
[root@APPIASRV ~]# cat /etc/fstab | grep cifs
//172.18.41.70/MY_TEMP_DATA /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 ~]#
 
Old 08-28-2016, 06:31 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 20,452

Rep: Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564
Have you configured the firewall in 172.18.41.70 to allow CIFS traffic.

You might want to consider using CentOS 7 instead of Redhat.
 
Old 08-28-2016, 07:23 AM   #7
kkrrss
Member
 
Registered: Jun 2016
Posts: 56

Original Poster
Blog Entries: 1

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

Any ideas ?
 
Old 08-28-2016, 07:24 AM   #8
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,317

Rep: Reputation: Disabled
And what FTP has to do with this?
 
Old 08-28-2016, 07:41 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 20,452

Rep: Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564
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.
 
Old 08-28-2016, 07:41 AM   #10
kkrrss
Member
 
Registered: Jun 2016
Posts: 56

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Code:
I know nothing do with FTP. only i need to fix below matter.

[root@APPIASRV ~]# mount -a
mount.cifs: bad UNC (ftp://172.18.41.70/MY_TEMP_DATA)
 
Old 08-28-2016, 07:54 AM   #11
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,317

Rep: Reputation: Disabled
For CIFS you need to open ports 13<something>, look it up.
 
Old 08-30-2016, 02:38 AM   #12
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
One quick search lead me to multiple blogs with the solution

https://snippets.khromov.se/mount-ft...nux-as-folder/

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.
 
1 members found this post helpful.
Old 09-04-2016, 03:04 AM   #13
kkrrss
Member
 
Registered: Jun 2016
Posts: 56

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Thanks a lot Deep27ak.

This was helpful to me and solved my problem.

Those who need further information, please check on this. https://linuxconfig.org/mount-remote...nux-filesystem
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Mount samba share on Slackware: mount error(6) from mount.cifs frushiyama Slackware 11 01-22-2015 07:12 PM
Mount cifs share problems BarryLinux Linux - Newbie 11 06-04-2012 12:42 AM
[SOLVED] CIFS share on old WinNT host - smbclient works, mount -t cifs doesn't Electrode Linux - Networking 4 04-19-2012 09:11 AM
Unable to mount Windows share using cifs to my virtual instance of SUSE nick[GEGN] Linux - Desktop 3 08-26-2010 10:29 AM
Unable to mount NFS share through network IP hot_wired13 Linux - Server 1 09-02-2007 07:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration