Connecting to DNS-323 & W7 shares [SOLVED]

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read this

Connecting to DNS-323 & W7 shares [SOLVED]

Postby racefan20 on Mon Apr 30, 2012 4:10 am

Just installed the new LMDE w/ Cinnamon last night and got everything working just fine so far except a couple network access issues.

I'm trying to access a D-link DNS-323 network storage unit and after I type in the password, the PW prompt just keeps coming up over and over again. I can log into the config pages through firefox, but that's it.

Another issue, which may be related, is that after following the steps in the "Simple File Share" thread, from my W7 PC, after putting in the username and PW for the Linux box, it prompts me for a network password which I've never seen before. I did some searching for solutions and one thing I read said that it had to do with the "authentication" on the side of the server that was being connected to that was the issue. This is what makes me think that both issues might be linked to authentication issues.

This is my first full Linux install, but I have had an old Ubuntu version installed on a windows PC for quite some time and was able to access the DNS-323 from it as well as connecting to it from my W7 PC.

Any suggestions/help is welcomed :)

Todd
Last edited by racefan20 on Wed May 02, 2012 4:58 pm, edited 1 time in total.
racefan20
Level 1
Level 1
 
Posts: 17
Joined: Mon Apr 30, 2012 2:15 am

Linux Mint is funded by ads and donations.
 

Re: Connecting to DNS-323 & W7 shares

Postby altair4 on Mon Apr 30, 2012 6:35 am

Need some basics on how your Mint machine is set up sp please post the output of the following commands:
Code: Select all
testparm -s

Code: Select all
net usershare info --long

Code: Select all
hostname

Code: Select all
smbtree
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 13
Level 13
 
Posts: 4664
Joined: Tue Feb 03, 2009 10:27 am

Re: Connecting to DNS-323 & W7 shares

Postby racefan20 on Mon Apr 30, 2012 7:06 am

Here's the requested info...

[testparm -s]
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
workgroup = THEBUNKER
server string = %h server
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb

[homes]
comment = Home Directories
valid users = %S
create mask = 0700
directory mask = 0700
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers

[net usershare info --long]
[Temp-G]
path=/media/Page File/Temp
comment=
usershare_acl=Everyone:F,
guest_ok=n

[hostname]
e8400-mint

[smbtree]
For some reason this is not giving me anything. It was working earlier when I tried. I'll post it if I can get it to work again.

The shared folder is NTFS.

Thanks for taking the time to look into this altair4.
racefan20
Level 1
Level 1
 
Posts: 17
Joined: Mon Apr 30, 2012 2:15 am

Re: Connecting to DNS-323 & W7 shares

Postby altair4 on Mon Apr 30, 2012 7:41 am

As a side question: Only Debian based mint has the [homes] section in smb.conf by default so what version of Mint are you using, the Main edition or the Debian edition? It matters because the Debian based version needs a little work to bring it up to the level of the Main edition.

The next question is what is this:
path=/media/Page File/Temp

That's not really the pagefile from Windows is it? That's the equivalent of a Linux swap partition and one doesn't really share ( or in the case of Linux really mount ) a pagefile.

Your share requires authentication so you need to add a user to Linux and then add that user to the samba database:
Code: Select all
sudo smbpasswd -a user-name
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 13
Level 13
 
Posts: 4664
Joined: Tue Feb 03, 2009 10:27 am

Re: Connecting to DNS-323 & W7 shares

Postby racefan20 on Mon Apr 30, 2012 8:03 am

Yes, I am using the Debian version.

Lol, yes that used to be a windows page file partition way back some time ago... just never changed the name.

Ok, I have added my username to the samba database.

smbtree still gives me nothing now.. is this of any significance?

I'm on my way out for a few hours, if you need any more info I'll get to it then.

Thanks
racefan20
Level 1
Level 1
 
Posts: 17
Joined: Mon Apr 30, 2012 2:15 am

Re: Connecting to DNS-323 & W7 shares

Postby altair4 on Mon Apr 30, 2012 8:34 am

smbtree still gives me nothing now.. is this of any significance?

smbtree is a samba client command that will show all the the hosts and their shares on your lan including the one on the Mint machine itself so that is not a good thing.

Assumming you already went through the "Debian" section of this Howto: viewtopic.php?f=42&t=23169&p=315218#p315218

I would suggest you run through the following checklist and see if you can get smbtree to produce some output:

Samba Browsing Problems Checklist: viewtopic.php?f=42&t=88146&start=0

If the samba client can't see the Samba Server on the same machine then no one else will see it either. We need to get smbtree to produce some output.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 13
Level 13
 
Posts: 4664
Joined: Tue Feb 03, 2009 10:27 am

Re: Connecting to DNS-323 & W7 shares

Postby racefan20 on Mon Apr 30, 2012 6:23 pm

I followed all the steps in the first link before I posted this thread, so I went on to the second link.

Here is the output from nmap to this computer...

Starting Nmap 5.21 ( http://nmap.org ) at 2012-04-30 18:11 EDT
Nmap scan report for e8400-mint.lan (192.168.1.135)
Host is up (0.0000050s latency).
Not shown: 1989 closed ports
PORT STATE SERVICE
111/tcp open rpcbind
139/tcp open netbios-ssn
445/tcp open microsoft-ds
68/udp open|filtered dhcpc
111/udp open rpcbind
123/udp open ntp
137/udp open netbios-ns
138/udp open|filtered netbios-dgm
631/udp open|filtered ipp
1900/udp open|filtered upnp
5353/udp open|filtered zeroconf

Nmap done: 1 IP address (1 host up) scanned in 1.27 seconds

When I try to map to my W7 computer or the DNS-323, I get this message..

Starting Nmap 5.21 ( http://nmap.org ) at 2012-04-30 18:13 EDT
Warning: 192.168.1.137 giving up on port because retransmission cap hit (6).

And I have to kill the action in order to close terminal.

smbtree is still giving nothing, but I can now access this linux box from my W7 computer, so we are making some progress.

Thanks again for the help it is appreciated :)
racefan20
Level 1
Level 1
 
Posts: 17
Joined: Mon Apr 30, 2012 2:15 am

Re: Connecting to DNS-323 & W7 shares

Postby altair4 on Mon Apr 30, 2012 7:14 pm

I've got to shut down for the day. Still don't understand why smbtree is not running properly.

Maybe you installed Samba4 by mistake.

Maybe nmbd isn't running:
Code: Select all
sudo service samba restart


Maybe firewalls are in the way - disable them all and see if smbtree will run.

Note to any forum administrators who may peruse this topic: It doesn't belong in the Main Edition part of the forum. Debian based Mint is squirrelly so you might want to move it to the other forum.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 13
Level 13
 
Posts: 4664
Joined: Tue Feb 03, 2009 10:27 am

Re: Connecting to DNS-323 & W7 shares

Postby racefan20 on Tue May 01, 2012 2:12 am

When I restart samba [sudo service samba restart], it shows both nmbd and smbd starting...
Code: Select all
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd smbd.

After finding a page that shows all the smbtree options, I tried [smbtree -N] and got this..
Code: Select all
THEBUNKER
   \\I7-2600K             
   \\E8400-MINT           e8400-mint server
      \\E8400-MINT\Temp-G            
      \\E8400-MINT\IPC$              IPC Service (e8400-mint server)
      \\E8400-MINT\print$            Printer Drivers
   \\DLINK-80D24D         DNS-323
      \\DLINK-80D24D\lp                USB Printer
      \\DLINK-80D24D\IPC$              IPC Service (DNS-323)
      \\DLINK-80D24D\Volume_1          
      \\DLINK-80D24D\web_page          Enter Our Web Page Setting

Then i tried just hitting enter without typing the password when it prompts for it and it gives me the same output as above, but nothing when I type in the password.

How do I go about adding the password again? I believe that it prompted me for a PW when I added my username to sambashare orginally, but if it try it again it doesn't.
racefan20
Level 1
Level 1
 
Posts: 17
Joined: Mon Apr 30, 2012 2:15 am

Re: Connecting to DNS-323 & W7 shares

Postby altair4 on Tue May 01, 2012 8:51 am

For the NAS, open a terminal and type:
Code: Select all
nautilus smb://DLINK-80D24D/Volume_1

If it's expecting credentaials:
Code: Select all
nautilus smb://user-name@DLINK-80D24D/Volume_1

You may have to play around with the capitilization of the DLINK-80D24D part and if it doesn't work do it by ip address:
Code: Select all
nautilus smb://192.168.0.100/Volume_1
nautilus smb://user-name@192.168.0.100/Volume_1


For the Win7 machine:

Run smbtree with the username Win7 expects from the client:
Code: Select all
smbtree -U win7-user-name

If you now get a list of the Win7 shares then access the share the same way you did the NAS above:
Code: Select all
nautilus smb://win7-user-name@I7-2600K
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 13
Level 13
 
Posts: 4664
Joined: Tue Feb 03, 2009 10:27 am

Re: Connecting to DNS-323 & W7 shares

Postby racefan20 on Tue May 01, 2012 5:36 pm

I tried all the methods in the previous post and they all just kept prompting me for the PW over and over again.

The W7 computer connects to the linux box without any issues and smbtree is working as it should by using a PW now.

I did a little searching and found a debug mode so I tried [smbclient --debuglevel=1 //192.168.1.110/Volume_1] and it gave me this...
Code: Select all
Domain=[THEBUNKER] OS=[Unix] Server=[Samba 3.0.24]
Server not using user level security and no password supplied.
Server requested LANMAN password (share-level security) but 'client lanman auth = no' or 'client ntlmv2 auth = yes'
tree connect failed: NT_STATUS_ACCESS_DENIED

When it says "server not using user level security", is it reffering to this line [security = user] because in smb.conf it was set to be ignored. I did enable it and restart samba but it still gave the same error in debug mode. One thing I did find odd is that the line did not show up when I ran [testparm -s]. Should it show up there?

What password is it referring to? How do I add this PW?

i tried adding [client lanman auth = yes] to the smb.conf and got the same results after restarting samba. That triggered something in my memory about getting this to work on the old ubuntu, so I fired it up and that's exactly what I added to the smb.conf last time to get it to work. Maybe I need to reboot or log off.

It still looks like it's an authentication issue that's the root of the problem.

Thanks again for the help ;)
racefan20
Level 1
Level 1
 
Posts: 17
Joined: Mon Apr 30, 2012 2:15 am

Re: Connecting to DNS-323 & W7 shares

Postby altair4 on Tue May 01, 2012 6:12 pm

The "server" in this case is the NAS device not your linux box.

The issue seems to be the version of samba that the NAS is using ( Samba 3.0.24 ). That's Win98's time frame and it's expecting the client to be Win98 not Linux.

The error message supplied the answer ( and it should have been displayed from smbtree ):

In the [global] section add the following lines:
Code: Select all
client lanman auth = Yes
lanman auth = Yes

Then restart samba.

BTW,
When it says "server not using user level security", is it referring to this line [security = user] because in smb.conf it was set to be ignored. I did enable it and restart samba but it still gave the same error in debug mode. One thing I did find odd is that the line did not show up when I ran [testparm -s]. Should it show up there?

** The server is the NAS
** "security = user" is the default in Linux- that's why it's commented out (#) in smb.conf
** "testparm -s "only shows those things that deviate from the default.

smb.conf is used to add to or modify the default settings of how samba works. It is not the defaults themselves nor is a complete list of those defaults.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 13
Level 13
 
Posts: 4664
Joined: Tue Feb 03, 2009 10:27 am

Re: Connecting to DNS-323 & W7 shares

Postby racefan20 on Tue May 01, 2012 7:09 pm

Ok, I've added those lines to the smb.conf, so it looks like this..
Code: Select all
   netbios name = e8400-mint
   name resolve order = bcast host lmhosts wins
   client lanman auth = yes
   lanman auth = yes

But I'm still get the same output from the debug mode :(
Code: Select all
Domain=[THEBUNKER] OS=[Unix] Server=[Samba 3.0.24]
Server not using user level security and no password supplied.
Server requested LANMAN password (share-level security) but 'client lanman auth = no' or 'client ntlmv2 auth = yes'
tree connect failed: NT_STATUS_ACCESS_DENIED

Is it ignoring this line "client lanman auth = yes" completely or am I interpreting the output wrong?

Sorry for being a pain, your help is appreciated as I really want to make full use of my Linux box.
racefan20
Level 1
Level 1
 
Posts: 17
Joined: Mon Apr 30, 2012 2:15 am

Re: Connecting to DNS-323 & W7 shares

Postby altair4 on Wed May 02, 2012 7:19 am

I don't have an explanation that fits all your symptoms - especially things like this:
smbtree is still giving nothing, but I can now access this linux box from my W7 computer, so we are making some progress.

If smbtree had no output then the Win7 box never would have found it.
[smbtree]
For some reason this is not giving me anything. It was working earlier when I tried.

Smbtree ( which calls smbclient ) is pretty much a binary thing - it will always work or produce errors - this it works one minute and then not issue I have no explanation.

My only suggestion is to use a method that was used when Win98 was king:

Make sure the following package is installed:
Code: Select all
sudo apt-get install cifs-utils

Make a mount point for the NAS:
Code: Select all
sudo mkdir /NAS

Then issue the following command to mount the NAS:
Code: Select all
sudo mount -t cifs //192.168.1.110/Volume_1 /NAS -o username=user_name,password=xxxx,uid=1000,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777


** Using ip addresses rather than host names works around a possible netbios name - to - ip address problem you may be having.
** Passing credentails in one pass eliminates the credentials cross-talk between client and server.

Sorry, it's the best I've got at the moment.

EDIT:
Is it ignoring this line "client lanman auth = yes" completely or am I interpreting the output wrong?

Run "testparm -s" again and see if the line is present. If it is not then it's either in the wrong section or you inadvertently commented it out by placing a "#" or ";" in front of it.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 13
Level 13
 
Posts: 4664
Joined: Tue Feb 03, 2009 10:27 am

Re: Connecting to DNS-323 & W7 shares

Postby racefan20 on Wed May 02, 2012 4:57 pm

I tried placing [client lanman auth = yes] in several different spots in the smb.conf and none of them worked til after adding [client ntlmv2 auth = no] as well. I know this makes no sense because according to samba.org that is suppose to be the default setting but now they both show when i run "testparm -s". Now I can finally access the NAS via the network :)

I also discovered that I can access the NAS via ftp through the location bar after I specified a folder rather than just "volume_1". After I type in the user/password, it tells that it can't display the folder but it shows up mounted in my removable drives where I can cut/copy/paste to and from the drive without any issues.

Any advantages to one over the other ftp vs samba?

For what ever reason it still hangs with that same message about giving up when I try to map the NAS or the W7 computer, but since it works now I'm not too concerned.

Now I just need to figure out how to get wine installed. I see several methods posted in the forums, do you have a preferred/easy way of doing it?

Thanks again for you help :)
racefan20
Level 1
Level 1
 
Posts: 17
Joined: Mon Apr 30, 2012 2:15 am

Re: Connecting to DNS-323 & W7 shares [SOLVED]

Postby altair4 on Wed May 02, 2012 5:36 pm

I tried placing [client lanman auth = yes] in several different spots in the smb.conf and none of them worked til after adding [client ntlmv2 auth = no] as well. I know this makes no sense because according to samba.org that is suppose to be the default setting but now they both show when i run "testparm -s". Now I can finally access the NAS via the network

According to the samba documentation the default for client ntlmv2 auth is no.

But Debian, Ubuntu, Mint, and I suspect most distros have the default set to yes:
testparm -sv /dev/null | grep "client NTLMv2 auth"
Load smb config files from /dev/null
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Loaded services file OK.
Server role: ROLE_STANDALONE
client NTLMv2 auth = Yes

It's the way the client communicates passwords with the NT branch of Windows and modern Samba servers.

I don't use Wine so I can't be of assistance with that, although I wasn't much help with this issue either other than comic relief.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 13
Level 13
 
Posts: 4664
Joined: Tue Feb 03, 2009 10:27 am

Linux Mint is funded by ads and donations.
 

Return to Other networking topics

Who is online

Users browsing this forum: No registered users and 3 guests