chgrp, Illegal seek


Subject: chgrp, Illegal seek
From: Axel Rose (rose@sj.com)
Date: Tue May 01 2001 - 11:41:29 EDT


Hello,

I'm just wondering whether the following problem is netatalk
related. I doubt but hope that other users came across this before ...

A have a lpd input filter written in Perl.
The input filter is run by "lp" who is a member of the "nobody"
group.

I log the error "Illegal seek" from this line
system( "chgrp", "nobody", $out ) && &my_error_log( "$!" );

On the shell I can verify
sh-2.04$ id
uid=4(lp) gid=7(lp) groups=7(lp),99(nobody)
sh-2.04$ chgrp nobody <lp-created-ps-file>
sh-2.04$ echo $?
0

Only when run from lpd this peculiar error comes up.

Has anybody come across this?

Any hints very much welcome

Axel

(my current workaround is a simple "chmod 777 $out")
System is a RH7.0 with netatalk1.5-pre6



This archive was generated by hypermail 2b28 : Sun Oct 14 2001 - 03:04:39 EDT