Red Hat ENTERPRISE LINUX 5 - DEPLOYMENT Deployment Manual page 303

Hide thumbs Also See for ENTERPRISE LINUX 5 - DEPLOYMENT:
Table of Contents

Advertisement

Stand-alone Server
guest ok = Yes
20.6.1.3. Anonymous Print Server
The following smb.conf file shows a sample configuration needed to implement an anonymous
print server. Setting browseable to no as shown does not list the printer in Windows Network
Neighborhood. Although hidden from browsing, configuring the printer explicitly is possible. By
connecting to DOCS_SRV using NetBIOS, the client can have access to the printer if the client is
also part of the DOCS workgroup. It is also assumed that the client has the correct local printer driver
installed, as the use client driver directive is set to Yes. In this case, the Samba server has no
responsibility for sharing printer drivers to the client.
[global]
workgroup = DOCS
netbios name = DOCS_SRV
security = share
printcap name = cups
disable spools= Yes
show add printer wizard = No
printing = cups
[printers]
comment = All Printers
path = /var/spool/samba
guest ok = Yes
printable = Yes
use client driver = Yes
browseable = Yes
20.6.1.4. Secure Read/Write File and Print Server
The following smb.conf file shows a sample configuration needed to implement a secure read/
write print server. Setting the security directive to user forces Samba to authenticate client
connections. Notice the [homes] share does not have a force user or force group directive
as the [public] share does. The [homes] share uses the authenticated user details for any files
created as opposed to the force user and force group in [public].
[global]
workgroup = DOCS
netbios name = DOCS_SRV
security = user
printcap name = cups
disable spools = Yes
show add printer wizard = No
printing = cups
[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No
[public]
comment = Data
path = /export
force user = docsbot
force group = users
guest ok = Yes
[printers]
277

Advertisement

Table of Contents
loading

Table of Contents