You are not logged in.

#1 2005-05-16 02:11:59

mezoko
Member
Registered: 2005-03-26
Posts: 310
Website

[GUIDE] SAMBA + CUPS (Security Share)

Well I've been trying to get samba and cups to work for a long time and I didn't care how if it had to be with a user name would have done it but wouldn't have liked it. Anyways....

You need to create a user called samba and a group called samba

adduser

follow the steps

add group

groupadd samba

Then you need to edit some samba things. First File
/etc/cups/cupsd.conf
and you go to change this

<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>

to this

<Location />
Order Deny,Allow
Deny From All
Allow From All
</Location>

then you need to uncomment the following lines:
/etc/cups/mime.types

application/octet-stream

/etc/cups/mime.convs

application/octet-stream        application/vnd.cups-raw        0      -

Then you edit you samba conf

Edit Samba Config

# Global parameters
[global]
    server string = Matthew
    security = SHARE
    guest account = samba
    printer admin = samba, matthew

[Share]
    read only = No
    guest ok = Yes
    path = /home/samba

[Canoni450]
    comment = Canoni450
    path = /home/samba/spool
    valid users = matthew, samba
    guest ok = Yes
    printable = Yes
    use client driver = Yes

I added a dir so people can see how I setup a share

It is probably necessary to add WORKGROUP = yourworkgroup if you use a different workgroup other than workgroup


"The only thing we have to fear is fear itself." - Franklin D. Roosevelt

Offline

#2 2005-07-07 17:31:54

mezoko
Member
Registered: 2005-03-26
Posts: 310
Website

Re: [GUIDE] SAMBA + CUPS (Security Share)

Rewritten. It easier to understand and I included a few things that I left out.


"The only thing we have to fear is fear itself." - Franklin D. Roosevelt

Offline

#3 2005-07-16 03:00:18

sepht
Member
Registered: 2005-07-07
Posts: 51

Re: [GUIDE] SAMBA + CUPS (Security Share)

There's an easier way.. tell samba to let CUPS handle the printing.. works amazing on my fileserver/printer box

Offline

#4 2005-07-16 03:54:16

mezoko
Member
Registered: 2005-03-26
Posts: 310
Website

Re: [GUIDE] SAMBA + CUPS (Security Share)

sepht wrote:

There's an easier way.. tell samba to let CUPS handle the printing.. works amazing on my fileserver/printer box

Please explain, how woudl I go about doing that?


"The only thing we have to fear is fear itself." - Franklin D. Roosevelt

Offline

#5 2005-07-16 06:23:11

sepht
Member
Registered: 2005-07-07
Posts: 51

Re: [GUIDE] SAMBA + CUPS (Security Share)

for example, here's my config.

[global]
        workgroup = WORKGROUP
        security = SHARE
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        panic action = /usr/share/samba/panic-action %d
        invalid users = root
        printcap name = cups
        printing = cups
        print command =
        lpq command =
        lprm command =
        null passwords = yes
[share]
        comment = Public Share
        path = /sambaData
        guest ok = Yes
        read only = No

AFter that just setup your cups.. which is easy as pie.. heck you can even use the web interface @ ip:631  192.168.1.125:631 in my webbrowser works.

Offline

#6 2005-07-16 12:56:28

mezoko
Member
Registered: 2005-03-26
Posts: 310
Website

Re: [GUIDE] SAMBA + CUPS (Security Share)

I might try that once my mum gets done with school
thanks


"The only thing we have to fear is fear itself." - Franklin D. Roosevelt

Offline

#7 2005-07-18 09:03:21

johnisevil
Member
From: Hamilton, ON Canada
Registered: 2003-08-07
Posts: 221
Website

Re: [GUIDE] SAMBA + CUPS (Security Share)

If it's security you're after, I'd recommend changing

<Location />
Order Deny,Allow
Deny From All
Allow From All
</Location>

to

<Location />
Order Deny,Allow
Deny From All
Allow From @LOCAL
</Location>

Using @LOCAL for the Allow From line only allows access from the LAN.

Offline

Board footer

Powered by FluxBB