UNSHAREPRINTERS(1M) UNSHAREPRINTERS(1M)
unsharePrinters - stop sharing local printers with remote hosts.
/usr/sysadm/privbin/unsharePrinters
unsharePrinters is a privileged command that disables the sharing of
local printers by removing the .rhosts file for the "lp" user account.
Additionally, if the "lp" account has no password, '*' is written into
the password field for the "lp" account in /etc/passwd. This prevents
the "lp" account on other hosts from being able to rlogin(3C) to the
local "lp" account, which disables printer sharing.
unsharePrinters will not succeed in disabling access to local printers if
one of the files /etc/hosts.equiv or /etc/hosts.lpd contains entries
other than "localhost". hosts named in either of these files will be
able to submit print jobs. sharePrinters detects these cases and issues
warnings to the system administration log, /var/sysadm/salog.
/var/spool/lp/.rhosts List of hosts which can rlogin to the lp
account.
/etc/passwd Database of user accounts.
/etc/hosts.equiv List of equivalent hosts.
/etc/hosts.lpd Remote access file for the bsd spooler,
lpd(1M).
sysmgr(1M), runpriv(1M), rlogin(1C), sharePrinters(1M), lpsched(1M),
lpd(1M), hosts.equiv(4).
PPPPaaaaggggeeee 1111 [ Back ]
|