ITEM: H9111L

can vi but can't print files


Question:

AIX 3.2.3e (w/some 3.2.4 fixes)  model 530H

Example: I am a user with primary group image, other group of
imagedev.  I have a directory owned by imagedev group.  I have a file
owned by imagedev group.  As that user, I can vi and change that file.
However, I cannot print that file.  I receive a permission denied.
If I do a newgrp command and change my primary group to imagedev,
then I can print the files without problem.

Response:

checked the permissions on qdaemon, they are 
r-sr-s---  root printq.

We also did a sysck -n ALL with the following results:

/usr/sbin/pioattred has wrong attribute
/usr/sbin/piofontin has wrong TCB
/etc/qconfig has wrong TCB attribute

These files were listed as follows:

pioattred  r-xr-s---  root printq
piofontin  r-xr-s---  root printq
qconfig    rw-rw-r--  root printq

Response:
We compared his directory permissions to test system fozzy.
in /:
drwxr-xr-x  10 bin      bin          512 Jan 10 14:52 var

in /var:
drwxrwxr-x  12 bin      bin          512 Feb  4 12:01 spool

in /var/spool:
drwxrwxr-x   2 bin      printq       512 Mar 29 17:23 qdaemon
drwxrwxr-x   5 bin      printq       512 Mar 24 12:32 lpd

in /var/spool/lpd:
drwxrwxr-x   6 root     printq       512 Mar 28 10:04 pio
drwxrwxr-x   2 root     printq       512 Mar 29 17:23 qdir
drwxrwxr-x   2 root     printq      1536 Mar 29 17:23 stat

in /var/spool/lpd/pio:
drwxr-xr-x   2 root     printq      1024 Mar 29 09:15 custom
drwxr-xr-x   2 root     printq      1536 Mar 29 09:15 ddi
drwxrwxr-x   2 root     printq       512 Mar 28 09:41 dev
drwxrwxr-x   2 root     printq       512 Sep  3 1993  flags


Inside /var/spool/lpd/pio we found that his permissions on custom 
and ddi were 755 instead of the 775 we had on our test system.  
He changed these and will test the result.

Response:

The error we get is :

cannot access print file
filename is \
error number from the stat system call is 13
check the filename specification with your print request

The job will queue, but as soon as the queue is enabled, the
error shows up.

we checked /usr/sbin/piopredef and found

rw-rw---- root printq

We also checked /usr/lpd/piobe and found

r-xr-sr-x   bin  printq

we changed this to match our test system of
r-sr-sr-x   root printq

At this point it worked fine.


Support Line: can vi but can't print files ITEM: H9111L
Dated: March 1994 Category: N/A
This HTML file was generated 99/06/24~13:30:46
Comments or suggestions? Contact us