All of lore.kernel.org
 help / color / mirror / Atom feed
* SAMBA Privileges using cupsaddsmb
@ 2005-12-15 23:28 Kris Hollingsworth
  2005-12-16 15:56 ` Tom Callahan
  2005-12-16 16:01 ` Scott Taylor
  0 siblings, 2 replies; 5+ messages in thread
From: Kris Hollingsworth @ 2005-12-15 23:28 UTC (permalink / raw)
  To: linux-admin

Hey all, I've been banging my head against the wall for the last day or 
two trying to get this working. I'm trying to get my Ubuntu Linux 
(Breezy Badger 5.10 release) to serve up print drivers to my windows box 
when trying to share the printer attached to it.

I think I've got it almost there, I've just run into a problem with 
permissions on the smbclient commands in the cupsaddsmb.

I've only been using linux for about a week, so any help on this would 
help me out immensely.

/etc/samba/smb.conf
------------------------------------------
[global]
   load printers = yes
   printing = cups
   printcap name = cups

[printers]
   path = /var/spool/samba
   browseable = no
   public = yes
   guest ok = yes
   writable = no
   printable = yes
   printer admin = webster

[print$]
   path = /etc/samba/drivers
   browseable = yes
   guest ok = no
   read only = yes
------------------------------------------

I setup the samba user with:
------------------------
smbpasswd -a webster
------------------------

I used the command
--------------------
cupsaddsmb -a -v
--------------------

and the result was:
------------------------------------------------------------------------------------ 

Password for webster required to access localhost via SAMBA:
Running command: smbclient //localhost/print\$ -N -U'webster%[password]' 
-c 'mkdir W32X86;put /var/tmp/439fb7d81ff33 W32X86/PSC-1300.ppd;put 
/usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put 
/usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put 
/usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put 
/usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll'
Domain=[NARSHE] OS=[Unix] Server=[Samba 3.0.14a-Ubuntu]
NT_STATUS_NETWORK_ACCESS_DENIED making remote directory \W32X86
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/PSC-1300.ppd
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/ps5ui.dll
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript.hlp
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript.ntf
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript5.dll
------------------------------------------------------------------------------------ 


I can do:
------------------------------------
smbclient //localhost/print\$ -N -U'webster%[password]' -c
------------------------------------
and browse around, ls the file list, etc. I just can't change anything.

If anyone could help me with the NT_STATUS_ACCESS_DENIED errors, I would 
greatly appreciate it!

-Kris


^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: SAMBA Privileges using cupsaddsmb
@ 2005-12-16 16:33 Scott Taylor
  0 siblings, 0 replies; 5+ messages in thread
From: Scott Taylor @ 2005-12-16 16:33 UTC (permalink / raw)
  To: linux-admin



Kris Hollingsworth said:

> [print$]
>    path = /etc/samba/drivers
>    browseable = yes
>    guest ok = no
>    read only = yes

Just reading the cupsaddsmb man file, maybe try adding
    write list = webster

to print$

--
Scott


^ permalink raw reply	[flat|nested] 5+ messages in thread
* SAMBA Privileges using cupsaddsmb
@ 2005-12-14  7:09 K. Hollingsworth
  0 siblings, 0 replies; 5+ messages in thread
From: K. Hollingsworth @ 2005-12-14  7:09 UTC (permalink / raw)
  To: linux-newbie

Hey all, I've been banging my head against the wall for the last day or 
two trying to get this working. I'm trying to get my Ubuntu Linux 
(Breezy Badger 5.10 release) to serve up print drivers to my windows box 
when trying to share the printer attached to it.

I think I've got it almost there, I've just run into a problem with 
permissions on the smbclient commands in the cupsaddsmb.

I've only been using linux for about a week, so any help on this would 
help me out immensely.

/etc/samba/smb.conf
------------------------------------------
[global]
    load printers = yes
    printing = cups
    printcap name = cups

[printers]
    path = /var/spool/samba
    browseable = no
    public = yes
    guest ok = yes
    writable = no
    printable = yes
    printer admin = webster

[print$]
    path = /etc/samba/drivers
    browseable = yes
    guest ok = no
    read only = yes
------------------------------------------

I setup the samba user with:
------------------------
smbpasswd -a webster
------------------------

I used the command
--------------------
cupsaddsmb -a -v
--------------------

and the result was:
------------------------------------------------------------------------------------
Password for webster required to access localhost via SAMBA:
Running command: smbclient //localhost/print\$ -N -U'webster%[password]' 
-c 'mkdir W32X86;put /var/tmp/439fb7d81ff33 W32X86/PSC-1300.ppd;put 
/usr/share/cups/drivers/ps5ui.dll W32X86/ps5ui.dll;put 
/usr/share/cups/drivers/pscript.hlp W32X86/pscript.hlp;put 
/usr/share/cups/drivers/pscript.ntf W32X86/pscript.ntf;put 
/usr/share/cups/drivers/pscript5.dll W32X86/pscript5.dll'
Domain=[NARSHE] OS=[Unix] Server=[Samba 3.0.14a-Ubuntu]
NT_STATUS_NETWORK_ACCESS_DENIED making remote directory \W32X86
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/PSC-1300.ppd
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/ps5ui.dll
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript.hlp
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript.ntf
NT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript5.dll
------------------------------------------------------------------------------------

I can do:
------------------------------------
smbclient //localhost/print\$ -N -U'webster%[password]' -c
------------------------------------
and browse around, ls the file list, etc. I just can't don't have change 
access.

If anyone could help me with the NT_STATUS_ACCESS_DENIED errors, I would 
greatly appreciate it!

-Kris

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-12-16 16:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-15 23:28 SAMBA Privileges using cupsaddsmb Kris Hollingsworth
2005-12-16 15:56 ` Tom Callahan
2005-12-16 16:01 ` Scott Taylor
  -- strict thread matches above, loose matches on Subject: below --
2005-12-16 16:33 Scott Taylor
2005-12-14  7:09 K. Hollingsworth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.