Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why smb.conf needed to print to a smb printer? Mitigation?
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
equaeghe
l33t
l33t


Joined: 22 Feb 2005
Posts: 630

PostPosted: Fri Sep 03, 2021 12:59 pm    Post subject: Why smb.conf needed to print to a smb printer? Mitigation? Reply with quote

My institute provides smb-access to its printers. To get that to work, I needed to create a smb.conf file. As far as I understood, a smb.conf is normally only needed to set up a server, not to act as a client. So my first question is: Why is this needed?

Now, given that I must set up a smb.conf file, how do I create one that is minimal and actually does not provide a server, so that I mitigate and therefore do not have to worry about security implications?
Back to top
View user's profile Send private message
Tatsh
Apprentice
Apprentice


Joined: 22 Jul 2007
Posts: 187

PostPosted: Wed Oct 06, 2021 12:42 am    Post subject: Reply with quote

Does your institute provide IPP access to the printers? That is easier to set up with CUPS.
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Wed Oct 06, 2021 2:24 am    Post subject: Reply with quote

equaeghe wrote:
As far as I understood, a smb.conf is normally only needed to set up a server, not to act as a client.


The smb.conf file is also read by the Samba suite's client applications, as confirmed in the section HOW CONFIGURATION FILES ARE APPLIED:

https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html
_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
equaeghe
l33t
l33t


Joined: 22 Feb 2005
Posts: 630

PostPosted: Wed Oct 06, 2021 7:52 am    Post subject: Reply with quote

Tatsh wrote:
Does your institute provide IPP access to the printers? That is easier to set up with CUPS.
No, the only usable way is to use smb.
Back to top
View user's profile Send private message
equaeghe
l33t
l33t


Joined: 22 Feb 2005
Posts: 630

PostPosted: Thu Oct 07, 2021 8:48 pm    Post subject: Reply with quote

Fitzcarraldo wrote:
The smb.conf file is also read by the Samba suite's client applications, as confirmed in the section HOW CONFIGURATION FILES ARE APPLIED: https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html

Thanks.

Now the question remains what a minimal smb.conf looks like that is maximally secure…
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