Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
samba printing
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Sun Feb 19, 2017 3:14 pm    Post subject: samba printing Reply with quote

something in kde made me "upgrade" to samba 4

now network printing fails

I need to share printer with windows, mac and linux machines; this has always
worked in the past (samba 3)

when a remote machine requests to print I get a cups error:

Quote:
"Session setup failed: NT_STATUS_LOGON_FAILURE"


smbclient -L for the server machine reports:

Quote:
smbclient -L 192.168.0.3
Enter wesx1's password:
Anonymous login successful
Domain=[UOFT] OS=[Windows 6.1] Server=[Samba 4.2.14]

Sharename Type Comment
--------- ---- -------
IPC$ IPC IPC Service (Samba Server 4.2.14)
HP_LaserJet_2200 Printer HP_LaserJet_2200
Anonymous login successful
Domain=[UOFT] OS=[Windows 6.1] Server=[Samba 4.2.14]

Server Comment
--------- -------
GANDALF Samba Server 4.2.14

Workgroup Master
--------- -------
UOFT GANDALF


Here is my smb.conf file:

Quote:
# Samba config file created using SWAT
# from localhost.localdomain (127.0.0.1)
# Date: 2001/09/22 21:27:29

# Global parameters
[global]
workgroup = UOFT
server string = Samba Server %v
interfaces = lo eth1
bind interfaces only = yes
hosts allow = 127.0.0.1 192.168.0.0/24
hosts deny = 0.0.0.0/0
# security = user
wins support = yes
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = cups
load printers = yes
printing = cups
guest ok = yes

[printers]
comment = All Printers
security = server
path = /var/spool/samba
browseable = yes
# to allow user 'guest account' to print.
guest ok = yes
writable = no
printable = yes
create mode = 0770
public = yes


trying to print a file via command line with lpr the cups error log shows:

Quote:
E [19/Feb/2017:10:10:10 -0500] [Job 66] Session setup failed: NT_STATUS_LOGON_FAILURE
E [19/Feb/2017:10:10:10 -0500] [Job 66] Session setup failed: NT_STATUS_LOGON_FAILURE


my network cannot print ... which is bad so help would be appreciated
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Sun Feb 19, 2017 3:58 pm    Post subject: Reply with quote

answering my own question, a deeper dive into the internet came up
with a possible solution

add to my smb.conf in global section:

Code:
        security = user
        guest account = root
        map to guest = Bad User


and to my printer share:

Code:
      force create mode = 0755
        force directory mode = 0755


I can now print from remote machines but I am not sure these
changes are a good idea ...

if anyone wants to comment on that please do - I'm waiting a bit to add "solved"
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum