I'm getting the following in the /var/opt/SUNWut/log/messages file each time a 
kiosk session attempts to start:

 
Apr  9 06:42:14 srss-vdi00 dtlogin[29280]: [ID 976841 user.info] pam_kiosk: 
pam_sm_authenticate: Initiating Kiosk session with user utku1
Apr  9 06:42:14 srss-vdi00 kiosk:initsession[29395]: [ID 702911 user.error] 
Error: failed to remove some temporary files for user 'utku1':
Apr  9 06:42:14 srss-vdi00 Unknown
Apr  9 06:42:14 srss-vdi00 kiosk:initsession[29396]: [ID 702911 user.error] 
Error: failed to clean up after previous Kiosk session for user 'utku1'
Apr  9 06:42:14 srss-vdi00 dtlogin[29280]: [ID 705508 user.error] pam_kiosk: 
pam_sm_open_session: Child process /opt/SUNWkio/lib/initsession failed with 
exit code 1.

Looking into initsession, I can see that this is coming from:

#
## Do a cleanup for the user before proceeding
#
cleanup $theModule $USER "$HOME"
if [ $? -ne $KIOSK_RESULT_SUCCESS ] ; then
 logError -m $theModule \
          -l "Error: failed to clean up after previous Kiosk session for user 
'$USER'"
 exit $KIOSK_RESULT_FAILED
fi

DIgging a bit further, I see that the cleanup function call lives in utils.sh, 
and the body of the function looks like:


cleanupTempFiles $_inModule $_inUser
 if [ $? -ne $KIOSK_RESULT_SUCCESS ] ; then
  theRC=$KIOSK_RESULT_FAILED
 fi

.....

cleanupTempFiles()
{
 _inModule=$1
 _inUser=$2

 logDebug -m "$_inModule" \
      -l "removing temporary files and directories for user '$_inUser'"
 _leaked=`${KIOSK_LIB_DIR}/kioskcleandir -u "${_inUser}" ${KIOSK_TMP_DIRS} 
2>/dev/null`
 if [ $? -ne 0 ] ; then
   logError -m "$_inModule" \
    -l "Error: failed to remove some temporary files for user '$_inUser':
${_leaked:-Unknown}"
   return $KIOSK_RESULT_FAILED
 fi

 logDebug -m "$_inModule" \
       -l "Success: removed temporary files and directories for user '$_inUser'"
 return $KIOSK_RESULT_SUCCESS
}


OK, so now I know where the message is likely coming from and that 
${_leaked:-Unknown} expanded to "Unknown" indicating that _leaked is either 
NULL or undefined. Since kioskcleandir is a binary, I'm not able to go any 
further. Has anyone got insight into what could be the problem? I don't see any 
files with utku1 as the owner in KIOSK_DEFAULT_TMP_DIRS. 

Last configuration change was to install patch 140994-01 and 143215-02. I 
installed the same patches on my dev server and it is running just fine.

Art




_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to