> From [EMAIL PROTECTED] Mon Aug  7 07:21:09 2000
> Date: Mon, 07 Aug 2000 09:09:22 -0400
> To: [EMAIL PROTECTED]
> From: Rick Cochran <[EMAIL PROTECTED]>
> Subject: LPRng: lpd ignores spool_file_perms
>
> Although checkpc changes spool file perms to match the spool_file_perms 
> parameter in lpd.conf, they get magically changed back to 600, presumably 
> by lpd:
>
> Warning - permissions of '/usr/local/boss/spool/lxp/status.lp' are 0600, 
> not 0640
> Warning - permissions of '/usr/local/boss/spool/pofox/status.pofax' are 
> 0600, not 0640
> Warning - permissions of '/usr/local/boss/spool/17hall1/status.17hall1' are 
> 0600, not 0640
> Warning - permissions of '/usr/local/boss/spool/asdt132/status.asdt132' are 
> 0600, not 0640
> Warning - permissions of '/usr/local/boss/spool/cashmgmt/status.cashmgmt' 
> are 0600, not 0640
> Warning - permissions of '/usr/local/boss/spool/citmbo/status.citmbo' are 
> 0600, not 0640
>
>  From lpd.conf:
> spool_file_perms=000640
>
> I think Patrick solved the reverse problem a while ago.  But not this 
> one.  Nothing in the mail archives about it.
>
> LPRng 3.6.12
>
> -Rick
>
> |Rick Cochran                                   phone: 607-255-7618|
> |Network and Computing Systems, Cornell CIT       FAX: 607-255-8521|
> |730 Rhodes Hall, Ithaca, N.Y. 14853        email: [EMAIL PROTECTED]|

Update the LPD server.

OR: patch Make_temp_fd():

    tempfd = mkstemp( pathname );
    if( tempfd == -1 ){
        Errorcode = JFAIL;
        FATAL(LOG_INFO)"Make_temp_fd: cannot create tempfile '%s'", pathname );
    }
----  add this ----
    if( fchmod(tempfd,(Is_server?Spool_file_perms_DYN:0) | 0600 ) == -1 ){
        Errorcode = JFAIL;
        LOGERR_DIE(LOG_INFO)"Make_temp_fd: chmod '%s' to 0%o failed ",
            pathname, Spool_file_perms_DYN );
    }


Patrick 

-----------------------------------------------------------------------------
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to