HomeBanner

Samba FAQ

Samba FAQ

1. How does one use Samba as a PDC ?
2. How does one setup Samba for network printing ?
1.

How does one use Samba as a PDC ?

Howard Jr. Coles

Go to IBM's Open Source WebSite. They have a "how to use SAMBA as a PDC" tutorial that has all the info you need to get XP to authenticate to the domain. Here's the link:

Note

this is with 2.2.2a which comes SuSE 8.0 Pro

http://www-1.ibm.com/servers/esdd/tutorials/samba.html

2.

How does one setup Samba for network printing ?

Brian W. Carver

One tiny problem to describe, but then for the benefit of posterity I'll describe how I printed across the network! When printing from the client computers, printing is fine, but it prints a blank page at the end. SuSE even has a description of this problem in their database, but I don't understand their solution. Anyone able to explain it to a dummy?

Procedure 1. Solution for network printing on 8.0

  1. Install samba.

  2. Edit /etc/inetd.conf to uncomment the line that says:

     swat stream tcp nowait.400 root /usr/sbin/swat swat
    	

    Tip

    Make sure you have inetd restarted, as root issue rcinetd restart

  3. Edit /etc/hosts.allow to contain:

    swat: 127.0.0.1 192.168.0.
    	

    Note

    if like me, you want any local computer (192.168.0.x) to be able to access SWAT.

  4. Type http://localhost:901 into a web browser.

    Use swat to set up things. I'll include my smb.conf as an attachment to show you how I set up my printer and a couple of shared directories. You can also follow the same advice I did from Samba Server Step-by-Step Guide which is an old but still useful guide.

    Note

    You can find more documentation which are uptodate at http://www.samba.org

  5. The one thing he doesn't tell you in that guide is to go to SWAT's passwords section and create a samba user for each client computer. You'll have to have a linux user on the server for each of these computers too. Then I made sure my windows computers were actually using the same user names and passwords for logging into windows control panel->users and then finally in swat click on ENABLE USER for each user you've created.

  6. After that the server computer showed up in Network Neighborhood and I could set up a network printer in Windows with the settings->printer->wizard.

Good luck. I feel like some of what works for me, works on accident and I don't really understand what I've done myself. I just know the clients can print, and I'm thrilled with that.

# Samba config file created using SWAT
# from localhost (127.0.0.1)
# Date: 2002/05/01 04:43:18

# Global parameters
[global]
	interfaces = 192.168.0.1/24 127.0.0.1/24
	bind interfaces only = Yes
	security = SHARE
	encrypt passwords = Yes
	map to guest = Bad User
	log file = /var/log/samba/log.%m
	time server = Yes
	socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
	character set = ISO8859-15
	os level = 2
	dns proxy = No
	wins support = Yes
	guest account = smbuser
	hosts allow = 192.168.0.2 192.168.0.3 192.168.0.4
	printing = lprng
	hide dot files = No
	veto files = /*.eml/*.nws/riched20.dll/*.{*}/

[homes]
	comment = Home Directories
	read only = No
	create mask = 0640
	directory mask = 0750
	guest ok = Yes

[printers]
	comment = All Printers
	path = /var/tmp
	create mask = 0600
	guest ok = Yes
	printable = Yes

[printer1]
	path = /var/tmp
	read only = No
	create mask = 0600
	guest ok = Yes
	printable = Yes
	printer name = printer1
	oplocks = No

[public]
	comment = Public
	path = /home/public
	read only = No
	create mask = 0664
	directory mask = 0775
	guest ok = Yes

[data]
	comment = Data
	path = /home/samba/data
	read only = No
	create mask = 0660
	directory mask = 0770
	guest ok = Yes
      

Updated: Tue, 03 Feb 2004
Valid CSS!Valid HTML 4.01!