cannot open logfile /var/log/mgetty/sendfax.log: Permission denied

shaul (shaulk@netvision.net.il)
Mon, 12 Oct 1998 03:28:54 +0200


This is a multipart MIME message.

--==_Exmh_-21112766750
Content-Type: text/plain; charset=us-ascii

I tried to send a fax. I got:

[21:34:12 shaul]$ /usr/sbin/sendfax -v 5235269 ~shaul/test/FAXnb40c.0*
cannot open logfile /var/log/mgetty/sendfax.log: Permission denied
Trying fax device '/dev/ttyS1'... OK.
Dialing 5235269... OK.
sending '/home/shaul/test/FAXnb40c.01'...
sending '/home/shaul/test/FAXnb40c.02'...
sending '/home/shaul/test/FAXnb40c.03'...
sending '/home/shaul/test/FAXnb40c.04'...
sending '/home/shaul/test/FAXnb40c.05'...
sending '/home/shaul/test/FAXnb40c.06'...
WARNING: are you sure that this is a G3 fax file? Doesn't seem to be...
sending '/home/shaul/test/FAXnb40c.07'...
sending '/home/shaul/test/FAXnb40c.08'...

The log file (/var/log/mgetty/sendfax.log) didn't log the sending, which is 
consistent with the above message. The fax did get through, though (all of it).
 
The permitions of the relevant files can explain the message:

[21:45:26 shaul]$ ls -l /usr/sbin/sendfax 
-rwxr-xr-x   1 root     root        47020 May 23 16:20 /usr/sbin/sendfax
[21:45:35 shaul]$ ls -l /var/log/mgetty/sendfax.log
-rw-r--r--   1 root     adm             0 Oct 11 06:43 
/var/log/mgetty/sendfax.log

Is it the expected behavior ? Should /usr/sbin/sendfax be installed suid ? 

Some general details:

Package: mgetty Version: 1.1.14-2

-- System Information
Debian Release: 2.0
Kernel Version: Linux rakefet 2.0.34 #2 Thu Jul 9 10:57:48 EST 1998 i586 
unknown

Versions of the packages mgetty depends on:
ii  libc6           2.0.7t-1       The GNU C library version 2 (run-time files)



--==_Exmh_-21112766750
Content-Type: text/plain ; name="mgetty.config"; charset=us-ascii
Content-Description: mgetty.config
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="mgetty.config"

IyAvZXRjL21nZXR0eS9tZ2V0dHkuY29uZmlnCiMKIyBtZ2V0dHkgY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MzMzZpLCBjb25uZWN0
ZWQgdG8gdHR5UzEuCiMKcG9ydCB0dHlTMQogICBmb3JjZS1pbml0LWNoYXQKICAgaW5pdC1j
aGF0ICIiIFxkXGRcZCsrK1xkXGRcZEFUSDAgT0sgQVQmRkUwVjEmQzEmRDJTOTU9NDdTMD0w
TTAgT0sgCiAgIGlzc3VlLWZpbGUgL2V0Yy9tZ2V0dHkvaXNzdWUKICAgbG9naW4tcHJvbXB0
IFxDIFxJIFxQIFxTIFxOIFVzZXJzIFxyXG5AIGxvZ2luOlwwNDAgCiAgIG1vZGVtLXR5cGUg
YXV0bwogICByaW5ncyAxMAoK

--==_Exmh_-21112766750
Content-Type: text/plain ; name="sendfax.config"; charset=us-ascii
Content-Description: sendfax.config
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="sendfax.config"

IwojIHNlbmRmYXggY29uZmlndXJhdGlvbiBmaWxlCiMKIyB0aGlzIGlzIGEgc2FtcGxlIGNv
bmZpZ3VyYXRpb24gZmlsZSwgc2VlIG1nZXR0eS5pbmZvIGZvciBkZXRhaWxzCiMKIyBjb21t
ZW50IGxpbmVzIHN0YXJ0IHdpdGggYSAiIyIsIGVtcHR5IGxpbmVzIGFyZSBpZ25vcmVkCgoK
IyAtLS0tLSBnbG9iYWwgc2VjdGlvbiAtLS0tLQojCiMgSW4gdGhpcyBzZWN0aW9uLCB5b3Ug
cHV0IHRoZSBnbG9iYWwgZGVmYXVsdHMsIHBlci1wb3J0IHN0dWZmIGlzIGJlbG93CgojIHRl
bGwgZXZlcnlib2R5IHdoYXQncyBnb2luZyBvbgp2ZXJib3NlIHkKCiMgLi4uIGFuZCBzZW5k
IGV2ZXJ5dGhpbmcgdG8gdGhlIGxvZyBmaWxlIChxdWl0ZSBkZXRhaWxlZCkKZGVidWcgNQoK
IyB3aGljaCBkZXZpY2VzIHRvIHVzZSBmb3Igb3V0Z29pbmcgZmF4ZXMKZmF4LWRldmljZXMg
dHR5UzEKCiMgd2hpY2ggZmF4IG51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