U N I F Y I N G   U N I X   W I T H   L I N U X   F O R   B U S I N E S S
Caldera Home
Shop Caldera.com
Download From Caldera.com
Advanced Search Page

SHOP

DOWNLOAD

SEARCH
  
COMPANY
PARTNERS
PRODUCTS
SUPPORT
EDUCATION
CONSULTING
 
   Home > Support > Knowledge Base

Setting up a Samba server on Caldera OpenLinux (Ref. #990916-0004)
 
Description:
Technical Guides are created by Caldera Technical Support in response to your questions about certain features or technical aspects of Caldera OpenLinux. They provide more
in-depth coverage of issues you may encounter.
 
Solution:
Setting up a Samba Server on Caldera OpenLinux

Setting up a Samba Server on Caldera OpenLinux

Jeff Christensen

3-24-2000


The following document explains how to set up a file server Win95, Win98, or WinNT clients; how to synchronize passwords between Windows and OpenLinux; and how to setup a raw printer to be hosted by the Samba server. By following these steps, a Windows user will have read/write access to his/her own "public" directory on the file server. All Windows users will also have read/write access to a public directory.

1. Setting up the Samba Server

  1. Change to the /etc/samba.d directory.
  2. Copy the smb.conf.sample file to smb.conf.
  3. cp smb.conf.sample smb.conf
  4. Edit the smb.conf file and change the workgroup entry to match the work group on the Windows machines that will access the Samba server.
  5. If you are using Windows 95 OEM Rev B, Windows 98, or Windows NT with Service Pack 3, remove the semicolon in front of the following two lines, otherwise leave them commented out as earlier versions of Windows do not have encrypted passwords.
  6. encrypt passwords = yes smbpasswd file = /etc/samba.d/smbpasswd
  7. Save the changes made to the smb.conf file.
  8. While still in the /etc/samba.d directory create a samba password file:
  9. mksmbpasswd < /etc/passwd > smbpasswd
  10. The smbpasswd file contains all of the users on your Linux system.
  11. To add users to the list of those who can access the OpenLinux system using Samba, use this command:
  12. smbadduser Linux-username:Samba-username
  13. Next, create a "Public" directory in each user's home directory that is owned by that user.
    1. Change to the user's home directory.
    2. Create the "Public" directory (note the capital P).
    3. mkdir Public
    4. Change the owner of the Public directory.
    5. chown owner Public
  14. Create a public directory that all Samba users can access.
  15. mkdir /home/public
  16. Next start Samba (must be logged in as root)
  17. /etc/rc.d/init.d/samba start

2. Synchronize the Samba and OpenLinux passwords

  1. Samba can be setup to synchronize the Samba and OpenLinux passwords so that when a user changes their password the change will affect both Samba and OpenLinux.
  2. This will only work with the encrypted passwords set to yes.
  3. Remove the semicolon in front of the following lines:
  4. unix password sync = Yes passwd program = /usr/bin/passwd %u passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
  5. Stop and restart Samba.
  6. /etc/rc.d/init.d/samba stop /etc/rc.d/init.d/samba start

3. Setup a raw printer device hosted on the Samba server

  1. A raw printer is a printer setup in Samba that will allow the use of Windows printer drivers as opposed to the postscript printer device.
  2. To setup a raw printer, you will first need to create the printer using coas or lisa.
  3. It does not matter which printer you select to install, because no filters will be used in setting up the raw printer device.
  4. After you have installed the printer, go into "/etc" and edit the printcap entry you just created, changing it to look like this (if you named it something other than raw, the entry name and spool directory should be changed here to match):
  5. raw:\ :rw:sh: :lp=/dev/lp1 :sd=/var/spool/lpd/raw :fx=flp
  6. Next edit your /etc/samba.d/smb.conf file, locate the [printers] section and add the following line:
  7. print command = lpr -b -P%p %s
  8. Save the changes to /etc/samba.d/smb.conf and start and stop the samba and lpd demons as root.
  9. /etc/rc.d/init.d/lpd stop /etc/rc.d/init.d/lpd start /etc/rc.d/init.d/samba stop /etc/rc.d/init.d/samba start

Product: OpenLinuxSub-Product: OpenLinux 2.3Date Created: 09/16/1999 11:52 AMRef. #: 990916-0004
Category: How-To/Technical GuidesDate Updated: 03/24/2000 06:01 PMSolved Count: 4438 

Related SolutionsSmartAssistant
Did this solve your issue?100% 75% 50% 25% 0%  
[FAQs] [Search] [Customer Login] [Support Home]
Powered by RightNow Web
   Contact Caldera Legal Privacy Site Index Advertise