Click to See Complete Forum and Search --> : SAMBA, a LinuxBOX and 2 PC's (Win2K)


mikeym
02-04-2003, 03:51 PM
I have 2 PCs connected to a Linux box using SAMBA and both sharing file space on the Lunux box and a printer connected to it. But neither seames to be able to connect to eachother. Under NetworkNeighbourhood in windows each PC can see itself the BOX and the other PC. The PC's own icon and the BOX's icon both connect but the Other PC comes up with a cannot find error.

Here is a Copy of my smb.conf file

[global]


workgroup = HOME

hosts allow = 192.168.1. 127. # 192.168.2. 127.


printcap name = /etc/printcap
load printers = yes
printing = lprng

guest account = administrator

log file = /var/log/samba/%m.log
max log size = 0

security = share
encrypt passwords = no

unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*success fully*

pam password change = yes
obey pam restrictions = yes

socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

interfaces = 192.168.1.2/24 192.168.1.1/24

domain master = yes
wins support = yes
dns proxy = no

[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no

guest ok = no
writable = no
printable = yes


[pub]
comment = Public Stuff
path = /pub
public = yes
writable = yes
printable = no
write list = @mp3

slapNUT
02-04-2003, 04:56 PM
You have to setup a share on the Win2K computers before they can connect to each other. I don't know how to do that in 2K but in Me you just right click on the desired folder and select sharing then follow the Wizard.

mikeym
02-04-2003, 06:58 PM
I have set up shares on both the win2K computers. It seems to be something else that is causing problems.

plattypus1
02-04-2003, 07:58 PM
I'm no Linux expert, but I do know a thing or two about windows networking. Have you tried re-installing file&printer sharing? Sometimes it installs weird and you get a problem like you described.

mikeym
02-06-2003, 07:00 AM
both the other two computers work when they are conected together so I dont see how it can be a problem with my Windows set up.

froggy3132000
02-06-2003, 11:19 AM
Play around with your smb.conf file. Best way to learn. Change some things around for instance,(security=user) or (hosts allow=192.168.0.0).

Hohum
02-07-2003, 08:01 AM
How are the two PCs physically connected to the Linux box, i.e. hub/switch or do you have two NICs in the Linux box?

blobaugh
02-08-2003, 02:28 AM
When I had Win2k running, in order for the other computers to gain access to it I had to create the users from the remote on the host. Once I did that it worked perfectly. I'm not sure but I think that you could setup your Linux box with a list of valid users and the 2k's would check it, which would be better if you have a lot of users.

mikeym
02-10-2003, 05:34 AM
Do you know what form you have to create win2k user accounts under linux for them to be recognised? Because I have tryed to set up user accounts on my linux box before but they were never recognised by the windows machines. I now use a default user through samba and 'Share' privalages.

mikeym
02-10-2003, 05:36 AM
I have a Linux Box with 2 network cards in it. And I use Iptables to share a modem (3rd network card).

Gerald Cox
02-10-2003, 06:25 PM
From your smb.conf file I see that you have 2 interfaces or network cards referenced. Is a Windows machine connected directly to each card or to a common hub?

If these Win boxes are connected only to the individual interfaces on the Linux box, then you will have to mount the shares from each Win box on your Linux box, then set up shares must be set up in samba to reference them, for them to be able to see each other's shares through the Samba machine.

If on the other hand you have all PCs connected to a common hub, then you need to make sure that all users have accounts and rights to the specific shares on each machine.

doughie
02-10-2003, 10:50 PM
here is a guess but have you set up the windows users in linux samba?

mikeym
02-11-2003, 09:04 AM
I was hoping that the routing across my linux box would work with SAMBA. I have set up a SMBHOST in one of the SAMBA shared directories but I viewed this as somewhat of a quick fix. This is especialy the case because I dont know how to get the SMBHOST to connect each time one of my win2k PC's connect to the Linux BOX: I only know how to start it when the Linux BOX boots; in the rc.local script.

I have not set up Windows users in SAMBA; I don't know how to do so, but I have set my user acccess privalages to 'share' and created a default user (please see my smb.conf script above).

Gerald Cox
02-11-2003, 02:13 PM
First logged in as "root', create accounts for each of your Windows users on your Linux box. You can do this from the GUI or from the terminal. From the terminal type "adduser" then the username then hit enter. This will create a Linux accoun for the user. Now type "passwd" then the username, hit enter and you will be prompted for the password and a confirmation.

You must do this for each user.

Now you must type "smbpasswd -a" followed by the username and hit enter. You will be prompted for a password and confirmation. This populate your Samba password file.

Once you have created Linux accounts, created Unix passwords, and created Samba passwords. You must make these changes effective by either restarting smbd and nmbd or by rebooting the Linux box

As far as getting all your PCs to "see" each other, I would use an inexpensive 10/100 switch. You can pick one up for about $30.00.

DMR
02-11-2003, 06:38 PM
Also, just FYI:

I noticed that the "encrypt passwords=" line in your smb.conf is set to "no". Unless you've hacked the registry on your Win2k boxen, that entry needs to be set to "yes"; Win2k uses encrypted passwords by default.

mikeym
02-12-2003, 07:17 AM
I have the Windows2K encripted passwords turned off already (I thought it would make things easier).

I have tryed as you say to make smb users with passwords but if I set the share properties to 'User' when I try to log on to the server, after having loged on to windows, I still get a "Incorrect Password or Unknown User Name" prompt. I am loging on to windows as Administrator and I have set up 2 linux accounts 'Administrator' and 'administrator' they both have been given the same password as the windows administrator. I have also used "smbpasswd -a '(A)administrator'" and given them both the same windows password. So how do you get linux to recognise the windows user.

PS if I type administrator into the prompt and then the windows password I get connected!