Go Premium for a chance to win a PS4. Enter to Win


accessing Linux from NT

Posted on 1998-02-03
Medium Priority
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

Accepted Solution

sauron earned 400 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/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

Author Comment

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

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

824 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