Linux printer share for NT 4.0 clients..
AG
green at wombat.eng.fsu.edu
Tue Apr 20 03:20:40 GMT 1999
Hello,
I'm a samba novice ;(
Saw your "detailed" responses to another newbie questions so I thought I
give you a shout :)
Here is my setup:
I've got 2 Linux boxes. One is running Ypserv and handles the
authentication, the other is a 486 33mhz running ypbind(slave) and it
is my printserver. The print server is also running 1.9.18 samba
release as a daemon (smbd -D).
It has two printers attached via parallel ports and each is shared
service.. I know this b/c when I do *smbclient -L "myhostname"* , they
come up as shared clients.
So each authenticated user can actually mount their " \" directory..
They don't actually have accts on the printserver(don't have the disk
space).
I've got 10 NT 4.0 boxes which need to print to these shared printers..
However, printing only occurs when I "physically" mount the home
directory via "\\hostname\home_dir".
I want samba to offer the network printers as a share device to each
authenticated user automatically.
Should be transparent to the user..
How do I do this? Please be advised that Ialso want a secure network..
I don't want everyone to utilize these printers...
I've attached the output of "testparm" for your review.
Thanks in advance..
--
Alfred
________________________________________________
FAMU-FSU COE ASME Webmaster
http://www.eng.fsu.edu/~green
green at eng.fsu.edu
agreen at scri.fsu.edu
_________________________________________________
-------------- next part --------------
Load smb config files from /etc/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[lphp]"
Processing section "[lpep]"
Loaded services file OK.
Press enter to see a dump of your service definitions
# Global parameters
debuglevel = 2
syslog = 1
syslog only = No
protocol = NT1
security = SERVER
max disk size = 0
lpq cache time = 10
announce as = NT
encrypt passwords = No
update encrypted = No
getwd cache = Yes
read prediction = No
read bmpx = Yes
read raw = Yes
write raw = Yes
use rhosts = No
load printers = Yes
null passwords = No
strip dot = No
interfaces =
bind interfaces only = No
networkstation user login = No
password server = mechrs1
socket options = TCP_NODELAY
netbios name =
netbios aliases =
smbrun = /usr/bin/smbrun
log file = /var/log/samba/log.%m
config file =
smb passwd file = /etc/smbpasswd
hosts equiv =
preload =
server string = Samba Server
printcap name = /etc/printcap
lock dir = /var/spool/samba/lock
root directory = /
default service =
message command =
dfree command =
passwd program = /usr/bin/smbpasswd
passwd chat = *old*password* %o\n *new*password* %n\n *new*password* %n\n *changed*
passwd chat debug = No
valid chars =
workgroup = @ME230
username map =
character set =
logon script =
logon path = \\%N\%U\profile
logon drive =
logon home = \\%N\%U
remote announce =
remote browse sync =
socket address = 0.0.0.0
homedir map =
announce version = 4.2
max log size = 50
mangled stack = 50
max mux = 50
max xmit = 65535
max packet = 65535
name resolve order = lmhosts host wins bcast
packet size = 65535
password level = 0
username level = 0
keepalive = 0
deadtime = 0
time offset = 0
read size = 16384
shared mem size = 102400
coding system =
client code page = 850
os level = 0
max ttl = 14400
max wins ttl = 259200
min wins ttl = 21600
lm announce = Auto
lm interval = 60
dns proxy = No
wins support = No
wins proxy = No
wins server =
preferred master = No
local master = Yes
domain master = No
domain logons = No
browse list = Yes
unix realname = No
NIS homedir = No
unix password sync = No
time server = No
ole locking compatibility = Yes
printer driver file = /etc/printers.def
# Default service parameters
comment =
copy =
include =
exec =
postexec =
root preexec =
root postexec =
alternate permissions = No
revalidate = No
default case = lower
case sensitive = No
preserve case = No
short preserve case = No
mangle case = No
mangling char = ~
browseable = Yes
available = Yes
path =
username =
guest account = nobody
invalid users =
valid users =
admin users =
read list =
write list =
volume =
force user =
force group =
read only = Yes
max connections = 0
min print space = 0
create mask = 0744
force create mode = 00
directory mask = 0755
force directory mode = 00
set directory = No
status = Yes
hide dot files = Yes
delete veto files = No
veto files =
hide files =
veto oplock files =
guest only = No
guest ok = No
print ok = No
postscript = No
map system = No
map hidden = No
map archive = Yes
locking = Yes
strict locking = No
share modes = Yes
oplocks = Yes
only user = No
wide links = Yes
follow symlinks = Yes
sync always = No
strict sync = No
mangled names = Yes
fake oplocks = No
printing = bsd
print command = lpr -r -P%p %s
lpq command = lpq -P%p
lprm command = lprm -P%p %j
lppause command =
lpresume command =
queuepause command =
queueresume command =
printer =
printer driver = NULL
printer driver location =
hosts allow =
hosts deny =
dont descend =
magic script =
magic output =
mangled map =
delete readonly = No
dos filetimes = No
dos filetime resolution = No
fake directory create times = No
[homes]
comment = Home Directories
browseable = No
read only = No
create mask = 0755
[printers]
comment = All Printers
browseable = No
path = /var/spool/samba
create mask = 0700
guest ok = Yes
print ok = Yes
[lphp]
path = /var/spool/lpd/lphp
read only = No
guest ok = Yes
print ok = Yes
print command = lpr -r -h -P %p %s
printer = lphp
[lpep]
path = /var/spool/lpd/lpep
print ok = Yes
print command = lpr -r -h -P %p %s
printer = lpep
[lppcl]
path = /var/spool/samba
read only = No
create mask = 0700
guest ok = Yes
print ok = Yes
share modes = No
oplocks = No
printer = lppcl
[IPC$]
comment = IPC Service (Samba Server)
path = /tmp
status = No
guest ok = Yes
More information about the samba
mailing list