SAMBA Privileges using cupsaddsmb
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 \W32X86NT_STATUS_ACCESS_DENIED opening remote file \W32X86/PSC-1300.ppdNT_STATUS_ACCESS_DENIED opening remote file \W32X86/ps5ui.dllNT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript.hlpNT_STATUS_ACCESS_DENIED opening remote file \W32X86/pscript.ntfNT_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
try setting print$ to readonly=no, writable=yes and see what happens. This would only be during the cupsaddsmb process. Then set it back to normal.
Thanks,
Tom Callahan
TESSCO Technologies
(443)-506-6216
[email protected]
A real engineer only resorts to documentation when the keyboard dents on the forehead get too noticeable.
Quoted 81 lines · Kris Hollingsworth
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/439fb7d81ff33W32X86/PSC-1300.ppd;put/usr/share/cups/drivers/ps5ui.dllW32X86/ps5ui.dll;put/usr/share/cups/drivers/pscript.hlpW32X86/pscript.hlp;put/usr/share/cups/drivers/pscript.ntfW32X86/pscript.ntf;put/usr/share/cups/drivers/pscript5.dllW32X86/pscript5.dll'
Domain=[NARSHE] OS=[Unix] Server=[Samba 3.0.14a-Ubuntu]NT_STATUS_NETWORK_ACCESS_DENIEDmaking remote directory \W32X86NT_STATUS_ACCESS_DENIEDopening remote file \W32X86/PSC-1300.ppdNT_STATUS_ACCESS_DENIEDopening remote file \W32X86/ps5ui.dllNT_STATUS_ACCESS_DENIEDopening remote file \W32X86/pscript.hlpNT_STATUS_ACCESS_DENIEDopening remote file \W32X86/pscript.ntfNT_STATUS_ACCESS_DENIEDopening 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_DENIEDerrors, I would greatly appreciate it!(quoted diff) +0
-2-Kris -To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 64 lines · Kris Hollingsworth
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/439fb7d81ff33W32X86/PSC-1300.ppd;put/usr/share/cups/drivers/ps5ui.dllW32X86/ps5ui.dll;put/usr/share/cups/drivers/pscript.hlpW32X86/pscript.hlp;put/usr/share/cups/drivers/pscript.ntfW32X86/pscript.ntf;put/usr/share/cups/drivers/pscript5.dllW32X86/pscript5.dll' Domain=[NARSHE] OS=[Unix] Server=[Samba 3.0.14a-Ubuntu]NT_STATUS_NETWORK_ACCESS_DENIEDmaking remote directory \W32X86NT_STATUS_ACCESS_DENIEDopening remote file \W32X86/PSC-1300.ppdNT_STATUS_ACCESS_DENIEDopening remote file \W32X86/ps5ui.dllNT_STATUS_ACCESS_DENIEDopening remote file \W32X86/pscript.hlpNT_STATUS_ACCESS_DENIEDopening remote file \W32X86/pscript.ntfNT_STATUS_ACCESS_DENIEDopening remote file \W32X86/pscript5.dll
------------------------------------------------------------------------------------
Quoted 8 lines
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_DENIEDerrors, I would greatly appreciate it!
Looks to me like your printer$ share is read only according to your smb.conf file. But I can't get it to work either. =P
Let me know if you figure it out.
--
Scott