: >btw /dev/ttyS1 and /dev/ttyS3 are set to permissions 644. if ttyS3 works with
: >these permissions........i assume that ttyS1 will work also. Am i mistaken?
: Uh, you also need to be able to write to the port as user, at least if
: you want some data going out as well as coming in-- ie ttyS1
: needs to be 666 (rw for all)
Ppp consults its options file as to what to do case by case. It knows
who you are even if it is suid.
As indicated above, some security-sensitive options are
privileged, which means that they may not be used by an
ordinary non-privileged user running a setuid-root pppd,
either on the command line, in the user's ~/.ppprc file,
or in an options file read using the file option. Privi-
leged options may be used in /etc/ppp/options file ...
: Alternatively on the later versions of pppd (>2.3.7 I think) if the port
: is in the /etc/ppp/options file, rather than on the command line, pppd
Just so. Anything at all in the /etc/options file (or /etc/options.ttyS0,
etc.) is taken as a "privilege" instruction. It is obeyed as root.
I can't imagine that he has ANY private options (i.e. in ~/.ppp*).
: opens the port as root, not as user, and thus you could leave the port
: as rw only for root.
: The only problem with the chmod route is that there are a number of
: programs which keep insisting on changing the permissions on those
: ports every time they run. mgetty and linuxconf come to mind.
Mgetty does has a conf section which does allow you to specify owner
and permission and group, but that's not usually necessary. I run
mgetty for incoming faxes and ppp, and I call out from minicom, xisp and
kppp just fine, as an ordinary user.
For the record, I am a mamber of group uucp (for historical reasons!)
and pppd is root.uucp 4550. /dev/ttyS* are uucp.uucp 660. Mgetty is
run from inittab as root. Its config makes the ttyS* uucp.uucp 660.
If that doesn't work for you, then you simply have a different problem
from the one you think you have, In any case, post your log so we can
stop guessing and actually help you.
: >any other ideas?
: >thanks for the help so far