Description of problem: smssend uses mktemp, which in turn makes files with permissions rw------- this makes SMS sending fail whan one runs the daemon under another user than root Version-Release number of selected component (if applicable): smstools-3.0.10-1.el4 How reproducible: always Steps to Reproduce: 1. install smstools-3.0.10-1.el4 2. set in /etc/smsd.conf the following user = sms 3. call smssend as any user besides the user 'sms' Actual results: smsd: Cannot handle /var/spool/sms/outgoing/send_123456: Access denied. Expected results: smsd is able to read the file that /usr/bin/smssend creates Additional info: brutal but effective is the addition of the following lines to /usr/bin/smssend # mktemp makes files only rw for user, so we must chmod # pcfe, 2008-09-11 chmod g+wr $FILE
forgot to add, for chmod g+wr to be enough, one must obviously chgrp sms /var/spool/sms/outgoing and set it drwxrws-wx