accessing Linux from NT

Posted on 1998-02-03
Last Modified: 2010-03-18
I have RedHat ver 5 installed and Samba is enabled (I'm using it to print to a LAN Manager print queue on an NT print server). How do I access Linux from Windows'95/NT clients? I would like the Windows clients to see a Linux directory as a share.
Question by:wdawes
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

sauron earned 100 total points
ID: 1587469
Are you starting the smbd and nmbd when you boot your linux machine?

On RH5, as root, do:-

chkconfig --list|grep smb

this will show you what runlevels Samba is configured to be on or off in. Then, 'chkconfig --level 3 smb on' will turn samba on for runlevel 3. You'll need to adjust this according to the runlevel you boot into.

Then, do a ps, and check for smbd and nmbd. If they're both running, your Linux box should pop up in Netowrk Neighbourhood under Windows. Reasons it might not are:-

1/ The Windows machines must have TCP/IP installed, and it must be bound to the client for MS networks.

2/ Your smb.conf file must be set up correctly - see below.

3/ NT - If you're using service pack 3, it requires authentication with encrypted passwords. Samba does not do this out of the box. Solution is to go into the registry, and disable the encryption requirement (but I can't remember the registry key), or (better) get and compile the DES encryption library, and
recompile samba from source t use this library. Read the file
/usr/doc/samba-1.9.17p4/ENCRYPTION.txt for more details.

The /etc/smb.conf file has all the important stuff in it. If the standard one doesn't work for you, you'll have to go back to basics. Read 'man smb.conf'.

Here's a sample smb.conf I use - it's very bare bones..

; Make sure and restart the server after making changes to
; this file, ex:
; This file extensively modified from base SAMBA distribution,
; to support libdes encrypted passwords for NT 4.0sp3 clients.
; /etc/rc.d/init.d/smb stop
; /etc/rc.d/init.d/smb start

   hosts allow =  
   deadtime = 5
   load printers = yes
   log file = /var/log/samba
   lock directory = /var/lock/samba
   share modes = yes
   security = user
   encrypt passwords = yes
   username map = /etc/

   comment = root partition
   browseable = yes
   dont descend = ./proc,./dev
   hide dot files = no
   fake oplocks = yes
   path = /
   read only = yes
   valid users = user1, user2, user3

   comment = WWW documents
   browseable = yes
   hide dot files = yes
   path = /usr/local/etc/httpd/htdocs
   writable = yes
   valid users = user1, user2, user3

As you can see, this shares / read-only, and the html dir read-write, so I can upload new web pages.

Hope this helps

Author Comment

ID: 1587470
In /usr/doc/samba-1.9.17p4, both ENCRYPTION.txt and WinNT.txt are the answers.

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question