LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Why cifs can't see the windows share file? (https://www.linuxquestions.org/questions/linux-networking-3/why-cifs-cant-see-the-windows-share-file-734927/)

KFC123 06-23-2009 02:57 AM

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!!!

jsteel 06-23-2009 05:30 AM

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.

ArcLinux 06-23-2009 09:50 AM

Is samba running and if so is it configured correctly?

KFC123 06-23-2009 12:19 PM

Quote:

Originally Posted by ArcLinux (Post 3583430)
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?

KFC123 06-23-2009 12:21 PM

Quote:

Originally Posted by jsteel (Post 3583201)
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)


All times are GMT -5. The time now is 06:33 PM.