DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-04-20 07:17:13

Highlander
Member
Registered: 2008-03-03
Posts: 11

How to map to an IP instead of a directory ?

Hi all,

I read a post recently where the guy replying had an interesting sig with the following tip for getting the best out of the DNS 323 :-

MAP THE DNS USING ITS IP INSTEAD OF ITS PATHNAME

I found that line interesting and so started looking into how my mapping was configured. The mapping was done initially with the
utility software bundled with the DNS 323.

When I right-click on my DNS 323 drive icon and go to 'Properties', it looks like I may be mapped to a pathname rather than an IP,
so could anyone please tell me how to map it to the IP of the DNS rather than the pathname ?

I don't seem to be able to alter anything in the drive properties windows, and I just don't know where to look.

Also can anyone tell me why it's important to map it to the IP rather than leave it as it is ?

Many thanks for any help,

Highlander

Offline

 

#2 2008-04-20 07:50:45

hastings69
Member
Registered: 2008-01-04
Posts: 56

Re: How to map to an IP instead of a directory ?

Hi Highlander,
I am a complete newb, so others may well correct me here, but I was instructed by D-Link to map to a ipaddress rather than the path name so that the mapped drive becomes persistent, ie recurs when you switch off an on the computer and dlink. Also I had more problems with this in an XP machine, and easier with a vista machine.
So if you don't have either of those......? Mac/linux?

Using the easy search facility  (that comes with the DNS) only allows for the pathname and not the ip address.

Via windows explorer and map network drive, you can set the ipaddress such as //192.168.0.100/Volume_1  and add the logon name and password appropriate for your settings.

I have the D-link PDF with screen shots that they have emailed me, post here if you want me to email you it.

Anyways, others may be of further help,
Regards
Hastings69

Offline

 

#3 2008-04-20 08:16:50

hastings69
Member
Registered: 2008-01-04
Posts: 56

Re: How to map to an IP instead of a directory ?

that mapped drive should be \\   not // sorry

\\192.168.0.100\Volume_1

Go the noob factor!

Offline

 

#4 2008-04-20 08:39:06

Highlander
Member
Registered: 2008-03-03
Posts: 11

Re: How to map to an IP instead of a directory ?

Thanks for the offer Hastings, I've PM'd you my email address.

If anyone has got any instructions they feel they can write down, then I'd still like to hear from people just to complete the thread and make the
issue a bit more easy to find and solve using the search facility.

Cheers,

Highlander

Offline

 

#5 2008-04-20 11:04:01

jdoering
Member
Registered: 2008-04-10
Posts: 95

Re: How to map to an IP instead of a directory ?

"net use" command (from a command shell - cmd.exe) is the easiest way to get exactly what you want without having to describe complicated GUI flows. Off-hand I don't know any reason an IP would be better than a  name; you can have persistence with either.

Here's the help output for net use (from an XP machine; I'm not aware of any important differences on Vista):

Code:

C:\Documents and Settings\Jeff>net use /?
The syntax of this command is:


