Windows
Bootdisk for NT
Setup Win 2000
Setup Windows NT
Setup Windows 98
Setup IP 98/NT/00
Setup Exchange
Linux
Boot Disk for Linux
Install Linux
Install modem
Install apache
Using X Window
Remote command
Configuring IP
Configuring samba
Configuring mail
Configuring DNS
Networking
Dhcp overview
Dhcp install
Dhcp manager
Dial up diagnostic
RFI/PFP
SBS explained
Citrix explained
Remote login
Setup multiple O/S
Setup a network
Misc
Address book
Internet shopping
Team technologies
File systems
Backup
Time savers
Reponse time
Volumes
Cable
ODBC
TCP/IP
Histor
Class
For win 98
For win NT
Layers
Utilities
Subnet mask
subnet mask calculator

 

 

 
PeteDotCom -> Networking -> Linux -> Samba ->

 

Please note the following is written for Slackwere version 7, some parts will not work with redhat, if you are using redhat, please refer to your manual

Configuring the Linux machine

edit the /etc/hosts file (i.e.   vi /etc/hosts)
Enter the IP address, name and alias of each Linux machine into the file

in my home network of 2 computers I typed the following

192.168.1.1       g2c1.DOMAIN       g2c1
192.168.1.2       g2c2.DOMAIN       g2c2

(first part=ip address of machine, second part=computer@domain, third=alias)

 

Configuring the Windows machine

edit file c:\winnt\systems32\drivers\etc\lmhosts

I added the following to my home computer

192.168.1.1    g2c1.DOMAIN     g2c1
192.168.1.2    g2c2.DOMAIN     g2c2

(pretty the same as the linux file, as I have setup the same ip address on both system, ie. there isn't a different set of ip address for the windows network, if you have different ip address for your windows network, you will need to change them accordingly)

 

Create user accounts

On the Linux machine, use the adduser command and create an account for each windows user on the linux machine.

On my Linux machine, I created an account on Linux called "pcguest" with password = pcguest

You have to remember to also create an account on the Windows machine with the account = pcguest, password=pcguest.

 

Turn on Samba

check the following are activated in /etc/services

netbios-ns     137/tcp
netbios-ns     137/udp

netbios-dgm     138/tcp
netbios-dgm     138/udp

netbios-ssn     139/tcp
netbios-ssn     139/udp

 

modify file /etc.inetd.conf to contain the following entries (i.e. un-comment them):

netbios-ssn stream tcp nowait root /usr/local/samba/bin/smbd smbd
netbios-ns   dgram  udp wait root /usr/local/samba/bin/nmbd nmbd

 

Create the samba configuration file

cp /etc/smb.conf-sample /etc/smb.conf

edit the /etc/smb.conf
vi /etc/smb.conf

[Global]
     Workgroup=DOMAIN
     Hosts allow=192.168.1.   203.30.35.   127.
     Load printers=yes
     Printcap name=/etc/printcap
     Guest account=pcguest
     Log file =/var/log/samba.%m
     Max log size=50
     Interfaces=192.168.1.2/24   203.30.35.2/24

[homes]
     comment=Home Directories
     browseable=yes
     writable=yes

[printers]
     comment=All Printers
     path=var/spool/samba
     browseable=yes
     guest OK=yes
     writable=no
     printable=yes

[tmp]
     comment=Temporary File Space
     path=/tmp
     read only=no
     guest OK=yes

(now save the file,   i.e   :wq)

type testparm at the prompt to test your parameters and debug smb.conf file if necessary.

 

Turn on Samba Daemon

if [ -x /usr/sbin/smbd -a -x /usr/sbin/nmbd]; then
      echo "starting samba......"
      /usr/sbin/smbd -D
      /usr/sbin/nmbd -D

fi

(now save the file,   i.e   :wq)

Configure the windows NT4 machine

* Make sure the windows machine is configured for networking and TCP/IP is correctly installed.
* Check that the c:\winnt\system32\drivers\etc\lmhosts file has all the IP address and names of all machines you want to connect to
* Share the windows machine's drive, directory and devices you want to share

 

Test windows to Linux connection

Open windows explorer, network neighborhood, and you should see your linux machine, if not you have done something wrong in the previous steps.

click on your Linux machine and map a drive to it.

If you are not able to map it or rather not allowed to gain access to the linux account pcguest, one or more of the following solutions might apply (In my own case I had to use all three)

Solution 1: Userid and password case sensitivity

edit /etc/smb.conf file by adding:
Password level = 24
username level = 24

Solution 2: Edit the windows registry

start, run, regedt32, edit, add value    and edit as follows:
- value name = EnablePainTextPassword
- Data Type = REG_DWORD
- Data = 1

Solution 3: Enable password encryption on samba server

First crate a Samba Password file form the shell command:
- smbpasswd -a username
- repeat for all usres wishing to access the Samba Server from the NT machine

On samba server edit /etc/smb.conf as follows:

encrypt passwords = yes
smb passwd file = /usr/lib/samba/private/smbpasswd

 

Hosted by www.Geocities.ws

1