Sponsored Content
Top Forums UNIX for Dummies Questions & Answers print queue behavior on HP-UX Post 54795 by dangral on Tuesday 24th of August 2004 04:59:01 PM
Old 08-24-2004
Progress...I was not able to ls -l to get the symlink because this is not a physical printer so HP just copies the file to the request directory.

I figured out a way to get the original filename and location, but then ran into a problem because lp couldnt read the file (ACL). I added lp to the correct ACL group and was able to read the file if I did a su - lp.

However, when using the interface, I was not able to read the file. I had to manually put a newgrp command in the interface script.

So it works now. But any ideas why lp could not get the groups straight within the interface script?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Problem with print queue

I have a problem with a print queue that keeps going down on me every couple of days. When it happens I run an 'enable' and all is fine for a few more days. Can anyone can tell me where to start looking to debug this problem as i am new to UNIX Thanx (1 Reply)
Discussion started by: carell
1 Replies

2. AIX

AIX 5 print queue

I have setup a printer and queue using SMIT and I have set the default tray to 4. What I am trying to find out is if there is a way to set the next tray it trys to use if tray 4 is empty to tray 3, then tray 2, then tray 1. (0 Replies)
Discussion started by: chefsride
0 Replies

3. UNIX for Dummies Questions & Answers

Print to a ps2pdf print queue.

I am trying to create a printer queue, on a SunOS 5.7 system, that outputs a pdf file. There is an application running on the system that has a print button, which sends print files to the default printer. If I disable the printer, I am able to manually capture the files in /var/spool/lp/tmp and... (1 Reply)
Discussion started by: Sean_69
1 Replies

4. Solaris

Print to ps2pdf print queue

I am trying to create a printer queue, on a SunOS 5.7 system, that outputs a pdf file. There is an application running on the system that has a print button, which sends print files to the default printer. If I disable the printer, I am able to manually capture the files in /var/spool/lp/tmp and... (2 Replies)
Discussion started by: Sean_69
2 Replies

5. HP-UX

Print queue not getting flushed

Hi All, I am new to HP-UX and new to administration world. I have a problem with two HP Laser Jet M5035MFP printers which are connected to HP-UX host machines. Problem is that whenver we print a job, the job gets printed very fine but the queue is not cleared. This makes the further jobs on the... (2 Replies)
Discussion started by: akashgulati
2 Replies

6. Shell Programming and Scripting

Print Queue Montior

I am very new to scripting could use some assistance polishing up my script. I have had issues with a print queue going down and needing some TLC to get it going again, however currently I have to wait for a user to complain about the issue. I have written a little script to monitor the print queue... (0 Replies)
Discussion started by: tdiYUZER
0 Replies

7. AIX

Print queue restriction

Hi, I'm at AIX 5.3, I have a print queue named chqprinter, I want to allow access to print only 2 users to that print queue, jobs printed by all other users to above queue should be deleted. Any idea how to achieve that? ---------- Post updated at 10:33 AM ---------- Previous update was at... (5 Replies)
Discussion started by: tayyabq8
5 Replies

8. Shell Programming and Scripting

awk print behavior weird

Hi Experts I am facing a weird issue while using print statement in awk. I have a text file with 3 fields shown below: # cat f1 234,abc,1000 235,efg,2000 236,jih,3000 # When I print the third column alone, I dont face any issue as shown below: # awk '{print $3 }' FS=, f1 1000 2000... (5 Replies)
Discussion started by: guruprasadpr
5 Replies

9. UNIX for Advanced & Expert Users

[Solved] remove all print jobs from a print queue

Hello, Sometimes i need to clear all the jobs of a print queue and it is really annoying to cancel one by one. Is there a way to cancel all print jobs for a specific print queue with a single command instead of cancelling them one by one? My AIX system is 5.3 Thank you for your attention (2 Replies)
Discussion started by: omonoiatis9
2 Replies

10. AIX

Print queue problems

I am using AIX 5. Just swapped over an HP printer. The old printer was on a JetDirect box. The new printer connects directly to the network. Using the same IP address to print to, so the only alteration I made was to edit the etc/qconfig file to alter the port setting from 9103 to 9100. I can... (2 Replies)
Discussion started by: charding
2 Replies
VOP_SETACL(9)						   BSD Kernel Developer's Manual					     VOP_SETACL(9)

NAME
VOP_SETACL -- set the access control list for a vnode SYNOPSIS
#include <sys/param.h> #include <sys/vnode.h> #include <sys/acl.h> int VOP_SETACL(struct vnode *vp, acl_type_t type, struct acl *aclp, struct ucred *cred, struct thread *td); DESCRIPTION
This vnode call may be used to set the access control list (ACL) for a file or directory. Its arguments are: vp The vnode of the file or directory. type The type of ACL to set. aclp A pointer to an ACL structure from which to retrieve the ACL data. cred The user credentials to use in authorizing the request. td The thread setting the ACL. The aclp pointer may be NULL to indicate that the specified ACL should be deleted. The cred pointer may be NULL to indicate that access control checks are not to be performed, if possible. This cred setting might be used to allow the kernel to authorize ACL changes that the active process might not be permitted to make. The vnode ACL interface defines the syntax, and not semantics, of file and directory ACL interfaces. More information about ACL management in kernel may be found in acl(9). LOCKS
The vnode will be locked on entry and should remain locked on return. RETURN VALUES
If the ACL is successfully set, then zero is returned. Otherwise, an appropriate error code is returned. ERRORS
[EINVAL] The ACL type passed is invalid for this vnode, or the ACL data is invalid. [EACCES] The the caller does not have the appropriate privilege. [ENOMEM] Sufficient memory is not available to fulfill the request. [EOPNOTSUPP] The file system does not support VOP_SETACL(). [ENOSPC] The file system is out of space. [EROFS] The file system is read-only. SEE ALSO
acl(9), vnode(9), VOP_ACLCHECK(9), VOP_GETACL(9) AUTHORS
This manual page was written by Robert Watson. BSD
December 23, 1999 BSD
All times are GMT -4. The time now is 04:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy