- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- LPD not working -- "You are not authorized" errors
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2008 10:24 AM
01-11-2008 10:24 AM
LPD not working -- "You are not authorized" errors
: lpd: You are not authorized for line printer access
Anyone know what the problem could be?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2008 10:31 AM
01-11-2008 10:31 AM
Re: LPD not working -- "You are not authorized" errors
Verify that your permissions and ownership of '/usr/bin/lpstat' look like:
-r-sr-xr-x 1 lp bin 53248 Jun 2 2006 /usr/bin/lpstat
If not, do:
# chmod 4555 /usr/bin/lpstat
# chown lp:bin /usr/bin/lpstat
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2008 10:37 AM
01-11-2008 10:37 AM
Re: LPD not working -- "You are not authorized" errors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2008 10:50 AM
01-11-2008 10:50 AM
Re: LPD not working -- "You are not authorized" errors
OK, verify:
-r-sr-xr-x 1 root bin 73728 Jun 2 2006 /usr/sbin/rlpdaemon
-r-sr-xr-x 1 root bin 53248 Jun 2 2006 /usr/sbin/lpsched
-r-sr-xr-x 1 lp bin 40960 Jun 2 2006 /usr/bin/cancel
-r-sr-xr-x 1 lp bin 28672 Jun 2 2006 /usr/bin/disable
-r-sr-xr-x 1 lp bin 20480 Jun 2 2006 /usr/bin/enable
-r-sr-xr-x 1 lp bin 53248 Jun 2 2006 /usr/bin/lpstat
-r-sr-xr-x 1 lp bin 16384 Nov 14 2000 /usr/bin/slp
-r-sr-xr-x 1 lp bin 20480 Jun 2 2006 /usr/sbin/accept
-r-sr-xr-x 1 lp bin 24576 Jun 2 2006 /usr/sbin/lpfence
-r-sr-xr-x 1 lp bin 28672 Jun 2 2006 /usr/sbin/lpmove
-r-sr-xr-x 1 lp bin 16384 Jun 2 2006 /usr/sbin/lpshut
-r-sr-xr-x 1 lp bin 20480 Jun 2 2006 /usr/sbin/reject
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2008 11:10 AM
01-11-2008 11:10 AM
Re: LPD not working -- "You are not authorized" errors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2008 11:14 AM
01-11-2008 11:14 AM
Re: LPD not working -- "You are not authorized" errors
Does your '/etc/inetd.conf' have the daemon:
printer stream tcp nowait root /usr/sbin/rlpdaemon rlpdaemon -i
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2008 11:19 AM
01-11-2008 11:19 AM
Re: LPD not working -- "You are not authorized" errors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2008 11:37 AM
01-11-2008 11:37 AM
Re: LPD not working -- "You are not authorized" errors
Also verify:
-r-sr-xr-- 1 root lp 32768 Jun 2 2006 /usr/sbin/rlp
...and have a look at Technical Knowledge Base document ID: emr_na-c00879850-3
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2008 05:53 PM
01-11-2008 05:53 PM
Re: LPD not working -- "You are not authorized" errors
swverify -v PrinterMgmt.LP-SPOOL
At the end of this command, there is a line for swjob that will show the results. Any errors in the /usr/share directory can be ignored -- these are just man page directories. The swverify command will look at every part of the spooler.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2008 10:05 PM
01-11-2008 10:05 PM
Re: LPD not working -- "You are not authorized" errors
From what I understand, you get "permission denied" from REMOTE PRINTER QUEUES (or at least
some of them). From your message,
it looks like you get correct status of
local printers, or am I wrong in assuming so?
a) Since you execute the command lpstat
as root, the permissions of commands are not
crucial part of your problem, unless some very
weird directory permissions on the spooling
directories.
b) If the errors happen for certain remote printers, then the problem is probably on the
remote server that manages the print queues.
For example, remote server (if it is an HP-UX host) might use /var/adm/inetd.sec to manage
access to printer protocol, or
maybe rlpdaemon is disabled in /etc/inetd.conf, or inetd is down, and so on).
c) Make sure that all printers are reachable
(basic check is ICMP test like ping,
or open port 9100 if JetDirect, 515 for standard spoolers, and so on).
I recently had an audit of a customer
who had around 500 printer queues on
HP-UX servers and only around 150 were
active (the rest were obsolete, dead
printers).
Cheers,
VK2COT