Re: Permissions problems efax / dev/ttyS0
Seneca <seneca-cunningham@rogers.com> writes:
[...]
> [...]
> > tk>: fax send 555-1212 ~/c-design/testfax.ps
> > /home/tk/c-design/testfax.ps.nnn is up-to-date
> > efax: Sun Aug 4 14:39:29 2002 efax v 0.9a-001114 Copyright 1999 Ed Casas
> > efax: 39:29 Error: can't open serial port /dev/ttyS0: Permission denied
> > efax: 39:29 failed -> /home/tk/c-design/testfax.ps.001
> > efax: 39:29 done, returning 2 (unrecoverable error)
> > There were errors (see T555-1212.log).
>
> What does "ls -l /dev/ttyS0" say? If it is like my system, it probably
> says (date is unimportant):
>
> crw------- 1 root root 4, 64 Jul 15 14:46 /dev/ttyS0
>
> And you want:
>
> crw-rw---- 1 root fax 4, 64 Jul 15 14:46 /dev/ttyS0
>
> You'll probably need to (read the manpages and):
> # chgrp fax /dev/ttyS0
> # chmod g+rw /dev/ttyS0
Thank you Seneca,
the group owner of /dev/ttyS0 is dialout (of which I am a member), but
you're right the permission was:
crw-r----- 1 root dialout 4, 64 Aug 4 19:39 /dev/ttyS0
At your suggestion, I set it to give write permission to the dialout
group,
crw-rw---- 1 root dialout 4, 64 Aug 4 19:39 /dev/ttyS0
and as a consequence, I am able to open the port (and send
faxes). Thanks a lot.
I use the same port/device/modem for my (dial-up) ppp connections, which
has always worked for normal users who are part of the dialout group. Is
this something wrong with the efax config? I don't think permissions
should have to be changed for /dev files.
Anyhow, thanks again,
Tomasz
Reply to: