Cannot mount CIFS

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2  Next
Author Message
mauxiliar
DD-WRT User


Joined: 11 Sep 2007
Posts: 135
Location: 64.233.167.99 :-) not really! Santa Fe, Argentina

PostPosted: Thu Feb 07, 2008 19:11    Post subject: Cannot mount CIFS Reply with quote
Hello nice people!
I have a problem with the CIFS Automount.
It doenst work for me.
I have a windows 2003 server. I shared a folder with the name myshare.
In the cifs parameters I add:
Common Internet File System: Enable
Share: //windows2003/myshare
User Name: administrator
Password: xxx
Startscript:
And it says:
Total / Free Size(Not mounted)

I tried a lot and didnt work.
Id read this:
http://www.dd-wrt.com/wiki/index.php/Samba_Filesystem
this:
http://www.dd-wrt.com/phpBB2/viewtopic.php?p=99588
and a lot of other post but couldnt mount a single share!!! Sad
Anyone has any idea?

Oh... in witch version is Samba in the web interface? I would like to give it a try... may be it works...

My version is: DD-WRT v24 RC-3 (09/13/07) std

Thanks a lot for your answers!!

_________________
WRT54G v1.0 - DD-WRT v24 (05/20/0Cool std
Sponsor
soulstace
DD-WRT Guru


Joined: 04 Aug 2007
Posts: 6427

PostPosted: Fri Feb 08, 2008 2:39    Post subject: Reply with quote
First, you should create a limited user account on Windows and give this account access to the share. Using the admin account is insecure, because the router stores the password in clear text.

Make sure the local security policy in Windows 2003 allows NTLM v2 access to the share.

Admin tools -> Local Security Policy

mauxiliar
DD-WRT User


Joined: 11 Sep 2007
Posts: 135
Location: 64.233.167.99 :-) not really! Santa Fe, Argentina

PostPosted: Fri Feb 08, 2008 11:54    Post subject: Reply with quote
Soulstace:
Im using the administrator account for testing purposes because it has all permissions granted. After It works I change the user.
The shared folder witch I'm trying to reach has write/read, etc permissions for everyone.
I'd checked the NTMV2 response and it's OK as in your picture, the same is suggested in the wiki.
Witch those settings it should work from the GUI? May be my firmware version is bugged… I read somewhere that above CIFS Automount should appear Samba in the Management menu and it doesn’t…
Witch version are you using?
Thanks for the reply!

_________________
WRT54G v1.0 - DD-WRT v24 (05/20/0Cool std
soulstace
DD-WRT Guru


Joined: 04 Aug 2007
Posts: 6427

PostPosted: Fri Feb 08, 2008 13:14    Post subject: Reply with quote
I am using Eko's RC6 build 8790 nokaid. It should be working from the GUI.

I use a limited user to access the share, and that user has a password. Blank password is not good, Windows will refuse it.

On your server, Local Security Policy, Enable Audit logon events - Success,Failure

Try to mount the share again. Check the Windows Event Log for logon errors.
mauxiliar
DD-WRT User


Joined: 11 Sep 2007
Posts: 135
Location: 64.233.167.99 :-) not really! Santa Fe, Argentina

PostPosted: Fri Feb 08, 2008 17:45    Post subject: Reply with quote
OK, I installed the las RC7 from EKOs... should work too...
I reconfigured the CIFs in the router with the same parameters and still doen't appear as mounted.
In the events manager log from windows 2003 it says in the last line when the router boots (translated from spanish to english):

Tipe: Success
Date: 08/02/2008
Time:02:35:40 p.m.
Source: Security
Category: logon/logout
ID: 538
User: administrator
Equipment: Windows2003

When double click the event:

User logout:
Username: Administrator
Domain: WINDOWS2003
Id. of session login: (0x0,0x2F409)
Login type: 3


For more information, see the help center and technical support in http://go.microsoft.com/fwlink/events.asp.

So... its like if it logs in and out??
Don't really understand...
Any other ideas?
Thanks!

_________________
WRT54G v1.0 - DD-WRT v24 (05/20/0Cool std
soulstace
DD-WRT Guru


Joined: 04 Aug 2007
Posts: 6427

PostPosted: Fri Feb 08, 2008 17:57    Post subject: Reply with quote
You should be getting something like this. Notice the IP of the router in my log.

Code:

Successful Network Logon:
    User Name:   user
    Domain:      DOMAIN
    Logon ID:      (0x0,0x012345)
    Logon Type:   3
    Logon Process:   NtLmSsp
    Authentication Package:   NTLM
    Workstation Name:   \\192.168.1.1
    Logon GUID:   -


or this, if failed

Code:

Logon Failure:
    Reason:      Unknown user name or bad password
    User Name:   user
    Domain:      
    Logon Type:   3
    Logon Process:   NtLmSsp
    Authentication Package:   MICROSOFT_AUTHENTICATION_PACKAGE_V1_0
    Workstation Name:   \\192.168.1.1


Is your server a member of a DOMAIN, or a WORKGROUP?

If domain, you need to enter the domain into the username DOMAIN\Administrator
mauxiliar
DD-WRT User


Joined: 11 Sep 2007
Posts: 135
Location: 64.233.167.99 :-) not really! Santa Fe, Argentina

PostPosted: Sat Feb 09, 2008 16:39    Post subject: Reply with quote
OK, no logs of that kind...
Let me tell u everething i did so u tell me if im doing OK:

Steps:
1- Went to gpedit, set the local security policy to allows NTLM v2 access to the share (it was already that way so i didnt change it).
2- Create a new folder in win2k3, set it to shared and apply the permissions to everyone (read,modify,full control). I added the same permissions to my user too to be extra secure that it wasnt a permission fault.
3- Went to the router GUI, (the cifs option was off). Turned On, completed machine, user, etc, etc. Didnt use Domain as u said because im in a workgroup. The script set it in blank becouse i dont have any.
Saved, applied...


