SRX

last person joined: 18 hours ago 

Ask questions and share experiences about the SRX Series, vSRX, and cSRX.
  • 1.  SSH failed to delete .perm file

    Posted 03-03-2017 01:50

    Hello

     

    After I upgraded SRX100 software to version 12.1X46-D55.3, then I started to see following log messages after I login usin SSH.

     

    Mar  3 09:26:20  xxx-xxx sshd[15082]: unlink(): failed to delete .perm file: No such file or directory

    Also SRX100H2 models with 12.3X48 software seems to have same problem.

     

    Does anybody else see these messages using newer software releases? Is there any cure for that?



  • 2.  RE: SSH failed to delete .perm file
    Best Answer

    Posted 03-04-2017 01:15

    Hi,

     

    These messages are cosmetic and there is no need to worry about them.

     

    Whenever a remote user logs in (via RADIUS/TACACS+), authorization attributes are saved on the box as .perm file (/var/run/<login-pid>.perm).
    The same file is deleted on logout. There are few sanity checks to verify whether .perm file is deleted successfully, if not we get unlink () failure messages.
    .perm files are not created for local users i.e, users configured on Junos device.  But still we hit unlink on logout and hence see messages like: Unlink (): failed to delete .perm file: No such file or directory.

     

    This is a cosmetic issue either you can ignore or filter this log message.
    For Example:

    [edit system syslog]
    root# show
     file test {
         any any;
          match "!unlink(): failed to delete .perm file: No such file or directory ";
    }

    Hope that helps !

     

    Regards,

    Sahil Sharma
    ---------------------------------------------------
    Please mark my solution as accepted if it helped, Kudos are appreciated as well.