sharePrinters(1M)
sharePrinters - share local printers with remote hosts.
As shipped in IRIX 6.5.30. Unchanged since IRIX 6.5.
NAME sharePrinters - share local printers with remote hosts. SYNOPSIS /usr/sysadm/privbin/sharePrinters -all /usr/sysadm/privbin/sharePrinters -hosts host-name [ ... ] DESCRIPTION sharePrinters is a privileged command that enables the sharing of local printers by editing the .rhosts file for the "lp" user account. When "lp" on one IRIS can rlogin(1C) to the "lp" account on another IRIS, the first IRIS can then forward print jobs to the second IRIS. When the -all option is used, /var/spool/lp/.rhosts is edited to contain one line with the single character '+'. This enables remote access for all hosts. When the -hosts option is used, /var/spool/lp/.rhosts is edited to contain one line for each host specified on the command line. The canonical host name is used for each host specified. Additionally, if the "lp" account has no password, '*' is written into the password field for the "lp" account in /etc/passwd. This disables logins to the "lp" account from machines that are not mentioned in /var/spool/lp/.rhosts (or /etc/hosts.equiv; see below). This restricts remote access to those hosts specified on the sharePrinters command line. CAVEATS sharePrinters -hosts will not succeed in restricting access to the hosts passed in on the command line 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 also be able to submit print jobs. sharePrinters detects these cases and issues warnings to the system administration log, /var/sysadm/salog. If one of the hosts passed to sharePrinters -hosts is also sharing printers, it is possible that unauthorized hosts can forward jobs through that host. FILES /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). SEE ALSO sysmgr(1M), runpriv(1M), rlogin(1C), unsharePrinters(1M), lpsched(1M), lpd(1M), hosts.equiv(4).