Solved

accessing Linux from NT

Posted on 1998-02-03
2
228 Views
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.
0
Comment
Question by:wdawes
2 Comments
 
LVL 3

Accepted Solution

by:
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

[global]
   hosts allow = 192.168.1.0/255.255.255.0  
   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

[root]
   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

[html]
   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
0
 
LVL 1

Author Comment

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

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now