NET USE
[devicename | *] [\\computername\sharename[\volume] [password | *]]
        [/USER:[domainname\]username]
        [/USER:[dotted domain name\]username]
        [/USER:[username@dotted domain name]
        [/SMARTCARD]
        [/SAVECRED]
        [[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME

NET USE [/PERSISTENT:{YES | NO}]

Real examples:


Map S: drive to my DNS323 (named storage) by name (my PC username/password matches the one I configured on the DNS323) and force persistence (I think that's the default when using net use on XP anyway; but being explicit can't hurt)

Code:

C:\Documents and Settings\Jeff>net use /PERSISTENT:YES s: \\storage\Volume_1
The command completed successfully.

Same thing by IP address (unnecessary IMO):

Code:

C:\Documents and Settings\Jeff>net use /PERSISTENT:YES s: \\192.168.1.13\Volume_1
The command completed successfully.

Let Windows pick the mapped drive (instead of fixing it to S: ):

Code:

C:\Documents and Settings\Jeff>net use /PERSISTENT:YES * \\storage\Volume_1
Drive W: is now connected to \\storage\Volume_1.

The command completed successfully.

Same as the first option; but use a different username/password on the DNS323 versus PC (final * causes prompting for password)

Code:

C:\Documents and Settings\Jeff>net use /PERSISTENT:YES /user:dns323user s: \\192.168.1.13\Volume_1 *
Type the password for \\192.168.1.13\Volume_1:
The command completed successfully.

Look at what's mapped (note the confirmation that persistence is the default on my machine):

Code:

C:\Documents and Settings\Jeff>net use
New connections will be remembered.


Status       Local     Remote                    Network

-------------------------------------------------------------------------------
             S:        \\192.168.1.13\Volume_1   Microsoft Windows Network
             W:        \\storage\Volume_1        Microsoft Windows Network
             X:        \\storage\Volume_1        Microsoft Windows Network
Disconnected Y:        \\srv1\s$                 Microsoft Windows Network
             Z:        \\storage\Volume_1        Microsoft Windows Network
Disconnected           \\srv1\c$                 Microsoft Windows Network
                       \\storage\Volume_1        Microsoft Windows Network
The command completed successfully.

Finally; unmapped something (and remove it from remembered mappings), * instead of "s:" would delete all mappings:

Code:

C:\Documents and Settings\Jeff>net use s: /d
s: was deleted successfully.

Hope this helps.

-Jeff

Offline

 

#6 2008-04-20 11:08:54

vedeja
Member
Registered: 2008-02-21
Posts: 161

Re: How to map to an IP instead of a directory ?

jdoering wrote:

(my PC username/password matches the one I configured on the DNS323)

I don't have a password set for my XP user. How can I make that match whatever user I create in the DNS323?

PS I get System Error 1351 when attemting to map using NET USE.

Last edited by vedeja (2008-04-20 11:11:41)


¤ 2 x 500 GB Samsung Spinpoint ¤ FFP 0.5 ¤ Custom fanscript ¤
¤ Lighttpd 1.4.19 ¤ Transmission 1.50 ¤ FW 1.07 ¤

Offline

 

#7 2008-04-20 19:54:13

fordem
Member
Registered: 2007-01-26
Posts: 1938

Re: How to map to an IP instead of a directory ?

Just a quick comment - you can map a drive to a share, and you can specify that share using either it's ip address, or it's NetBIOS name - but to describe these as mapping to an ip and mapping to a pathname would be incorrect and should be avoided so as to reduce confusion.

If you want to experience where I'm coming from - try to map a drive to the ip address of your router - it's a valid ip address, you can ping it, but since there is no share on that device, you won't be able to map a drive to it, in a similar fashion, try to map a drive to the ip address of a DNS-323 with two disks - you can't - you will be forced to choose between the two shares that are available - Volume_1 & Volume_2.

I'll come back to the pathname a bit later.

Using what is known as UNC or Universal Naming Convention - you can map the drive to the share using it's NetBIOS name or it's ip address, the syntax is \\servername\share or \\ipaddress\share for - example \\DNS-323\Volume_1 or \\192.168.0.32\Volume_1 - both of these have advantages & disadvantages.

Using the ip address works well if you are using static ip addresses, but if your ip address is set by DHCP, it may change and then your drive map will fail - using the NetBIOS name is one way of getting around this, but in mixed OS environments it can be problematic depending on the versions of SAMBA etc.

Now - path names - I have not seen it discussed much here, but a drive can be mapped to a folder within a share, rather than a share itself - and this would take the form of \\server\share\path - or - \\server\share\pathname - for example - if I created the following folder structure on my DNS-323 ....

On Volume_1, I create a folder called users, and within users, I create folders for each user - user1, user2, user3, etc.

A drive can now be mapped to \\DNS-323\Volume_1\users\user1 and from that system there would be no direct access to the user2 & user3 folders - (please note that this should be considered for convenience and not security, because if the drive map is done to high up in the folder structure, the user has access to all the "lower folders")

As I said before, I point this out simply to suggest the use of correct terms and hopefully reduce confusion

Offline

 

#8 2008-04-20 19:56:09

fordem
Member
Registered: 2007-01-26
Posts: 1938

Re: How to map to an IP instead of a directory ?

vedeja wrote:

jdoering wrote:

(my PC username/password matches the one I configured on the DNS323)

I don't have a password set for my XP user. How can I make that match whatever user I create in the DNS323?

PS I get System Error 1351 when attemting to map using NET USE.

If you don't have a password set for XP, you may want to consider having open unsecured access to the DNS-323 also - Windows networking will probably refuse to let you configure passwords for network access if there is no way to authenticate the user at login.

Offline

 

#9 2008-04-20 20:34:45

sjmac
Member
Registered: 2008-01-21
Posts: 222

Re: How to map to an IP instead of a directory ?

fordem wrote:

I point this out simply to suggest the use of correct terms and hopefully reduce confusion

:-/ I'm confused ...

I thought that "mapping a drive" meant that a drive letter was assigned on the client PC to use as a shortcut to some network share. See for example the Tools > Map Network Drive option in Windows File Explorer, or type "map a drive" or "mapping a drive" in to Help and Support in Windows.

For example, at work my H: drive on my client is mapped to a network share on a server, so I can open h: to see my files instead of having to open \\server\users\bing

When you configure a folder to be shared by the DNS323, like your users1 example, I thought that was "creating a share"?

I thought that using a UNC path like \\myDns323\myFiles or \\192.168.0.10\myFiles was "using a share", because I haven't created a drive letter mapping?

== edit ==
cd h: -> open h:
as Fordem noted.

Last edited by sjmac (2008-04-20 21:49:54)

Offline

 

#10 2008-04-20 20:39:58

vedeja
Member
Registered: 2008-02-21
Posts: 161

Re: How to map to an IP instead of a directory ?

fordem wrote:

If you don't have a password set for XP, you may want to consider having open unsecured access to the DNS-323 also - Windows networking will probably refuse to let you configure passwords for network access if there is no way to authenticate the user at login.

I think I already have by setting network access to R/W for ALL. See this post http://dns323.kood.org/forum/t2067-Access-denied.html
This occurred just after a reboot.


¤ 2 x 500 GB Samsung Spinpoint ¤ FFP 0.5 ¤ Custom fanscript ¤
¤ Lighttpd 1.4.19 ¤ Transmission 1.50 ¤ FW 1.07 ¤

Offline

 

#11 2008-04-20 21:30:25

fordem
Member
Registered: 2007-01-26
Posts: 1938

Re: How to map to an IP instead of a directory ?

sjmac - I'm not certain that I understand your confusion.

It's exactly as you say - the "share" is created on the device that stores the data - if you like we can call that the "server", and it may be used directly as a share - \\<server-name>\share or \\<server-ip-address\share, or  you can map a drive letter to it and call it, as in your example H: - something which is primarily done for ease of use, especially when the user is not familiar with shared resources.

Whether or not you choose to map a drive letter is optional, but, and this is my point, strictly speaking, you cannot map a drive letter to either an ip address, or a pathname - you MUST map to a share.

First you create the share and then you choose if you want to use it directly or if you want to map a drive letter to it.

Edit..

Ore more thing - and again strictly speaking CD (or CHDIR) is a command that allows you to navigate a folder or directory structure - it does work when switching drives, but so does entering the drive letter itself

Last edited by fordem (2008-04-20 21:32:19)

Offline

 

#12 2008-04-20 21:42:29

fordem
Member
Registered: 2007-01-26
Posts: 1938

Re: How to map to an IP instead of a directory ?

vedeja wrote:

fordem wrote:

If you don't have a password set for XP, you may want to consider having open unsecured access to the DNS-323 also - Windows networking will probably refuse to let you configure passwords for network access if there is no way to authenticate the user at login.

I think I already have by setting network access to R/W for ALL. See this post http://dns323.kood.org/forum/t2067-Access-denied.html
This occurred just after a reboot.

I saw that post - but maybe my post wasn't clear - there were two separate statements, and the one I want to expand on right now is the second one.

Windows networking will probably refuse to let you configure passwords for network access if there is no way to authenticate the user at login.

Where I'm coming from is that Windows may know the username and password for the share, but refuse YOU access because it does not know who YOU are, since it did not authenticate YOU at login - it is quite likely that Windows is what is denying you access to the network rather the DNS-323 denying you access to the share.

I'm suggesting this because I have seen Windows do it in a pure Windows environment - the user on the client has a password, the username & password match those on a Windows Server, but because the user is not required to enter a password when Windows starts, he is denied access to the network.

You may have to configure password security AND require a password at powerup to get your network functional

Offline

 

#13 2008-04-20 21:53:04

sjmac
Member
Registered: 2008-01-21
Posts: 222

Re: How to map to an IP instead of a directory ?

fordem wrote:

sjmac - I'm not certain that I understand your confusion.

From your reply I guess my understanding wasn't wrong and I am using the right names for things. Your "correct terms ... to reduce confusion" post suggested to me that mapping a drive was something else when I read it.

Offline

 

#14 2008-04-20 21:59:14

vedeja
Member
Registered: 2008-02-21
Posts: 161

Re: How to map to an IP instead of a directory ?

fordem wrote:

You may have to configure password security AND require a password at powerup to get your network functional

Thanks fordem for your advices, but it did not help me to set a windows user/pwd aligned with that of the DNS323. Besides (which really annoys me) this has worked like a charm up until the other day when I upgraded my PHP on the web server. I have restored the replaced PHP files but that makes no difference. I follow your idea on Windows not wanting to authenticate because of "no" credentials, and I really wish that could have been it. Damn, my stuff is in a cage and I have no key...

BTW, sorry TS, I hope it's OK that two topics are running in this thread.


¤ 2 x 500 GB Samsung Spinpoint ¤ FFP 0.5 ¤ Custom fanscript ¤
¤ Lighttpd 1.4.19 ¤ Transmission 1.50 ¤ FW 1.07 ¤

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB