LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-03-2008, 07:30 PM   #1
timepassman
LQ Newbie
 
Registered: Apr 2008
Posts: 3

Rep: Reputation: 0
Unhappy network printer


hi,
i have 2 machines--one running vista and one ubuntu 7.10
i wish access my printer connected to ubuntu machine, in vista. i tried to setup samba server but i can't access my printer, though i can access the folder i shared.
i need to have login based access to printer as i m in LAN with many users.
my smb.conf
printer name -> local

---

[global]
workgroup = WORKGROUPFUC
server string = %h server (Samba, Ubuntu)
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = user
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
invalid users = root
passwd program = /usr/bin/passwd %u

passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *passwd:*password\supdated\ssuccessfully* .

load printers = yes
socket options = TCP_NODELAY
browseable = no
writable = no
wins support = no

[local]
comment = Laser
path = /var/spool/samba
browseable = no
public = no
create mode = 0700
printable = yes
printer = local

what am i doing wrong? also i found that /var/pool/samba is an empty directory. plz note that i am using the the default driver for printer hp 1015 that came with ubuntu 7.10
 
Old 04-04-2008, 02:02 PM   #2
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Rep: Reputation: 166Reputation: 166
printers

If you are using printers for comercial ends then perhaps you need a man that can?
 
Old 04-04-2008, 02:23 PM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
It sounds like you may be missing the CUPS portion of this type of setup. CUPS is what manages the printers, SAMBA manages the connections and the chat between CUPS and your Windows systems. This has recently been my "area of interest" so I'd be happy to provide any information. Here's one of my cupsd.conf and smb.conf contents:
smb.conf
Code:
[global]
        workgroup                       = FACULTY
        realm                           = FACULTY.MYDOMAIN.EDU
        server string                   = My Faculty Print Server
        security                        = ADS
        password server                 = main-domain-controller secondary-domain-controller
        log level                       = 1
        log file                        = /var/log/samba/%m
        max log size                    = 50
        preferred master                = No
        dns proxy                       = No
        wins server                     = 1.2.3.4
        idmap uid                       = 10000-20000
        idmap gid                       = 10000-20000
        winbind separator               = +
        winbind enum users              = Yes
        winbind enum groups             = Yes
        winbind use default domain      = Yes
#########################
#       Printing        #
#########################
        
        load printers           = yes
        printing                = cups
        printcap name           = cups
        
#########################
#       Print Share     #
#########################

[printers]
comment                 = Faculty Printers
path                    = /var/spool/samba
browseable              = no
public                  = yes
guest ok                = no
writable                = no
printable               = yes
printer admin           = root, @"FACULTY+Domain Admins"

# Print Drivers

[print$]
        comment         = Printer Drivers
#       path            = /etc/samba/drivers
        path            = /usr/share/cups/drivers
        browseable      = yes
        guest ok        = no
        read only       = yes
        force user      = root
        write list      = root, @wheel, @"FACULTY+Domain Admins"
cupsd.conf
Code:
# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel debug

# Administrator user group...
SystemGroup lpadmin

# Only listen for connections from the local machine.
Listen *:631
Listen localhost:631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Disable Encryption
DefaultEncryption Never

# Restrict access to the server...
<Location />
  Order allow,deny
  Allow 192.168.1.1/24 
</Location>

# Restrict access to the admin pages...
<Location /admin>
  Require user @SYSTEM
  Order allow,deny
  Allow 192.168.1.10
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Basic
  Require user @SYSTEM
  Order allow,deny
  Allow 192.168.1.10
</Location>

# Set the default printer/job policies...
<Policy default>
  # Job-related operations must be done by the owner or an adminstrator...
  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
#    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an adminstrator to authenticate...
  <Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
    AuthType Basic
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
#  <Limit Cancel-Job CUPS-Authenticate-Job>
#    Require user @OWNER @SYSTEM
#    Order deny,allow
#  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>
You will still need to configure your local printer through CUPS and then set it up correctly on Vista. The easiest way I use to setup my printers to ensure it's correct is through my web interface http://localhost:631 on a default installation.

Good luck!

-Chad
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Brother HL2070N network printer installed, print jobs stuck in printer que jgz Linux - Networking 0 02-14-2008 11:54 PM
Installing Canon LBP USB Printer as network printer on a Fedora Core without XWindow boy3dfx2 Linux - Newbie 5 06-03-2006 02:23 PM
Printer problems, can't find a printer that is attached to a windows network. ahalfapint Linux - Networking 2 04-12-2006 05:29 PM
CUPS Network Printer/ server indicator blinks no printer output wine Linux - Networking 8 03-18-2006 11:20 PM
setup printer on client machine(slackware 8) to server (slackware7) network printer changwoo Slackware 9 05-02-2003 06:37 PM


All times are GMT -5. The time now is 01:46 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration