You are not logged in.

#1 2011-01-01 21:58:49

Dieter
Member
From: Germany
Registered: 2005-10-13
Posts: 140

Access to serial port ttyS0

Hello,

I'm trying to use a self-built mgetty+sendfax package (the one in AUR doesn't compile here) to access my modem on /dev/ttyS0 (to send faxes to DSL / VoIP). The mgetty+sendfax program "fax-helper" normally runs as user "fax" and tries to access ttyS0 as group "uucp". That worked some months ago, at that time /dev/ttyS0 had the following access rights:
crw-rw---- 1 root uucp 4, 64  1. Jan 21:56 /dev/ttyS0

But now the right to access ttyS0 is more restricive:
crw------- 1 root root 4, 64  1. Jan 21:56 /dev/ttyS0

The group changed from "uucp" to "root" only - and the fax-helper application of mgetty+sendfax can't access the port any more. Of course, faxing works when I manually change the group to "uucp" before sending the fax. After reboot, the access rights for /dev/ttyS0 then are again restrictive root.root.

What is the optimal solution for this issue?
a) Using hylafax instead of mgtetty+sendfax. I haven't tried hylafax yet, so I don't know whether hylafax solved the problem.
b) Setting up an udev rule to change the access rights for /dev/ttyS0. Will that work?
c) Use a fax service in the internet (that's not free of charge while for DSL / VoIP I have a flatrate).
d) Try to modify mgetty+sendfax to run the fax-helper application as root?

Your help will be appreciated.

Offline

#2 2011-01-01 23:11:11

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Access to serial port ttyS0

(b) sounds like the best solution to me.

Google search result that seems reasonably close to what you need.
http://www.linuxquestions.org/questions … ce-644237/


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2011-01-04 21:35:54

Dieter
Member
From: Germany
Registered: 2005-10-13
Posts: 140

Re: Access to serial port ttyS0

I got it. Successfully created working mgetty package and can submit faxes with it.
Thanks for your assistance!

Offline

Board footer

Powered by FluxBB