Results:
No logs in the events manager of windows and the router still says not mounted.

Also tried:
mount.cifs //192.168.1.2/routerfolder /tmp/servermount/ -o username=mauxiliar,password=****

witch resulted in:

mount error: cifs filesystem not supported by the system
Refer to the mount.cifs(Cool manual page (e.g.man mount.cifs)

Some people did it with that command or with the:
mount -t cifs
but with that im not getting any error messages and when ls to the mounting folder there is nothing inside... (in the server i have a couple of files)

Do I have to install something else to the win2k3 or the router for this to function?
I tried with XP too and didnt work either but i read that with xp this doenst work.

Any other tips??
Thanks for your time...

_________________
WRT54G v1.0 - DD-WRT v24 (05/20/0Cool std
soulstace
DD-WRT Guru


Joined: 04 Aug 2007
Posts: 6427

PostPosted: Sat Feb 09, 2008 16:59    Post subject: Reply with quote
Can you access the share from another Windows machine?

BTW, it does work on Windows XP. That is what I am using atm. You probably just need to disable Simple File Sharing and allow file sharing ports through the Windows firewall.
mauxiliar
DD-WRT User


Joined: 11 Sep 2007
Posts: 135
Location: 64.233.167.99 :-) not really! Santa Fe, Argentina

PostPosted: Sat Feb 09, 2008 17:36    Post subject: Reply with quote
Yes, from winxp if i go to start, run and type:
\\192.168.1.2\routerfolder it ask me for the username and password and enters with no problems...

Im now trying with XP but te router doenst mount it either...

I have the windows firewall disabled and the antivirus firewall too...

_________________
WRT54G v1.0 - DD-WRT v24 (05/20/0Cool std
soulstace
DD-WRT Guru


Joined: 04 Aug 2007
Posts: 6427

PostPosted: Sat Feb 09, 2008 17:47    Post subject: Reply with quote
Try importing this registry file into either machine. These are the settings I use. Restart your PC and try mounting your share again.

Do it from the web interface, by disabling CIFS, Apply. Then re-enable it again, Apply.



lsa.zip
 Description:
LSA settings confirmed working with CIFS

Download
 Filename:  lsa.zip
 Filesize:  452 Bytes
 Downloaded:  1224 Time(s)

mauxiliar
DD-WRT User


Joined: 11 Sep 2007
Posts: 135
Location: 64.233.167.99 :-) not really! Santa Fe, Argentina

PostPosted: Sat Feb 09, 2008 18:33    Post subject: Reply with quote
I imported the .reg in the win2k3, restarted, and nothing happened after disabling/enabling the cifs...
Im running out of pacience and luck... and my router is tired of being restored to defaults when changing firmwares!!

I'd even tested with a brand new installation of windows xp in a VMWare without firewall/av, etc and didnt worked, as expected! I imported the .reg to the VMWare too... :(

Do u have any other ideas? what is happening to my router????

Should I have any other config enabled? like jffs2 or something?

Do u know how to mount it from a command line?

Thanks again for all of your replies.

_________________
WRT54G v1.0 - DD-WRT v24 (05/20/0Cool std
soulstace
DD-WRT Guru


Joined: 04 Aug 2007
Posts: 6427

PostPosted: Sat Feb 09, 2008 18:42    Post subject: Reply with quote
It could be a few more things still.

a) Your computer still isn't allowing incoming NetBIOS traffic. A default installation in VMWare might have file sharing blocked by default. In this case you should run the Network Setup Wizard from the Windows Control Panel and make sure File Sharing is enabled. Note, the VM might be using a different IP address than the host.

b) Your firmware is bugged. Try Eko's 8790 nokaid because I can confirm CIFS works on it.
mauxiliar
DD-WRT User


Joined: 11 Sep 2007
Posts: 135
Location: 64.233.167.99 :-) not really! Santa Fe, Argentina

PostPosted: Sat Feb 09, 2008 19:02    Post subject: Reply with quote
Responses:
a) the VMWare machine with XP is reachable by \\192.168.1.6\share or by its name: \\vmwarexp\share from my others computers.
I'd configured a static IP. It has no firewall nor AV. Its like gods demands!!! jeje.
It has 1 username with password.
If I ping it from the telnet terminal from the router it replyes.

b) Im using Firmware: DD-WRT v24 RC-6 (01/18/0Cool std as u told me...
but id tried all the others!
My router is a Linksys WRT54G v1.0

Waiting for ideas!

_________________
WRT54G v1.0 - DD-WRT v24 (05/20/0Cool std
mauxiliar
DD-WRT User


Joined: 11 Sep 2007
Posts: 135
Location: 64.233.167.99 :-) not really! Santa Fe, Argentina

PostPosted: Sun Feb 10, 2008 13:47    Post subject: Reply with quote
Any other good soul with great ideas??
_________________
WRT54G v1.0 - DD-WRT v24 (05/20/0Cool std
soulstace
DD-WRT Guru


Joined: 04 Aug 2007
Posts: 6427

PostPosted: Sun Feb 10, 2008 14:31    Post subject: Reply with quote
Hello,

Have you managed to get any logs in the Event log yet? Logs showing the remote connections?

In Control Panel > Admin Tools > Local Security Policy

After you set up auditing, try to mount the share from another machine. Check the Event log and you'll see what I mean.

Control Panel > Admin Tools > Event Viewer > Security

If you are not getting any of these events from the router, something is still major broken.



audit.png
 Description:
Enable Auditing of Logon Events in Windows XP
 Filesize:  33.71 KB
 Viewed:  28352 Time(s)

audit.png


Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum