LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-24-2003, 01:29 AM   #1
Sonik21
LQ Newbie
 
Registered: Feb 2003
Location: East Coast
Distribution: OpenSuse 11.1 x64,Debian 5.0,PCBSD 7.1
Posts: 22

Rep: Reputation: 15
Samba And Windows 2k Pro


im running RH8 and samba 2.2.7. I have no problem connecting to my linux box from my win2k machine. but when i try to access my win2k machine from my linux machine i get NT_STATUS_ACCESS_DENIED.

can anyone help me out with this one. it has to be something with win2k not recognizing the user/pass but damned if i can fix it. im a little confused about the smbuser and smbpasswd files.

can samba be directed to send a different user/pass combo to windows instead of sending the one thats actually logged in ?
 
Old 02-24-2003, 10:30 AM   #2
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
Yes, it can:

smbmount //Server/Share /localshare -o username=administrator

You can also supply a password= and have it run through but if you're remotely concerned about security you won't do that, 'cos your password will show up in your process list.

Slick.
 
Old 02-24-2003, 06:35 PM   #3
TexasDex
Member
 
Registered: Feb 2003
Location: The Attic. Nowhere near Texas.
Distribution: Gentoo, Kubuntu, formerly LFS, SuSE, and RedHat
Posts: 133

Rep: Reputation: 15
Another solution, of course, would be to make the linux and w2k password files match.
 
Old 02-25-2003, 03:12 AM   #4
Sonik21
LQ Newbie
 
Registered: Feb 2003
Location: East Coast
Distribution: OpenSuse 11.1 x64,Debian 5.0,PCBSD 7.1
Posts: 22

Original Poster
Rep: Reputation: 15
thanks for the help i think i have it fixed now
 
Old 02-25-2003, 08:09 AM   #5
scottpioso
Member
 
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Windows 10 prior Red Hat User
Posts: 473

Rep: Reputation: 30
Hi there guys,

I was having a similiar problem but it was connecting to the windows box from Linux. I was getting denied from the Windows box.

"added interface ip=10.0.0.3 bcast=10.0.0.255 nmask=255.255.255.0
Got a positive name query response from 10.0.0.2 ( 10.0.0.2 )
Password:

Domain=[PIOSOHP] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME"

I have been unable to figure out what the problem is. Got any ideas? Thanks.
 
Old 02-25-2003, 09:56 AM   #6
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
This is most often caused by incorrect case in your share name.

Ensure that when you're not doing something like :

//Server/Share

when it should be

//Server/share

Share names are case sensitive. If you're not sure what it should be you can do :

smbclient -L //Server -U username

[root@randalf root]# smbclient -L //Binky -U administrator
added interface ip=192.168.10.15 bcast=192.168.10.255 nmask=255.255.255.0
Got a positive name query response from 192.168.10.99 ( 192.168.10.99 )
Password:
Domain=[DBT] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]

Sharename Type Comment
--------- ---- -------
E$ Disk Default share
IPC$ IPC Remote IPC
print$ Disk Printer Drivers
I$ Disk Default share
Downloads Disk
HPLaserJ Printer HP LaserJet 6P/6MP PostScript
Mp3 Disk
OmniBack Disk
Percy Printer HP LaserJet 6MP
ADMIN$ Disk Remote Admin
H$ Disk Default share
C$ Disk Default share

in this example you if you wanted to connect to the Downloads share, you MUST make sure it has a capital D.

Slick.
 
Old 02-25-2003, 01:03 PM   #7
scottpioso
Member
 
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Windows 10 prior Red Hat User
Posts: 473

Rep: Reputation: 30
Okay, I got this far, however, I think part of the problem is I'm not a member of the Windows workgroup. If you see there are two workgroups named. I need to have the Linux box part of the Windows workgroup in order to see the Linux box from Windows, correct? Well, how can I join the Windows workgroup from Linux? I need to be a member of the PIOSOHP workgroup.

In addition, I wish to make the Linux box the server in this case, NOT the windows box. How will I be able to do that?


Password:
Domain=[PIOSOHP] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]

Sharename Type Comment
--------- ---- -------
IPC$ IPC Remote IPC
D$ Disk Default share
print$ Disk Printer Drivers
HPOfficeJet Printer HP OfficeJet R40
F$ Disk Default share
ADMIN$ Disk Remote Admin
Shares Disk
C$ Disk Default share

Server Comment
--------- -------
ASUSA7V266-E-PI
HP-PAVILION-PIO

Workgroup Master
--------- -------
MYGROUP ASUSA7V266E
PIOSOHP HP-PAVILION-PIO
[root@ASUSA7V266E root]#

Last edited by scottpioso; 02-25-2003 at 01:19 PM.
 
Old 02-25-2003, 03:55 PM   #8
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
well changing the wokgroup is easy... use a text editor, such as VI, Emacs, pico..... and open /etc/samba/smb.conf... next look for the option "workgroup" it will look something like

workgroup = mygroup

change mygroup to the workgroup you want it to be in

as for shares nd using it as a server there are countless ways to do it you need to be alittle more specific dou you want it to be the pdc, or simply a peer

if you look at
man smb.conf it gives you a lot of info
 
Old 02-25-2003, 04:07 PM   #9
scottpioso
Member
 
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Windows 10 prior Red Hat User
Posts: 473

Rep: Reputation: 30
It's a peer-to-peer home network that I'm trying to setup the Linux box as a windows file server.

Thanks for the suggestion about the smb.conf file. I found it and edited it. Thanks.

However, I keep running into the same god darn problem.

[root@ASUSA7V266E samba]# smbclient //hp-pavilion-pio/scott -U scott
added interface ip=10.0.0.3 bcast=10.0.0.255 nmask=255.255.255.0
Got a positive name query response from 10.0.0.2 ( 10.0.0.2 )
Password:
Domain=[PIOSOHP] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

What I'm trying to do is connect to the Windows machine from Linux. Why can't I?

And what do I need to do to connect to the Linux box from the Windows box?

Last edited by scottpioso; 02-25-2003 at 04:26 PM.
 
Old 02-25-2003, 07:31 PM   #10
scottpioso
Member
 
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Windows 10 prior Red Hat User
Posts: 473

Rep: Reputation: 30
Well, gentlemen,

I got it up and running!! Now all I have to do is figure out how to get other users besides myself on the Windows box authenticated on Linux. Do I have to have the users from Windows as users on LInux?
 
Old 02-25-2003, 09:41 PM   #11
Sonik21
LQ Newbie
 
Registered: Feb 2003
Location: East Coast
Distribution: OpenSuse 11.1 x64,Debian 5.0,PCBSD 7.1
Posts: 22

Original Poster
Rep: Reputation: 15
you have to add each user that can log in on your windows box to your smbpasswd file.
 
Old 02-25-2003, 10:47 PM   #12
scottpioso
Member
 
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Windows 10 prior Red Hat User
Posts: 473

Rep: Reputation: 30
But do the users have to be users on the Linux box itself or just in the smbpasswd file? I'm kind of tired now as I've been working on it all day. I'm putting it to bed for this evening and I'm going to work on it again tomorrow. Thanks.
 
Old 02-25-2003, 11:23 PM   #13
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
For security reasons it's generally a good idea to have all samba users be valid linux accounts, and I believe if I recall there is a default option in smb.conf that sets synching of linux users and samba users, I believe with the default set you have to have a linux account for each user in smbpasswd so if you wish to only create entries to smbpasswd I would look at the smb.conf file

I believe this entry is the one I am thinking of but someone may have to confirm this

unix password sync = true

well good luck
 
Old 02-26-2003, 09:50 AM   #14
scottpioso
Member
 
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Windows 10 prior Red Hat User
Posts: 473

Rep: Reputation: 30
Well guys,

As I may or may not have said, I decided to start over from scratch here and reinstall Linux. Maybe it was a drastic step but what the heck? This is only at home, not at work. Who cares? Anyway, we'll see what happens after all of this. Thanks to everyone that has helped me so far!!
 
Old 02-26-2003, 05:39 PM   #15
scottpioso
Member
 
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Windows 10 prior Red Hat User
Posts: 473

Rep: Reputation: 30
Hello again guys,

Now I'm stuck again. I've got users in my smb.conf file but anytime I try to connect to Linux from Windows, I get an Enter Network Password message on the screen. If I just press OK, I just go right through. But why is this happening? Secondly, if I enter my name or any other user's name, I get rejected. PLEASE HELP GUYS!!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gentoo -> windows xp pro samba problems mangolicious Linux - Networking 3 10-03-2004 10:28 AM
Fedora Core2, SAMBA and Windows XP pro joncolby Linux - Networking 1 06-19-2004 06:23 AM
Samba and Windows XP Pro hojan Linux - Software 7 06-13-2004 06:42 AM
Windows XP Pro and Samba mankey Linux - Networking 2 04-29-2004 05:57 AM
Samba Slackware 8.1 to Windows XP Pro oulevon Linux - Networking 4 01-26-2003 09:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration