LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-23-2009, 02:57 AM   #1
KFC123
Member
 
Registered: May 2009
Posts: 47

Rep: Reputation: 15
Why cifs can't see the windows share file?


I am learning how to mount folder, shared by remote windows, to CentOS5. I am remotely loggin the CentOS with ssh, in windows side, the ip address is dynamics. The shared folder is specify with UNC //user-KB2312/myshare

I try

Code:
smbclient -L user-KB2312
but it returns "Connection to user-KB2312 failed (Error NT_STATUS_BAD_NETWORK_NAME)"

if I use ip address instead, it shows

session request to x.y.w.z failed (Called name not present)
session request to 10 failed (Called name not present)
session request to *SMBSERVER failed (Not listening on called name)

and if I use mount.cifs as

Code:
mount.cifs -o username="jay",password="p412" //x.y.w.z/myshare /mnt
or

Code:
mount.cifs -o username="jay",password="p4123" //user-KB2312/myshare /mnt
it returns

Mounting the DFS root for domain not implemented yet
No ip address specified and hostname not found

I wonder how to make it work? Since the ip is changing all the time, how can I use VNC instead? Someone said if it fail to use cifs, I can try smb instead. But in CentOS5, I only find the sever tools, but didn't see smbmount!!!
 
Old 06-23-2009, 05:30 AM   #2
jsteel
Member
 
Registered: Mar 2007
Location: England
Distribution: Arch
Posts: 392

Rep: Reputation: 34
This may not be any good but I thought that it would be worth a try if you've run out of ideas. This is how I connect to a Windows Server share using CIFS, which is similar to your example but slightly different.

mount -t cifs //server/c$ /mnt/server -o username=domain/user

Don't specify a password and it will ask you for one. Make sure they are all forward slashes.
 
Old 06-23-2009, 09:50 AM   #3
ArcLinux
Member
 
Registered: Apr 2005
Location: Fargo, ND
Distribution: Slackware, CentOS
Posts: 87

Rep: Reputation: 20
Is samba running and if so is it configured correctly?
 
Old 06-23-2009, 12:19 PM   #4
KFC123
Member
 
Registered: May 2009
Posts: 47

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ArcLinux View Post
Is samba running and if so is it configured correctly?
samba is running, but I read some help online which said cilf is independent with samba, isn't it?
 
Old 06-23-2009, 12:21 PM   #5
KFC123
Member
 
Registered: May 2009
Posts: 47

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jsteel View Post
This may not be any good but I thought that it would be worth a try if you've run out of ideas. This is how I connect to a Windows Server share using CIFS, which is similar to your example but slightly different.

mount -t cifs //server/c$ /mnt/server -o username=domain/user

Don't specify a password and it will ask you for one. Make sure they are all forward slashes.
Thanks for reply. I try that, but still get

mount error 112 = Host is down
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
 
  


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
RHEL 4 does not recognize file permissions from w3k storage server cifs share rockfx01 Linux - Server 2 07-14-2008 09:22 AM
cifs remote share bobd72 Linux - Networking 2 06-04-2008 04:55 AM
Mount.cifs Mounting a subdirectory of a windows share MonctonJohn Linux - Networking 4 09-28-2007 05:15 AM
Mounting windows share via cifs (fstab entry) - error 13 opening credentials file O(V)eGA_l2el) Linux - Networking 2 12-05-2006 11:22 AM
no writing permission to mounted cifs share on windows XP ntfs folder zpcanada Linux - General 1 08-30-2006 11:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:20 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