LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-15-2002, 07:47 PM   #16
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31

Quote:
Originally posted by tuantran
sewer_monkey,
when you setup smb.conf file, I look at the line
................................................................
domain logons = yes (or domain logon = yes no "S")
.................................................................
It tell me that ALL WINDOWS users must logon to this server (Linux box), isn't it? If YES, DO we need to do anything else with the Linux box or we ONLY need to edit smb.conf file to make it works like domain logon server for WINDOWs users? I have no problem with SAMBA at workgroup mode but don't know how to make it works like domain server. IF you have time, please drop me few lines to help me out. Thank you.
No, if you set up the server as a PDC, you certainly don't have to log on to it (as a domain member) in order to access the shares. You can still have a Windoze computer browse for the Linux box in the workgroup (in my case the workgroup and the NT domain name is "HOME_NET", defined by the line "workgroup = HOME_NET" in my smb.conf).

In order to make your Windoze clients log on to the NT domain, you have to:
  1. Properly configure SAMBA as a PDC (this includes creating UNIX and SAMBA accounts for each client machine, a.k.a. "machine accounts").
  2. Configure the client workstations and make sure they join your NT domain.
  3. Apply registry patches for compatibility with SAMBA, if necessary. For example, you need to patch Windoze 2000 and XP workstations before they can work successfully with SAMBA acting as a PDC. These registry (.reg) files are usually in /usr/share/doc/samba-x.x.x/docs/Registry, where "x.x.x" is your SAMBA version. Make sure you convert them to DOS format before applying them!
For more info check out the SAMBA HowTo collection here.

Last edited by sewer_monkey; 06-15-2002 at 07:48 PM.
 
Old 06-16-2002, 02:52 AM   #17
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Original Poster
Rep: Reputation: 46
Herm I have a problem with LinNeighborhood.. It try to MOUNT the shared drive to a path using smbmount (or a command like this) but I don't have this command (progs) in my samba/bin....

How can I enable this? I suppose it's an option I have to enable at compile time but I don't found wich one in the read me files...
 
Old 06-16-2002, 10:33 AM   #18
tuantran
LQ Newbie
 
Registered: Apr 2002
Posts: 18

Rep: Reputation: 0
sewer_monkey,

Here my [golbal] & [netlogons], could you please tell me is it correct

#Assume my workgroup = abc; my domain = def

[global]
os level = 64
domain master = yes
preferred master = yes
# printing = lprng
dns proxy = no
security = user
null passwords = yes
encrypt passwords = yes
workgroup = abc
server string = Samba Server
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
log file = /var/log/samba/%m.log
netbios name = def
load printers = no
# printcap name = /etc/printcap
wins support = true
max log size = 0

[netlogons]
path = /export/smb/net/netlogon
read only = yes
logon script = map.bat
guest ok = yes

Quote:
# Properly configure SAMBA as a PDC (this includes creating UNIX and SAMBA accounts for each client machine, a.k.a. "machine accounts").
I think I did that by using WEBMIN to do convert Unix users to Samba users


Quote:
# Configure the client workstations and make sure they join your NT domain.
I know how to do it.

Quote:
# Apply registry patches for compatibility with SAMBA, if necessary.
Have no clue what it is Could you please drop me a few lines. Thanks a lot.

Last edited by tuantran; 06-16-2002 at 10:35 AM.
 
Old 06-16-2002, 12:50 PM   #19
basd
Member
 
Registered: Apr 2002
Location: Riverside CA USA
Distribution: SuSE 11
Posts: 83

Rep: Reputation: 15
I use xSMBrower as the GUI interface. This does not setup Samba, it allows you to connect to the Windows computer. You can find it easily with a web search. After install you will have a script, but when you click on the script, you will find that you are reading the script, not executing it. Make a "link to application" to the script and click on that.

I put some discussion of SAMBA<>Windows on my website at http://www.fastbk.com/linux.

Linux and Windows handle the shares differently. To access linux from windows, you have to first set up a user on linux that is the same "name" as your Windows Networks login name. Then, when the Windows Network tries to log in, it will be logging to that user account on Linux.

Going the other direction, you can set a password on your shared resources (good idea) but then you will have to enter that password when you log into the Windows computer. Note on this -- xSMBrowser unfortunately saves the password in an unencrypted file for login purposes. Therefore, I always type the password.

You also have to import the password user list into smbpasswrd. I forget the specfics on this, but Windows can't log into Linux until you accomplish this.

Logging into Windows from Linux is fairly easy with xSMBrowser if your Samba client is running. If you don't have a browse server on the network (a waste of resources for one or two computers), you make a "favorites" entry and identify the other computer by IP. You can then browse to it. I have found that the "mount" command won't mount the drive for some reason, but the "explore" command will.
 
Old 06-16-2002, 10:31 PM   #20
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
  1. Check this out for details on creating machine accounts and what they're for. I also suggest you print this document and/or keep it handy. It's very useful. In fact, I learned 70% of what I know about SAMBA from this document (the SAMBA HOWTO Collection).
  2. Note that XP boxes will refuse to log in to a pre-made machine account. You'll have to create a root account on the SAMBA server (smbpasswd -a root), and the SAMBA password should be different than your real UNIX root's password for security. When you ask XP to join your domain, it will ask you for an admin account on the PDC. Use the root account you just created. When done, disable the SAMBA root account, or delete it. See the man page for smbpassword for an explanation on how to do this.
  3. The registry patches (.reg files, for use with the Windoze Registry Editor, you know, regedit.exe) are in /usr/share/doc/samba-x.x.x/docs/Registry/, where "x.x.x" is your SAMBA version. Make sure you convert the file into DOS format before applying the patch (the line endings). Open the patch file in Notepad on Windoze before applying it. If it looks messed up, correct it and then apply. You can use metapad to do this conversion automatically.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Redhat Samba with Win95 Hendon Linux - Networking 2 12-14-2004 10:39 AM
Samba 3.0.2 not mangling long names correctly for Win95/98 JLindenmuth Linux - Networking 0 03-25-2004 01:28 PM
which linux for old laptop and win95 ubendum Linux - Laptop and Netbook 2 01-11-2004 06:04 AM
Samba works with win95 but not ME blainehilton Linux - Networking 8 07-24-2003 05:48 AM
win95 install... philfighter General 9 07-23-2001 05:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration