Sponsored Content
Contact Us Post Here to Contact Site Administrators and Moderators Can not locate a thread to answer - Have solution to post Post 302073024 by sunsharma on Tuesday 9th of May 2006 04:15:31 PM
Old 05-09-2006
Can not locate a thread to answer - Have solution to post

I have found answer to this issue, But I could not figure how to reply to thread.

I could search for this thread using "only root can print"

Please let me how i can find this thread and answer for public.

Thanks
Sunil Sharma



03-02-2005
bsnavarra
Registered User Join Date: Mar 2005
Posts: 3

Only root can print

--------------------------------------------------------------------------------

Hi, I have this strange problem. Only root users can print, normal users cannot and no errors are shown, the command is just ignored. I am sure its a problem with rights but dont know where....I hope you can help, thanks.

bsnavarra
View Public Profile
Send a private message to bsnavarra
Find all posts by bsnavarra
Add bsnavarra to Your Buddy List

#2 03-02-2005
RTM
Moderate Moderator Join Date: Apr 2002
Location: On my motorcycle
Posts: 2,739

Is this printing from command line or from within an application? New server or just new problem? What's the OS AND version?

You state no error are shown - have you looked in your messages file or just stating "no errors are shown ON SCREEN WHEN normal users attempt to print"?

Check your lp binaries - if they have the wrong ownership or permissions, ordinary users won't be able to print.
Check your /tmp directory permissions - known issue of some 3rd party apps changing permissions on /tmp and then folks can no longer print.
Check permissions on /usr/spool/lp and/or /var/spool/lp

Please post back with the requested information or your solution if found.

RTM
View Public Profile
Send a private message to RTM
Find all posts by RTM
Add RTM to Your Buddy List

#3 03-02-2005
bsnavarra
Registered User Join Date: Mar 2005
Posts: 3

from an application, I havnt yet tried from the command prompt. New problem, I am using SCO OpenServer 5.0.6.

Have not checked the messages file, but no errors are shown on the user screen and either on the console screen. Also there is no job in the printer queue.

What must the persmissions be on the lp binaries?

Thanks for helping..

bsnavarra
View Public Profile
Send a private message to bsnavarra
Find all posts by bsnavarra
Add bsnavarra to Your Buddy List

#4 03-02-2005
RTM
Moderate Moderator Join Date: Apr 2002
Location: On my motorcycle
Posts: 2,739

Is this a local printer (attached to the SCO server) or a network printer?

If it's a network printer, first check the permission on /etc/hosts:
See SCO - Non-root users are unable to print to (JetDirect) network printers

And since I can't seem to find the right information:
SCO - printing a file - this should assist somewhat.

RTM
View Public Profile
Send a private message to RTM
Find all posts by RTM
Add RTM to Your Buddy List

#5 03-02-2005
bsnavarra
Registered User Join Date: Mar 2005
Posts: 3

its a local printer connected directly to the server via a serial DigiBoard.

I will try this printing to a file bit to see what happens.
 

6 More Discussions You Might Find Interesting

1. Forum Support Area for Unregistered Users & Account Problems

Help I can not Post a Thread

I can not Post a Thread. (1 Reply)
Discussion started by: spiderman3k
1 Replies

2. Forum Support Area for Unregistered Users & Account Problems

help to post a thread

hi,, sorry, couldnt navigate myself to post a new thread, pls guide if possible Thanks santhosh (1 Reply)
Discussion started by: santy_33
1 Replies

3. Post Here to Contact Site Administrators and Moderators

How to post a new thread

Im new to this forum. can you guide me how to post a new thread. Thanks in advance Hari (3 Replies)
Discussion started by: Hari123
3 Replies

4. Post Here to Contact Site Administrators and Moderators

i can not post new thread

Hi scoot Hope you are doing well!! I didn't post any new thread, is their any problem in my access could you please check it and let me know. Previously posted threads was one of my interview question and i didn't understand how to solve , i am a new for shell script, i didn't find any help... (2 Replies)
Discussion started by: ksakil
2 Replies

5. Forum Support Area for Unregistered Users & Account Problems

Not able to post thread/reply to thread

Dear Moderator I am not able to post any new thread or post reply to mine old thread. Kindly help as i am stuck on one problem and needed suggestion. Regards Jaydeep (1 Reply)
Discussion started by: jaydeep_sadaria
1 Replies

6. Post Here to Contact Site Administrators and Moderators

If a closed thread/post is missing solution details, then how to contact the person?

Hi, Following post owner has realized a solution but he/she is not clear on the details. I need to ask him but couldnt PM since my posts count is only 4 yet. " Mail is not sent by cron daemon Solaris " by tlogine Regards, Hasan (3 Replies)
Discussion started by: hasan.kamali
3 Replies
lpc(1B) 					     SunOS/BSD Compatibility Package Commands						   lpc(1B)

NAME
lpc - line printer control program SYNOPSIS
/usr/ucb/lpc [ command [ parameter...]] DESCRIPTION
The lpc utility controls the operation of local printers. Use lpc to perform the following functions: o start or stop a printer, o disable or enable a printer's spooling queue, o rearrange the order of jobs in a print queue, or o display the status of a printer print queue and printer daemon. lpc can be run from the command line or interactively. Specifying lpc with the optional command and parameter arguments causes lpc to interpret the first argument as an lpc command, and all other arguments as parameters to that command. Specifying lpc without arguments causes it to run interactively, prompting the user for lpc commands with lpc>. By redirecting the standard input, lpc can read commands from a file. USAGE
lpc commands may be typed in their entirety or abbreviated to an unambiguous substring. Some lpc commands are available to all users; oth- ers are available only to super-users. All users may execute the following lpc commands: ? [command ...] | help [command ...] Displays a short description of command. command is an lpc command. If command is not specified, displays a list of lpc commands. exit | quit Exits from lpc. status [all | printer ...] Displays the status of print daemons and print queues. all specifies that this command is performed on all locally attached printers. printer indicates this command is performed on specific printers. Specify printer as an atomic name. See printers.conf(4) for infor- mation regarding naming conventions for atomic names. Only a super-user may execute the following lpc commands: abort [all | printer ...] Terminates an active spooling daemon. Disables printing (by preventing new daemons from being started by lpr(1B)) for printer. all specifies this command is performed on all locally attached printers. printer indicates this command is performed on specific printers. Specify printer as an atomic name. See printers.conf(4) for information regarding naming conventions for atomic names. clean [all | printer ...] Removes files created in the print spool directory by the print daemon from printer 's print queue. all specifies that this command is performed on all locally attached printers.printer indicates this command is performed on specific printers. Specify printer as an atomic name. See printers.conf(4) for information regarding naming conventions for atomic names. disable [all | printer ...] Turns off the print queue for printer. Prevents new printer jobs from being entered into the print queue for printerby lpr(1B). all specifies that this command is performed on all locally attached printers. printer indicates this command is performed on specific printers. Specify printer as an atomic name. See printers.conf(4) for information regarding naming conventions for atomic names. down [all | printer ...] [message] Turns the queue for printer off and disables printing on printer. Inserts message in the printer status file. message does not need to be quoted; multiple arguments to message are treated as arguments are to echo(1). Use down to take a printer down and inform users. all specifies that this command is performed on all locally attached printers. printer indicates this command is performed on specific printers. Specify printer as an atomic name. See printers.conf(4) for information regarding naming conventions for atomic names. enable [all | printer ...] Enables lpr(1B) to add new jobs in the spool queue. all specifies that this command is performed on all locally attached printers. printer indicates this command is performed on specific printers. Specify printer as an atomic name. See printers.conf(4) for infor- mation regarding naming conventions for atomic names. restart [all | printer ...] Attempts to start a new printer daemon. restart is useful when a print daemon dies unexpectedly and leaves jobs in the print queue. all specifies that this command is performed on all locally attached printers. printer indicates that this command is performed on specific printers. Specify printer as an atomic name. See printers.conf(4) for information regarding naming conventions for atomic names. start [all | printer ...] Enables printing. Starts a spooling daemon for the printer. all specifies that this command is performed on all locally attached printers. printer indicates the command is performed on specific printers. Specify printer as an atomic name. See printers.conf(4) for information regarding naming conventions for atomic names. stop [all | printer ...] Stops a spooling daemon after the current job is complete. Disables printing at that time. all specifies that this command is performed on all locally attached printers. printer indicates this command is performed on specific printers. Specify printer as an atomic name. See printers.conf(4) for information regarding naming conventions for atomic names. topq printer [request-ID ...] [user ...] Moves request-ID or print jobs belonging to user on printer to the beginning of the print queue. Specify user as a user's login name. Specify printer as an atomic name. See printers.conf(4) for information regarding naming conventions for atomic names. up [all | printer ...] Turns the queue for printer on and enables printing on printer. Deletes the message in the printer status file (inserted by down). Use up to undo the effects of down. all specifies that this command is performed on all locally attached printers. printer indicates this command is performed on specific printers. Specify printer as an atomic name. See printers.conf( 4) for information regarding naming conventions for atomic names. EXIT STATUS
The following exit values are returned: 0 Successful completion. non-zero An error occurred. FILES
/var/spool/lp/* LP print queue. /var/spool/lp/system/pstatus Printer status information file. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWscplp | +-----------------------------+-----------------------------+ SEE ALSO
echo(1), lpq(1B), lpr(1B), lprm(1B), lpstat(1), lpsched(1M), lpshut(1M), svcadm(1M), printers.conf(4), attributes(5) DIAGNOSTICS
Use the svcs(1) utility to check if svc:/application/print/server is running. If it is not running, use svcadm enable svc:/applica- tion/print/server to start lpsched. See svcadm(1M). Ambiguous command Indicates that the lpc command or abbreviation matches more than one command. ?Invalid command Indicates that the lpc command or abbreviation is not recognized. ?Privileged command Indicates that the lpc command or abbreviation can be executed only by a super-user. lpc: printer: unknown printer to the print service Indicates that printer does not exist in the LP database. Check that printer was correctly specified. Use lpstat -p or the status command (see lpstat(1) or USAGE) to check the status of printers. lpc: error on opening queue to spooler Indicates that the connection to lpsched failed. Usually means that the printer server has died or is hung. Use /usr/lib/lp/lpsched to check if the printer spooler daemon is running. lpc: Can't send message to LP print service lpc: Can't receive message from LP print service Indicates that the LP print service stopped. Contact the LP administrator. lpc: Received unexpected message from LP print service Indicates a problem with the software. Contact the LP administrator. SunOS 5.10 5 Aug 2004 lpc(1B)
All times are GMT -4. The time now is 12:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy