11.3 and samba. Shared Printer is not accessable in windows

With 11.2 I had a printer, shared on the network, and able to print from my windows station.

When I updated to 11.3, the disk sharing still works fine, but the printer share is not accessable anymore.
I have no clue why, but in windows I see "Access dienied, unable to connect.

Offcourse I switched the firewall off, which is always the first thing I do :slight_smile:

The way I want to configure this, is allow anybody from anywhere to access this printer.

does someone know how to create a shared printer without any security in suse 11.3 ?

Did you find anything in the samba logs /var/log/samba/smbd.log
from the windows client?

FWIW, sometimes with CUPs updates, I had to reinstall the printer to fix the access problem.

I don’t have samba on the windows machine.
The samba is running on linux. There is the printer configured with cups, and shared with samba.
On the windows machine I have no idea where to look for causes of errors.

Hmm, after reinstalling samba a few times, now it looks like it is working, but in the printer status on windows, it is still mentioned as Access denied, unable to connect.
But according cups, the print command is arriving and printed.

access_log:
localhost - - [26/Jul/2010:11:57:17 +0200] “POST /printers/MyPrinter HTTP/1.1” 200 1378 Print-Job successful-ok
localhost - - [26/Jul/2010:11:59:28 +0200] “POST /printers/MyPrinter HTTP/1.1” 200 1378 Print-Job successful-ok

log.smbd:
__ffff_161.85.187.213 (::ffff:161.85.187.213) connect to service MyPrinter initially as user nobody (uid=65534, gid=65533) (pid 14562)
[2010/07/26 11:57:19.180296, 1] smbd/service.c:1251(close_cnum)
__ffff_161.85.187.213 (::ffff:161.85.187.213) closed connection to service MyPrinter
[2010/07/26 11:59:28.805692, 1] smbd/service.c:1070(make_connection_snum)
__ffff_161.85.187.213 (::ffff:161.85.187.213) connect to service MyPrinter initially as user nobody (uid=65534, gid=65533) (pid 14562)
[2010/07/26 11:59:40.141438, 1] smbd/service.c:1251(close_cnum)
__ffff_161.85.187.213 (::ffff:161.85.187.213) closed connection to service MyPrinter

/etc/cups/printers.conf:
<Printer MyPrinter>
Info MyPrint
DeviceURI pipe://home/rene/bin/MyPrint
State Idle
StateTime 1279897604
Type 4
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy allowallforanybody
ErrorPolicy retry-job
</Printer>

/etc/samba/smb.conf
[global]
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
domain logons = No
domain master = No
security = share
wins support = No

[MyPrinter]
comment = MyPrinter
path = /var/tmp
printable = Yes
guest ok = Yes

The cups configuration file, I get completely lost in it now:
saturnus:/var/log/samba # more /etc/cups/cupsd.conf

“$Id: cupsd.conf.in 8805 2009-08-31 16:34:06Z mike $”

Sample configuration file for the CUPS scheduler. See “man cupsd.conf” for a

complete description of this file.

Log general information in error_log - change “warn” to “debug”

for troubleshooting…

LogLevel debug

Administrator user group…

SystemGroup sys root 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

Restrict access to the server…

<Location />
Allow 127.0.0.1
Allow 161.85.187.*
Allow localhost
Order allow,deny
Allow 127.0.0.2
</Location>

Restrict access to the admin pages…

<Location /admin>
Order allow,deny
Allow localhost
</Location>

Restrict access to configuration files…

<Location /admin/conf>
AuthType Basic
Require user @SYSTEM
Order allow,deny
Allow localhost
</Location>

Set the default printer/job policies…

<Policy default>

Job-related operations must be done by the owner or an administrator…

<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 Rep
rocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>

All administration operations require an administrator to authenticate…

<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>

All printer operations require a printer operator to authenticate…

<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restar
t-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
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>

Set the authenticated printer/job policies…

<Policy authenticated>

Job-related operations must be done by the owner or an administrator…

<Limit Create-Job Print-Job Print-URI>
AuthType Default
Order deny,allow
</Limit>

<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 Rep
rocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Get-Document>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>

All administration operations require an administrator to authenticate…

<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
AuthType Default
Require user @SYSTEM
Order deny,allow
</Limit>

All printer operations require a printer operator to authenticate…

<Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restar
t-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
AuthType Default
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>
AuthType Default
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>

<Limit All>
Order deny,allow
</Limit>
</Policy>

End of “$Id: cupsd.conf.in 8805 2009-08-31 16:34:06Z mike $”.

The policy below is added by openSUSE/Novell during build of our cups package.

The policy ‘allowallforanybody’ is totally open and insecure and therefore

it can only be used within an internal network where only trused users exist

