Linux workstation integration into Windows shop

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: George Gambill
Date:  
Subject: Linux workstation integration into Windows shop
I didn't use CUPS (Red Hat 8.0)
For the sake of this check list, consider:

The Windows NT printer is on Windows host "abc"
The printer is know as PRT92.
The network user id = user01
user01's password is "password01" (no quotes)

On the windows side, have your system administrator set up a user "user01"
with password "password01". This is not sent to the printer encrypted so
you don't want to send any user/password with much authority.

___ Install Samba (if needed)

___ Configure smb.conf
    ___ Locate the smb.conf file (/etc/samba/smb.conf on Red Hat 8.0)
        ___ locate smb.conf
            (you may need to run "locate -u" first)
            (several may show up)


    ___ Change into the directory with smb.cong
        ___ cd /etc/samba
    ___ Change the configuration file
        (you may need to use something like emacs here)
        (opening (and saving)it with OpenOffice may cause problems)
        ___ emacs smb.conf
        ___ Check the global section wor the following 


        [global]
          workgroup = CGCNT   (cgcnt is what we use
          hosts allow = 10.aa.bb. (all of our servers are on 10.aa.bb.
          (i.e. 10.aa.bb.29) 
          printcap name = /etc/printcap
          load printers = yes
          security = user  (That is what we use)
          password server = 10.aa.bb.cc (your NT server name (DNS) might
also work)
          passerword llevel = 0
          username level = 0
          encrypt passwords = yes
          smb passwd file = /etc/samba/smbpasswd
          unix password sync = yes
          passwd program = /usr/bin/passwd %u
          passwd chat = (lets hope the system defaults work here)
          pam passwd change = yes
          obey pam restrictions = yes
          wins server = 10.aa.bb.cc
          dns proxy = yes


        [printers]
          comment = whatever you want here
          path = /var/spool/samba
          browseable = yes


        ___ save the changes (Ctrl-x then Ctrl-s)
        ___ Close emacs (Crtl-x then Ctrl-c) 


___ Create a Linux account if needed (useradd -m accountname)
    ___ (from the command line) useradd -m ggambill
          ( -m sets up the /home/user directory if needed)
    ___ Add (or change) a Linux password for the new user
        ___ passwd ggambill
              (provide the passwords)


___ Set up the Samba Password File
    ___ Create a smb password file (again, this if RH 8)
        ___ cat /etc/passwd | /usr/bin/mksmbpasswd.sh > /etc/samba/smbpasswd
            (This is done from the command line)


    ___ Add an SMB Password (smbpasswd  accountname) 
        ___ smbpasswd ggambill
        (This is done from the command line)


___ Set Up A Windows Shared Printer (RedHat 8 Bible pg 679)

    ___ Add a printer from a Terminal Session (Start (RedHat) | System Tools

| Terminal)

        ___ Enter "printconf-gui &"
        ___ Select "New"
        ___ "Forward"
        ___ Set "Queue Name" to "PRT02"
        ___ Select "Windows Printer   SMB" and "Forward"
        ___ Sert "Share Name" to "\\abc\PRT92" (no quotes ("))
        ___ Set "User" to "user01" (no quotes)
        ___ Set "Passwrword" to "password01" (no quotes)
        ___ "Host IP" is left blank (we use DNS Lookup)
        ___ "Workgroup" is left blank (DNS Lookup)
        ___ "Translate" is left unchecked
        ___ Click "Forward"
        ___ Accept "Postscript Printer" (our printer is postscript)
        ___ Click "Forward"
        ___ Click "Apply"


___ Check the OpenOffice setup (Probably OK)
    (may only need this if you don't want to use the default printer)
    ___ Start the GUI (startx) as your user 
    ___ Start a Terminal Session
        ___ Start (RedHat) | System Tools | Terminal 
    ___ Change to SU ("su") - 
        ___ enter "su" 
        ___ Enter <password> 


    ___ Find the SpadMin Directory (ie: /usr/lib/openoffice/)
        (we use Open Office)
        ____ "Locate spadmin"
             (you may need to do a "locate -u" first to build the data


    ___ cd /usr/lib/openoffice/ (Red Hat 8.0 - YMMV)


    ___ run spadmin
        ___ Enter "./spadmin"  (no quotes)
        ___ Select "New Printer
        ___ Select "Add a printer"  then "Next"
        ___ Generic Printer   might work.  We have a Lexmark so I:
            ___ Scrolled down to "Lexmark Optra S 2455"   
        ___ Then click "Next"
        ___ Select "lpr" for the command line
        ___ Click ""Next"
        ___ Enter a name for the printer (i.e. PRT92)
            *This name seems to display in your printer list)
        ___ Set "Default Printer" check box as desired
        ___ Check "Use as default priniter" as desired
        ___ Click "Finish"



___ Check the printcap file (/etc/printcap)
    (this is probably ok and should show the printers you set up)
    ___ emacs /etc/printcap
    ___ Close (without saving unless you needed to make changes)
        ___ Ctrl-x then Ctrl-c


___ Make sure cups is not running and smb is (from the GUI)
    ___ Start (RedHat) | Server Settings | Services
        ___ un-check cups-lpd
        ___ check smb


(There may be other services needed or not needed here)
(Hopefully someon on the list can add some insite here)

___ Restart such things as samba
    (I reboot)


I haven't tried this checklist from scratch so there may be some missing
links.
This is more using methods rather than understanding principles) 8-(
Good Luck (luck has nothing to do with it)

-----Original Message-----

From: Kurt Granroth <>
Subject: Re: Linux workstation integration into Windows shop
Date: Wed, 2 Jul 2003 14:12:11 -0700

On Wednesday 02 July 2003 12:39 pm, Austin Godber wrote:
> There is also a samba option called credentials .. .check the smbclient
> manpage.
>
> There was a thread a little while ago on this list that might be useful
> ... here is the link from that thread (about using credentials)
>
>

http://www.justlinux.com/nhf/Filesystems/Mounting_smbfs_Shares_Permanently.
>html


Yeah, credentials work great for mounting dirs. Have you ever heard of them

being used by CUPS, though? That's the core issue I'm having.


--__--__--

_______________________________________________
PLUG-discuss mailing list -
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss


End of PLUG-discuss Digest