I try to configure my laptop modem....
If I use wvdial as root, there is no problem, I can get a ppp connection.
It I use it as John Doe, the answer is:
Cannot open /dev/ttyS0: Device or resource busy
What is missing.
Another question: by default, owner, group and permissions for ttyS0 are:
crw-rw---- 1 root uucp 4, 64 juin 6 11:56 /dev/ttyS0
I changed permissions to: crw-rw-rw-
How can I make this change the default permissions
Thanks
--
Fran�ois Patte
Universit� Paris Descartes
Don't bother. Add yourself to group uucp. By editing /etc/group.
The node will be 'created' by udev or hotplug or whatever it is, and
modifying that is a nightmare. Go with the flow. You are a dialout user,
ergo, yoou need to be in group UUCP..and its a long time since I typed
THAT. Its usually 'dialout' these days..
> Thanks
>
> Bonjour,
>
> I try to configure my laptop modem....
>
> If I use wvdial as root, there is no problem, I can get a ppp connection.
>
> It I use it as John Doe, the answer is:
>
> Cannot open /dev/ttyS0: Device or resource busy
>
> What is missing.
>
> Another question: by default, owner, group and permissions for ttyS0 are:
>
> crw-rw---- 1 root uucp 4, 64 juin 6 11:56 /dev/ttyS0
>
> I changed permissions to: crw-rw-rw-
>
> How can I make this change the default permissions
>
Why not add yourself to the group "uucp"? There may as well be a "dialout"
group associated with wvdial, look up /etc/group.
wvdial is not suid uucp? minicom was, as were various other utilities
such as mgetty ahd HylaFAX.
Not on my system, no.
> > wvdial is not suid uucp? minicom was, as were various other utilities
> > such as mgetty ahd HylaFAX.
>
> Not on my system, no.
Hmm. I've run into a few utilities that were designed by their authors
to be suid, but which were modified heavily by system packages to obey
*their* model of how things should be.
A very slightly intrusive approach would be to add the "wvdial"
command to a sudo command list with uucp privileges, so you can do
'sudo wvdial' and get what you need.
Why on earth bother? as long as the invoking users is in the dialout or
uucp group, it works.
The actual SUID root program is IIRC pppd.
Thats what sets up all the IP layer stuff.
No! I tried and failed.... The only way I got wvdial working for a
simple user was to change permission to suid.
There are things which I don't understand:
1- Why wvdial is, by default, only allowed for root?
2- Adding people to a group is bothering, you have now to add people to
a lot of groups if you want some programs working: for instance, I had
to add people to pulse-rt group to allow them to play music on their
computer!
Anyway, I am now facing a new problem: wvdial seems to be unable to
"write" dns instructions in /etc/resolv.conf. No dns, no networking! I
am unable to know all the IP numbers needed to surf on the web!
One more time, you need to be root to surf! And some people using the
laptop I am configuring for them have no idea of what DNS is...
--
Franᅵois Patte
Universitᅵ Paris Descartes
Not even using wvdial.,