-
how to share printer
seem to not be able to get this to work... I got hit by lightning, blew out the Ethernet port on my printer... so i'm trying usb to my clearos.
# lsusb
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 008: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 007: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 005: ID 03f0:4417 HP, Inc EWS UPD
Bus 001 Device 004: ID 051d:0002 American Power Conversion Uninterruptible Power Supply
Bus 001 Device 009: ID 045e:0039 Microsoft Corp. IntelliMouse Optical
Bus 001 Device 006: ID 046d:c30f Logitech, Inc. Logicool HID-Compliant Keyboard (106 key)
Bus 001 Device 003: ID 0557:7000 ATEN International Co., Ltd Hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 003: ID 2109:8110 VIA Labs, Inc. Hub
Bus 004 Device 002: ID 2109:8110 VIA Labs, Inc. Hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# testparm
Load smb config files from /etc/samba/smb.conf
NOTE: Service printers is flagged unavailable.
NOTE: Service print$ is flagged unavailable.
NOTE: Service profiles is flagged unavailable.
Loaded services file OK.
'winbind separator = +' might cause problems with group membership.
Server role: ROLE_DOMAIN_PDC
Press enter to see a dump of your service definitions
# Global parameters
[global]
add machine script = /usr/sbin/samba-add-machine "%u"
domain logons = Yes
domain master = Yes
guest account = guest
interfaces = lo enp7s0
ldap admin dn = cn=manager,ou=Internal,dc=system,dc=lan
ldap connection timeout = 8
ldap group suffix = ou=Groups,ou=Accounts
ldap idmap suffix = ou=Idmap
ldap machine suffix = ou=Computers,ou=Accounts
ldap ssl = no
ldap suffix = dc=system,dc=lan
ldap user suffix = ou=Users,ou=Accounts
log file = /var/log/samba/%L-%m
logon drive = U:
logon home = \\%L\%U
logon path =
logon script = logon.cmd
max log size = 0
ntlm auth = ntlmv1-permitted
passdb backend = ldapsam:ldap://127.0.0.1
passwd chat = *password:* %n\n *password:* %n\n *successfully.*
passwd chat timeout = 10
passwd program = /usr/sbin/userpasswd %u
preferred master = Yes
printcap name = /etc/printcap
security = USER
server max protocol = NT1
server string = MyServer
template homedir = /home/%U
template shell = /sbin/nologin
unix password sync = Yes
utmp = Yes
winbind enum groups = Yes
winbind enum users = Yes
winbind expand groups = 1
winbind offline logon = Yes
winbind separator = +
winbind use default domain = Yes
wins support = Yes
workgroup = IRKSHOUSE
idmap config * : ldap_user_dn = cn=manager,ou=Internal,dc=system,dc=lan
idmap config * : ldap_base_dn = ou=Idmap,dc=system,dc=lan
idmap config * : ldap_url = ldap://127.0.0.1
idmap config * : range = 20000000-29999999
idmap config * : backend = ldap
include = /etc/samba/flexshare.conf
[movies]
comment = Movies
create mask = 0664
directory mask = 0775
path = /var/flexshare/shares/movies
read only = No
valid users = @%D\allusers @allusers
veto files = /.flexshare*/
vfs objects = recycle:recycle
recycle:excludedir = /.trash,/tmp,/temp,/TMP,/TEMP
recycle:exclude = *.tmp,*.temp,*.o,*.obj,*.TMP,*.TEMP,~*.*
recycle:noversions = *.tmp,*.temp,*.o,*.obj,*.TMP,*.TEMP,~*.*
recycle:directory_mode = 0775
recycle:touch = No
recycle:keeptree = Yes
recycle:versions = Yes
recycle:maxsize = 0
recycle:repository = .trash/%U
[irk]
comment = Various Computer Files
create mask = 0664
directory mask = 0775
path = /var/flexshare/shares/irk
read only = No
valid users = @%D\allusers @allusers
veto files = /.flexshare*/
vfs objects = recycle:recycle
recycle:excludedir = /.trash,/tmp,/temp,/TMP,/TEMP
recycle:exclude = *.tmp,*.temp,*.o,*.obj,*.TMP,*.TEMP,~*.*
recycle:noversions = *.tmp,*.temp,*.o,*.obj,*.TMP,*.TEMP,~*.*
recycle:directory_mode = 0775
recycle:touch = No
recycle:keeptree = Yes
recycle:versions = Yes
recycle:maxsize = 0
recycle:repository = .trash/%U
[music]
comment = Music
create mask = 0664
directory mask = 0775
path = /var/flexshare/shares/music
read only = No
valid users = @%D\allusers @allusers
veto files = /.flexshare*/
vfs objects = recycle:recycle
recycle:excludedir = /.trash,/tmp,/temp,/TMP,/TEMP
recycle:exclude = *.tmp,*.temp,*.o,*.obj,*.TMP,*.TEMP,~*.*
recycle:noversions = *.tmp,*.temp,*.o,*.obj,*.TMP,*.TEMP,~*.*
recycle:directory_mode = 0775
recycle:touch = No
recycle:keeptree = Yes
recycle:versions = Yes
recycle:maxsize = 0
recycle:repository = .trash/%U
[flac]
comment = Lossless Audio
create mask = 0664
directory mask = 0775
path = /var/flexshare/shares/flac
read only = No
valid users = @%D\allusers @allusers
veto files = /.flexshare*/
vfs objects = recycle:recycle
recycle:excludedir = /.trash,/tmp,/temp,/TMP,/TEMP
recycle:exclude = *.tmp,*.temp,*.o,*.obj,*.TMP,*.TEMP,~*.*
recycle:noversions = *.tmp,*.temp,*.o,*.obj,*.TMP,*.TEMP,~*.*
recycle:directory_mode = 0775
recycle:touch = No
recycle:keeptree = Yes
recycle:versions = Yes
recycle:maxsize = 0
recycle:repository = .trash/%U
[hdhomerun]
comment = TV_Recordings
create mask = 0664
directory mask = 0775
path = /var/flexshare/shares/hdhomerun
read only = No
valid users = @%D\allusers @allusers
veto files = /.flexshare*/
[homes]
browseable = No
comment = Home Directories
path = /home/%U
read only = No
valid users = %D\%S %D+%S %S
[printers]
available = No
browseable = No
comment = Print Spool
cups options = raw
guest ok = Yes
path = /var/spool/samba
printable = Yes
read only = No
use client driver = Yes
[print$]
available = No
comment = Printer Drivers
path = /var/samba/drivers
read only = No
[netlogon]
browseable = No
comment = Network Logon Service
locking = No
path = /var/samba/netlogon
read only = No
[profiles]
available = No
browseable = No
comment = Profile Share
force directory mode = 02775
force group = domain_users
path = /var/samba/profiles
read only = No -