Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
I am having problems with my samba setup. I have redhat 8.0 on my server. Heres my dilemna. Everything works fine but I cannot print from any account but root. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2003
    Location
    Overland Park KS USA
    Posts
    26

    Samba printing help


    I am having problems with my samba setup. I have redhat 8.0 on my server. Heres my dilemna. Everything works fine but I cannot print from any account but root. I know this is a permission thing i think. This problem is the same on all my workstations. 98 xp and 2000. Can only print from root. Thanks for all your help

  2. #2
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Could you check the perms of /var/spool/samba?

  3. #3
    Just Joined!
    Join Date
    Jan 2003
    Location
    Overland Park KS USA
    Posts
    26
    drwxrwxrwt 1777 root is the owner

  4. $spacer_open
    $spacer_close
  5. #4
    Linux User
    Join Date
    Jan 2003
    Location
    Cardiff, Wales
    Posts
    478

    smb.conf

    isn't there a setting for the smb.conf which is something like printer admins in there you can place groups of people who get access to the printer and delete jobs from the queue etc.
    No trees were harmed during the creation of this message. Its made from a blend of elephant tusk and dolphin meat.

  6. #5
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    There are many such options.
    Captain, can you post your printer sections in your smb.conf? (Inside code tags, please)

  7. #6
    Just Joined!
    Join Date
    Jan 2003
    Location
    Overland Park KS USA
    Posts
    26
    Sorry for the delay. I figured it out. My /var/spool/lpd/laserjets permissions kept going back to only root having print privledges. How do I make the permissions of a file sticky?

  8. #7
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    chmod o+t filename

    or

    chmod 1??? filename

  9. #8
    Just Joined!
    Join Date
    Jan 2003
    Location
    Overland Park KS USA
    Posts
    26
    Thanks Dolda, I now have a fully operational primary domain controller thanks to you. To Hell with Bill Gates. :P

  10. #9
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Quote Originally Posted by captain insano
    To Hell with Bill Gates.
    YEAH!

  11. #10
    Just Joined!
    Join Date
    Jan 2003
    Location
    Overland Park KS USA
    Posts
    26
    Dolda still having problems! When I reboot the machine it gives me an error message saying permission are not 0700 they are 07777 this is when lpd is loading. I go back in and they are changed again to lp only having privileges to read write and execute. What in the boot process changes those files? Here is my smb.conf

    # /etc/samba/smb.conf
    # samba configuration file
    # last updated: 4/10/2003 8:45 PM
    # kinda works

    [global]

    #basic server settings
    workgroup = pegasus
    netbios name = ORION
    server string = Samba PDC running %v
    socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192

    #PDC and master browser settings
    os level = 64
    preferred master = yes
    local master = yes
    domain master = yes

    #security and logging settings
    security = user
    encrypt passwords = yes
    domain logons = yes
    log file = /var/log/samba/log.%m
    log level = 2
    max log size = 50
    hosts allow = 192.168.

    #user profiles and home directory
    logon home = \\%L\%U\
    logon drive = H:
    logon path = \\%L\profiles\%U
    logon script = %U.bat


    #print settings
    printing = bsd
    printcap name = /etc/printcap
    load printers = yes
    log file = /var/log/samba-log.%m
    lock directory = /var/lock/samba


    # ==== shares ====

    [homes]
    comment = Home Directories
    browseable = no
    writeable = yes

    [profiles]
    path = /home/samba/profiles
    writeable = yes
    browseable = no
    create mask = 0600
    directory mask = 0700

    [netlogon]
    comment = Network Logon Service
    path = /home/netlogon
    read only = yes
    browseable = no
    write list = root

    [shared]
    path = /storage/shared
    public = yes
    only guest = yes
    writable = yes
    printable = no

    [private]
    path = /storage/protected
    public = yes
    only guest = yes
    writable = yes
    printable = no


    [printers]
    comment = All Printers
    path = /var/spool/lpd/lp
    browseable = no
    printable = yes
    public = yes
    writable = no
    create mode = 0700
    valid users = root gooner jeff pete darrel chad bruce brandon john
    use client driver = yes

    [laserjet]
    path = /var/spool/lpd/laserjet
    printer name = laserjet
    writable = yes
    public = yes
    read only = yes
    guest ok = yes
    printable = yes
    print command = lpr -r -h -P %p %s
    valid users = root gooner jeff pete darrel chad bruce brandon john
    use client driver = yes

    [hp1120c]
    path = /var/spool/lpd/hp1120c
    printer name = hp1120c
    writable = yes
    public = yes
    read only = yes
    guest ok = yes
    printable = yes
    print command = lpr -r -h -P %p %s
    valid users = root gooner jeff pete darrel chad bruce brandon john
    use client driver = yes

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •