LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-02-2001, 10:49 AM   #1
tstuhr
LQ Newbie
 
Registered: Oct 2001
Posts: 7

Rep: Reputation: 0
Question samba and win2000


i am trying to get samba to work. i have a redhat7 box with samba running on it and a windows 2000 workstation. both boxes are hooked to a switch and i can ping both boxes from the other, so they can communicate. on the windows 2000 box, i do a search for the redhat7 box by ip address, then i click on the ip address and try to login, it comes up with a login box, but i keep getting invalid username or password. i have the same user on both machines defined with the same passwords. Does anyone just have "barbones" smb.conf file that will let me hook a win2000 box into a linux box?
 
Old 10-02-2001, 02:41 PM   #2
te_conway
Member
 
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182

Rep: Reputation: 30
I'm not familiar with w2K and you don't say if your logging into samba as a PDC or not.

I've had login problems with win98. Basically the lack of a nameserver and timing of samba has cause problems. If you can ping the w2k from the linux box using the netbios name you should be able to login. If you can only ping by ip address, add the ip to the /etc/hosts file and restart samba.

It should look something like this:

127.0.0.1 linux localhost.localdomain localhost
192.168.0.2 w2000
 
Old 10-02-2001, 02:41 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
this is my smb.conf file... well most of it.

it really is sooo much EASIER to start from scratch. if nothing else but for the fact that the result looks vastly less scary.

[global]
security = user
preserve case = yes
null passwords = yes
encrypt passwords = no
workgroup = swingyourpants
server string = simon
socket options = TCP_NODELAY IPTOS_LOWDELAY
log file = /var/log/samba/%m.log
mangle case = yes
create mask = 0777
default case = lower
hosts allow = 10.0.0.2 10.0.1.2 10.0.0.1 10.0.1.1
directory mask = 0777
wins support = yes

[mp3]
path = /mp3
comment = mp3
writeable = yes
read only = no
public = yes

Oh btw.. you HAVE done the password registry hack haven't you?
 
Old 10-03-2001, 01:17 AM   #4
Linuxchallenged
LQ Newbie
 
Registered: Jun 2001
Location: Frederick,MD
Distribution: Caldera Open linux,RH 7.1
Posts: 14

Rep: Reputation: 0
You have to create a samba user..with a psswd in the smbpasswd file.

The command is................ah too easy

Oh yeah with Win2K

encrypt passwords=yes
save the reg hack!
 
Old 10-03-2001, 02:09 AM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Yes if you are getting the prompt when you try to access the shares on the linux box you are almost there. I guess you can see the linux box in network neighborhood.

like was stated you need to add the user you are going to login with to your /etc/passwd file and then use this command


smdadduser unixusername:ntusername

you will be prompted for a password

getting back the other way is gonna be a different story, I would just enable the guest account on win2k if you are not worried about security, or add a user account, share to the new account and then access it.


mkdir /lan/win2k

mount -t smbfs //win2k/share /lan/win2k

then enter password when prompted

or for other user accounts do this one

mount -t smbfs //win2k/share /lan/win2k -o username=foobar,password=guessit

Or you can do the password hack if you want.

some of my smb.conf file

# Global parameters
[global]
workgroup = HOME
netbios name = ALPHA
server string = Samba Server
interfaces = eth1 eth2 127.0.0.1
security = SHARE
encrypt passwords = Yes
allow trusted domains = No
log file = /var/log/samba/%m.log
max log size = 0
time server = Yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
os level = 65
preferred master = Yes
wins proxy = Yes
wins support = Yes

Last edited by DavidPhillips; 10-03-2001 at 03:12 AM.
 
Old 10-03-2001, 08:58 AM   #6
Sathe
Member
 
Registered: Sep 2001
Location: Bryan, Ohio USA (Home of the Etch-A Sketch)
Distribution: RedHat 7.1, 7.2, and 7.3
Posts: 76

Rep: Reputation: 15
make sure you have your smbpasswd file there, check that out under root, then switch to your user accuont and run smbpasswd <username> it should ask you for a password, just hit enter since you don't have one, then type in your new password and confirm it. also from your user account make sure you have something shared on your linux box by running smbclient -L <server name>

also, make sure you read the ENCRYPTION.txt on samba, should be in /usr/share/docs/samba/doc/text docs..................or something along those lines

Last edited by Sathe; 10-03-2001 at 09:10 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Samba PDC and Win2000 mheymann Linux - Networking 3 09-15-2005 09:06 AM
fedora and win2000 and samba yps Linux - Newbie 2 11-28-2003 04:13 AM
Samba - Win2000 <-> SuSE 8.2 SantaGhost Linux - Networking 3 09-08-2003 12:28 PM
Samba and win2000 loke137 Linux - Networking 6 08-29-2003 02:32 PM
Samba and Win2000 cfaranda Linux - Networking 2 07-04-2002 06:25 AM

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

All times are GMT -5. The time now is 09:18 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