[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 272
  • Last Modified:

accessing Linux from NT

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.
1 Solution
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/smb.map

   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
wdawesAuthor Commented:
In /usr/doc/samba-1.9.17p4, both ENCRYPTION.txt and WinNT.txt are the answers.

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now