Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

problems with modem (ttyS0 and wvdial)

34 views
Skip to first unread message

François Patte

unread,
Jun 6, 2009, 8:43:55 AM6/6/09
to
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

Thanks

--
Fran�ois Patte
Universit� Paris Descartes

The Natural Philosopher

unread,
Jun 6, 2009, 9:11:59 AM6/6/09
to
François Patte wrote:
> 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
>

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
>

wisdomkiller & pain

unread,
Jun 6, 2009, 9:07:00 AM6/6/09
to
Fran�ois Patte wrote:

> 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.


Nico Kadel-Garcia

unread,
Jun 6, 2009, 6:58:09 PM6/6/09
to
On Jun 6, 9:07 am, wisdomkiller & pain <newbuntu.
20.eatalls...@spamgourmet.com> wrote:

wvdial is not suid uucp? minicom was, as were various other utilities
such as mgetty ahd HylaFAX.

The Natural Philosopher

unread,
Jun 7, 2009, 2:50:17 AM6/7/09
to

Not on my system, no.

Nico Kadel-Garcia

unread,
Jun 7, 2009, 7:07:38 PM6/7/09
to
On Jun 7, 2:50 am, The Natural Philosopher <t...@invalid.invalid>
wrote:
> Nico Kadel-Garcia wrote:

> > 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.

The Natural Philosopher

unread,
Jun 7, 2009, 11:01:12 PM6/7/09
to

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.

François Patte

unread,
Jun 8, 2009, 3:52:29 AM6/8/09
to
Le 08/06/2009 05:01, The Natural Philosopher a ᅵcrit :

> Nico Kadel-Garcia wrote:
>> On Jun 7, 2:50 am, The Natural Philosopher <t...@invalid.invalid>
>> wrote:
>>> Nico Kadel-Garcia wrote:
>>
>>>> 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.

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

The Natural Philosopher

unread,
Jun 8, 2009, 5:00:39 AM6/8/09
to
François Patte wrote:
I dont.

Not even using wvdial.,

0 new messages