Bug 461862 - smssend creates rw------- files
Summary: smssend creates rw------- files
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: smstools
Version: el4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Marek Mahut
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-09-11 00:05 UTC by Patrick C. F. Ernzer
Modified: 2008-12-20 13:23 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-12-20 13:23:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Patrick C. F. Ernzer 2008-09-11 00:05:41 UTC
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

Comment 1 Patrick C. F. Ernzer 2008-09-11 00:07:37 UTC
forgot to add, for chmod g+wr to be enough, one must obviously chgrp sms /var/spool/sms/outgoing and set it drwxrws-wx


Note You need to log in before you can comment on or make changes to this bug.