From:  Bizsoftech Pvt. Ltd.
           Unit No.219, Udyog Kshetra Industrial Estate,
           Mulund-Goregoan Link Road,
           Mulund (West), Mumbai - 400 080.
           Tel:022--5650597
           Fax:022-5680667
           EMail:[EMAIL PROTECTED]

SUB: Configuring Samba for file and device sharing between Windows and
Linux systems.

Sir:
We have Red Hat Linux 6.1 official version installed on a machine which
has a CDROM. We would like to share files betwen Windows sytems running
Windows 95 / 98 and the Linux system. We would like to access the CDROM
connected to the Linux system from the Windows system. Also we would
like to access the printer connected with the Windows 95 system from the
Linux system.

I tried to configure Samba 2.0.5a, but could not succeed. Here are the
things I have done.

I made the following changes in the smb.conf file.

1. In the [global] section, I appended,
    # workgroup = NT-Domain-Name or Workgroup-Name
    # workgroup = MYGROUP
    workgroup = Bizsoftech

    Bizsoftech is the Windows NT domain at our place.

2. I uncommented the following lines:
    encrypt passwords = yes
    smb passwd file = /etc/smbpasswd

3. I set the following:
    local master = yes
    os level = 33
    domain master = yes
    preferred master = yes
    domain logons = yes

4. I uncommented all from the [netlogon] section
    comment = Network Logon Service
    path = /home/netlogon
    guest ok = yes
    writable = no
    share modes = no

5. I have the following in the [homes] section:
   comment = Home Directories
   browsable = no
   writable = yes
   public = no
   only user = no
   valid users = Administrator, root, haroon, meenal

6. I have the following in the [public] section:
   comment = Public Stuff
   path = /home/samba
   public = yes
   writable = yes
   printable = no
   ;  write list = @staff

5. I created a dir netlogon under /home and gave access rights:
    mkdir /home/netlogon
    chmod 0755 /home/netlogon

6. My /etc/hosts file contains the following entries:
   127.0.0.1              localhost.localdomain      localhost
   192.168.180.150   Kaveri.Bizsoftech             Kaveri

   where Kaveri is the machine name

7. My /etc/sysconfig/network file contains the following entries:
   NETWORKING=yes
   FORWARD_IPV4=no
   HOSTNAME=Kaveri
   GATEWAY=
   GATEWAYDEV=

8. I restarted the network and samba:
    /etc/rc.d/init.d/network restart
    /etc/rc.d/init.d/smb restart

9. Now I added a user Administrator to test samba:
    adduser Administrator
    smbadduser Administrator:abcdef

   Administrator is a user on our NT domian with password as 'abcdef'

10. On another machine which has Windows 98, I have the following
     components installed:
     TCP/IP
     Network card
     Client for Microsoft networks
     File and Print sharing for Microsoft networks

11. The Primary Network Login script is set to Client for Microsoft
Networks.

12. Now in the properties of Client for Microsoft Networks, I selected
     Windows NT domain and entered the domain Bizsoftech,
     what I have put in /etc/smb.conf file.

13. In Bindings, I have Clients for Microsoft enabled.
     In DNS, I have disabled DNS and in Gateway, there are no gateways
installed.
     I have File and Print sharing enabled.

14. In Identification tab, I have Bizsoftech as the NT domain name.

15. I have Share level access enabled on Access Control tab.

16. On restarting, I am able to see the Linux Server and the
Administrator,
     netlogon and public directory. However, on clicking Administrator,
     I am asked for a password. Although, I enter the password which is
     same for both Windows login as well as Linux user created earlier,
     I am told that the password is invalid. On clicking netlogon and
     public directory, there is no prompt and the directories are empty.

17. I tried to enable Obtain an IP address automatically On IP address
     tab and selected use DHCP for WINS Resolution on the WINS
     Configuration tab. However, on restarting and logging again,
     I got a message that no domain servers were avaliable to validate
     the password and hence could not see the Linux server, while
     I was able to access Windows network.

18. I could change password in Control Panel->Passwords->Other Passwords

     which happens successfully. However, When I change password using
     'smbpasswd Administrator', I get many messages which says
     getsmbfilepwent: malformed password entry (uid not number) and the
last line
     Password changed for user Administrator


I kindly request, If someone could help me out with stepwise procedures
for configuring samba for files and device sharing between Windows and
Linux.

Regards,

Haroon Mansoori


To subscribe / unsubscribe goto the site www.ilug-bom.org ., click on the mailing list 
button and fill the appropriate information 
and submit. For any other queries contact the ML maintener

Reply via email to