Operating System - Linux
1753278 Members
5513 Online
108792 Solutions
New Discussion юеВ

Re: Mounting windows share from Linux

 
SOLVED
Go to solution
James Roberto
Advisor

Mounting windows share from Linux

Hi,

Can anyone please help me? Im trying to mount a windows share from linux.
I've tried the following but no luck:

- smbclient //servername//share -N

error message
- Anonymous login successful.
- tree connect failed: NT_STATUS_BAD_NETWORK_NAME

- mount -t cifs -o username=[username],password=[password] //servername/share /mount_point/

error message
- mount error 13 = Permission denied


- There is no secuirty on the Windows share.
- I can ping the windows box.
- Version of Redhat 4 update 4
- could be Linux network problems?
- Problems with smb or nfs?

Any help would be appreciated

Cheers
James
11 REPLIES 11
Matti_Kurkela
Honored Contributor

Re: Mounting windows share from Linux

When using "mount -t cifs", you should specify the domain= option too. Windows authentication works using a domain/user/password triplet. If any of these three won't match, the access attempt is rejected.

If the Windows box is not a member of a domain, use the hostname of the Windows box instead.

RedHat Enterprise Linux 4 is currently at update 8 or 9: update 4 is old. Microsoft's security fixes sometimes cause incompatibilities with old versions of Samba, so updating to the latest may help.

This is strictly a SMB-related problem: the NT_STATUS_BAD_NETWORK_NAME indicates your Linux box can communicate with the Windows box (you got the error code back!), so the low-level networking is apparently OK.

NFS is not related to any commands you've showed us. By default, Windows OSs cannot use the NFS protocol at all. If you want to use NFS with Windows, you'll need to install the extra component "Services for Unix" to your Windows system.

MK
MK
Jared Middleton
Frequent Advisor

Re: Mounting windows share from Linux

> RedHat Enterprise Linux 4 is currently at
> update 8 or 9

Not quite. ;-)
As of June 22, 2008 the latest is Update 6.
$ cat /etc/redhat-release
Red Hat Enterprise Linux ES release 4 (Nahant Update 6)
kernel = 2.6.9-67.0.15.EL
Matti_Kurkela
Honored Contributor

Re: Mounting windows share from Linux

Sorry, seems I confused the Update levels of RHEL 3 and RHEL 4.

MK
MK
Steven E. Protter
Exalted Contributor

Re: Mounting windows share from Linux

Shalom,

NT_STATUS_BAD_NETWORK_NAME
Says to me you are using the wrong NT Domain for authentication.

If this is Red Hat 4, I have successfully done this with a correct Samba configuration that includes the network name AND having done the proper net join to bring this system into the NT network involved.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Court Campbell
Honored Contributor

Re: Mounting windows share from Linux

Can you post your smb.conf?
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
James Roberto
Advisor

Re: Mounting windows share from Linux

Attached smb.conf
Court Campbell
Honored Contributor

Re: Mounting windows share from Linux

I am going to go with a long shot here. Try -t smbfs instead of cifs. An you may also try putting the domain name or machine name in the username, i.e, DOMAIN/username or MACHINE/username.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
James Roberto
Advisor

Re: Mounting windows share from Linux

Hi,

Thanks for that. I got it working now. thanks everyone for your help.
Court Campbell
Honored Contributor
Solution

Re: Mounting windows share from Linux

Any points? Seems I got your answer and I am the only one who didn't get any. I feel like Rodney Dangerfield.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"