Tim <(E-Mail Removed)> wrote:
>> Tim <(E-Mail Removed)> wrote:
> I changed the ppp-on script to user the user option instead of
> the name option. I've set the permissions the the ttyS1 device
> (my modem) to rw for the group tty, and I've added my regular users
> to the tty group, pppd starts as my regular user, but my log says,
> pppd[1647]: Failed to open /dev/ttyS1: Permission denied
The ttyS1 should be opened by the user actually executing pppd.
If the user is in the tty group and the ttyS1 group is tty with
rw group permissions then the user should be able to open it when
a pppd binary compiled from a pristine standard source (found at
ftp.samba.org) is used.
> then pppd exits.
> ttyS1 permissions are
> crw-rw---- 1 root tty 4, 65 Jul 9 15:11 /dev/ttyS1
> And I have definitely added my regular user to the tty group,
> Have I missed something?
Not that I know about. Double check tty group membership by executing
id as the regular user, e.g.,
~$ id
uid=1000(kite) gid=100(users) groups=100(users),5(tty),6(disk),14(uucp)
> Another thing I noticed is that after connecting with the root user the
> permissions
> of ttyS1 are changed back to
> crw-r----- 1 root tty 4, 65 Jul 9 15:47 /dev/ttyS1
A pppd binary compiled from the *standard* pppd source changes the
permissions to these but also restores the original permissions when
terminating, unless pppd is terminated with a SIGKILL - which can
also cause other problems. I'd guess that the distribution maker has
a case of paranoia and modified it's pppd to leave write permission
on ttySx only for root when terminating.
Or it's possible that I've missed something here - it's been quite
awhile since I fiddled with things here so as to be able to connect
with ppp-on and ppp-on-dialer when logged on as myself. I really
don't think I have missed anything though. FYI, the ppp-on and
ppp-on-dialer scripts here are based on those that come with the
standard pppd source.
--
Clifford Kite Email: "echo
xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads:
http://ckite.no-ip.net/
/* I gave up on politics when no matter who I voted for, I regretted it.
* -- Pepper...and Salt, WSJ */