and where the cupsd is not accessible at all from any external host.

Have in mind that any user who is allowed to do printer admin tasks

can change the print queues as he likes (e.g. send copies of confidental

print jobs from an internal network to any external destination).

For documentation regarding ‘Managing Operation Policies’ see

Managing Operation Policies - Documentation - CUPS

<Policy allowallforanybody>
<Limit All>
Order deny,allow
Allow from all
</Limit>
</Policy>

Explicitely set the CUPS ‘default’ policy to be used by default:

DefaultPolicy allowallforanybody
ErrorPolicy retry-job

End of additions by openSUSE/Novell.

2010-07-23,13:26:22 modify_cupsd_conf Allow 127.0.0.1 161.85.187.* localhost

2010-07-23,13:26:22 modify_cupsd_conf BrowseAddress none

2010-07-23,13:26:22 modify_cupsd_conf Listen all

As soon as I select the printer in windows, this messages are logged in /var/log/cups/error_log:

D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 12 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 12 POST / HTTP/1.1
D [26/Jul/2010:14:15:56 +0200] cupsdSetBusyState: Active clients
D [26/Jul/2010:14:15:56 +0200] cupsdAuthorize: No authentication data provided.
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 12 1.1 Get-Jobs 1
D [26/Jul/2010:14:15:56 +0200] Get-Jobs ipp://localhost/printers/MyPrinter
D [26/Jul/2010:14:15:56 +0200] Returning IPP successful-ok for Get-Jobs (ipp://localhost/printers/MyPrinter) from localhost
D [26/Jul/2010:14:15:56 +0200] cupsdSetBusyState: Not busy
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 12 POST / HTTP/1.1
D [26/Jul/2010:14:15:56 +0200] cupsdSetBusyState: Active clients
D [26/Jul/2010:14:15:56 +0200] cupsdAuthorize: No authentication data provided.
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 12 1.1 Get-Printer-Attributes 1
D [26/Jul/2010:14:15:56 +0200] Get-Printer-Attributes ipp://localhost/printers/MyPrinter
D [26/Jul/2010:14:15:56 +0200] Returning IPP successful-ok for Get-Printer-Attributes (ipp://localhost/printers/MyPrinter) from localhost
D [26/Jul/2010:14:15:56 +0200] cupsdSetBusyState: Not busy
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 13 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 13 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 13
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 12 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 12
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11

I don’t have samba on the windows machine.
The samba is running on linux. There is the printer configured with cups, and shared with samba.
On the windows machine I have no idea where to look for causes of errors.

Hmm, after reinstalling samba a few times, now it looks like it is working, but in the printer status on windows, it is still mentioned as Access denied, unable to connect.
But according cups, the print command is arriving and printed.

access_log:
localhost - - [26/Jul/2010:11:57:17 +0200] “POST /printers/MyPrinter HTTP/1.1” 200 1378 Print-Job successful-ok
localhost - - [26/Jul/2010:11:59:28 +0200] “POST /printers/MyPrinter HTTP/1.1” 200 1378 Print-Job successful-ok
Wow, too much information!!! some should’ve been censored, some lost on me.

Are the Windows jobs being printed despite the windows messages?

Yes, today they did.
I don’t know what exactly did the trick.
The “Access denied, unable to connect” status in windows is still there.
I think it has something to do with the with the:
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF
D [26/Jul/2010:14:15:56 +0200] cupsdCloseClient: 11
D [26/Jul/2010:14:15:56 +0200] cupsdAcceptClient: 11 from localhost (Domain)
D [26/Jul/2010:14:15:56 +0200] cupsdReadClient: 11 WAITING Closing on EOF

messages.

Hmmm, IMHO, be happy! don’t worry!!

Until I upgraded to 11.4. Now Samba is not working at all anymore :frowning:
This is a real showstopper. A very important service on my machine.
Is there a known to work config file to share just a directory without any password, login or whatever.

#1 Start new topic.
#2 IMHO, use the Gnome | System | Personal File Sharing to share folders on the network. Instant SMB sharing on Windows network.

There’s something in the 11.4 Release Notes about CIFS (SMB) no longer being enabled by default so you have start it in Yast2 or with chkconfig.

Did you move from 11.2 > 11.3 > 11.4 by doing upgrades or fresh installs, most people would advise a fresh install over an upgrade every time

Have you looked at Yast > Hardware > Printers > Share Printers ?

Remote printer access for the entire network can be set in there

On Tue March 15 2011 12:36 pm, ReneM64 wrote:

>
> Until I upgraded to 11.4. Now Samba is not working at all anymore :frowning:
> This is a real showstopper. A very important service on my machine.
> Is there a known to work config file to share just a directory without
> any password, login or whatever.
>
>
ReneM64;

There is a problem with apparmor and Samba in 11.4. Disable apparmor and
restart both smbd and nmbd. For help configuring Samba read over this
HowTo:

http://opensuse.swerdna.org/suselanprimer.html

If you need additional help then, as tararpharazon suggested, you should start
a new thread and post the contents of your /etc/samba/smb.conf.

P. V.
“We’re all in this together, I’m pulling for you.” Red Green

I did an online upgrade from 11.3 to 11.4.
If I start samba -> /etc/init.d/smb start, it say Starting Samba SMB Daemon.
In /var/run/samba/smbd.pid a new number is entered.
However the smbd daemon is not running.
I try to configure it via yast.
I expect yast to restart the processes after configuring.

Google revealed: AppArmor is suddenly enabled on my system. I don’t remember to switch this one one.

I use the 32 bit version. So maybe it is not restricted to the 64 bit.

I found a bug report about apparmor profiles. I have no clue about why it exist. But I am pritty much sure I don’t need this.

But I found from the bug report the two red lines which are missing in my /etc/profile.d/usr.sbin.smbd file.

#include <tunables/global>

/usr/sbin/smbd {
#include <abstractions/authentication>
#include <abstractions/base>
#include <abstractions/consoles>
#include <abstractions/cups-client>
#include <abstractions/nameservice>
#include <abstractions/samba>
#include <abstractions/user-tmp>
#include <abstractions/wutmp>

capability net_bind_service,
capability setgid,
capability setuid,
capability sys_resource,
capability sys_tty_config,

/etc/mtab r,
/etc/printcap r,
/etc/samba/passdb.tdb rwk,
/etc/samba/secrets.tdb rwk,
/proc/*/mounts r,
/usr/sbin/smbd mr,
/var/cache/samba/** rwk,
/var/cache/samba/printing/printers.tdb mrw,
/var/lib/samba/** rwk,
/var/lib/samba/printers/** rw,
/var/log/samba/cores/smbd/ rw,
/var/log/samba/cores/smbd/** rw,
/var/run/cups/cups.sock rw,
/var/run/dbus/system_bus_socket rw,
/var/run/samba/** rk,
/var/run/samba/smbd.pid rw,
/var/spool/samba/** rw,
@{HOMEDIRS}/** rwlk,

}

Now I get this from :/var/log/samba/log.smbd

[2011/03/16 09:42:25, 0] lib/fault.c:250(dump_core_setup)
Unable to setup corepath for smbd: Permission denied
[2011/03/16 09:42:25, 0] smbd/server.c:1134(main)
smbd version 3.5.7-1.17.1-2505-SUSE-SL11.4-i386 started.
Copyright Andrew Tridgell and the Samba Team 1992-2010
[2011/03/16 09:42:25.271486, 1] param/loadparm.c:7605(lp_do_parameter)
WARNING: The “printer admin” option is deprecated
[2011/03/16 09:42:25.271782, 1] param/loadparm.c:7605(lp_do_parameter)
WARNING: The “printer admin” option is deprecated
[2011/03/16 09:42:25.317028, 0] passdb/pdb_smbpasswd.c:244(startsmbfilepwent)
startsmbfilepwent_internal: file /etc/samba/smbpasswd did not exist. Couldn’t create new one. Error was: Permission deniedUnable to open passdb database.
[2011/03/16 09:42:25.336976, 0] smbd/server.c:501(smbd_open_one_socket)
smbd_open_once_socket: open_socket_in: Address already in use
[2011/03/16 09:42:25.337489, 0] smbd/server.c:501(smbd_open_one_socket)
smbd_open_once_socket: open_socket_in: Address already in use

Was not sufficient. So I switched off apparmor.

NOw the last bit stay’s
[2011/03/16 09:58:52, 0] smbd/server.c:1134(main)
smbd version 3.5.7-1.17.1-2505-SUSE-SL11.4-i386 started.
Copyright Andrew Tridgell and the Samba Team 1992-2010
[2011/03/16 09:58:52.876991, 0] smbd/server.c:501(smbd_open_one_socket)
smbd_open_once_socket: open_socket_in: Address already in use
[2011/03/16 09:58:52.878701, 0] smbd/server.c:501(smbd_open_one_socket)
smbd_open_once_socket: open_socket_in: Address already in use

This seems to be no problem. Now it is working.
So basicly the only thing what was wrong was the apparmor.
When this is switched on, samba will not work.
And after upgrade, it is switched on by default.

There’s a bug in Samba in 11.4.

I’m confused as to what you want to do.

Do you want to share a printer using samba in openSUSE 11.3
or
Do you want to share a directory with no requirements for access credentials in openSUSE 11.4