Re: [gentoo-user] wvdial: dialup for users

2005-11-29 Thread Alan E. Davis
Followup:

Oh, it work, ok...  until I rebooted.  Then it didn't work for ordinary (non-super users) to #wvdial anymore.  

Apparently, using udev and sysfs, etc., the devices are made on
boot.  Funny, that I had to run MAKEDEV to make the higher
numbered nodes, like /dev/ttyS14, where my modem resides.  (The
modem is not at this place on one of the other systems I was playing
around with---Knoppix, I think).   

I am now going to learn udev.  I want to anyway: I like the way
Ubuntu jumps into action when a flash drive or a printer is plugged in,
and so do my GNU/Linux doubting friends :-).

So far, it looks like rules for creating the device nodes include permissions components.  

I will get there eventually.  Does anyone know, right off hand,
though, how to produce a rule to set up /dev/ttyS14 (/dev/tts/14 in the
new nomenclature) with permissions to allow dialup by anyone in group
dialout?  It works to just do the following after booting:
  # chmod o+rw /dev/tts
  # chmod 0+rw /dev/tts/14

Is this a security issue?

Thanks for the advices so far.

Alan DavisOn 11/28/05, Alan E. Davis <[EMAIL PROTECTED]> wrote:
Ok: success!  After changing the permissions a a BUNCH of files,
and ownerships, and even generating new groups (ppp), finally, when I
changed the ownership of /etc/wvdial to root:dialout, the setup works!

Isn't that always the way?   When I finally have posted and given up, a new option occurs to me that works!

Thank you to everyone who made suggestions.

Alan DavisOn 11/28/05, Alan E. Davis <
[EMAIL PROTECTED]> wrote:
I've been plunking around with this.  I tried what may be a brute
force method: change the permissions of /dev/ttyS14.  But
/dev/ttyS14 is a link to /dev/tts/14.  I now see that is a devfs
rendering?  I thought I do not have support for devfs, and I am
trying to use something  else.

Anyway, is it possible my problems are related to this issue? 

I see that the "Cannot open /dev/ttyS14: device or resource busy"
message is a common one.  And there are almost as many proposed
solutions as there are instances.  There surely would be an easy
way to do such a simple thing?   Nothing works for me.

Alan Davis

On 11/28/05, Dale <[EMAIL PROTECTED]

> wrote:
John J. Foster wrote:>On Sat, Nov 26, 2005 at 10:20:15PM -0600, Dale wrote:Now wvdial, it dials out, then sits for a minute, then disconnects with>>the error that my password is wrong, which is crap because it is
>>correct.  I only got wvdial to work once on another rig.  It has never>>worked on this one though.  Anybody have a clue on that one?  I just>>like to have options in case it pours instead of just a little shower.
>>Hi Dale - I had the same problem until I set>>Stupid Mode=yes in /etc/wvdial.conf. All was fine then.>>John>>Thanks for that tip.  I'll try that.  I like to have as many back-ups as
I can get.  If it were not for bad luck, I would have no luck at all.Well, there is the exception of my girlfriend.  She is the best thing,person, to happen yet.Dale:-)--To err is human, I'm most certainly human.
--gentoo-user@gentoo.org mailing list






Re: [gentoo-user] wvdial: dialup for users

2005-11-28 Thread Alan E. Davis
Ok: success!  After changing the permissions a a BUNCH of files,
and ownerships, and even generating new groups (ppp), finally, when I
changed the ownership of /etc/wvdial to root:dialout, the setup works!

Isn't that always the way?   When I finally have posted and given up, a new option occurs to me that works!

Thank you to everyone who made suggestions.

Alan DavisOn 11/28/05, Alan E. Davis <[EMAIL PROTECTED]> wrote:
I've been plunking around with this.  I tried what may be a brute
force method: change the permissions of /dev/ttyS14.  But
/dev/ttyS14 is a link to /dev/tts/14.  I now see that is a devfs
rendering?  I thought I do not have support for devfs, and I am
trying to use something  else.

Anyway, is it possible my problems are related to this issue? 

I see that the "Cannot open /dev/ttyS14: device or resource busy"
message is a common one.  And there are almost as many proposed
solutions as there are instances.  There surely would be an easy
way to do such a simple thing?   Nothing works for me.

Alan Davis

On 11/28/05, Dale <[EMAIL PROTECTED]
> wrote:
John J. Foster wrote:>On Sat, Nov 26, 2005 at 10:20:15PM -0600, Dale wrote:Now wvdial, it dials out, then sits for a minute, then disconnects with>>the error that my password is wrong, which is crap because it is
>>correct.  I only got wvdial to work once on another rig.  It has never>>worked on this one though.  Anybody have a clue on that one?  I just>>like to have options in case it pours instead of just a little shower.
>>Hi Dale - I had the same problem until I set>>Stupid Mode=yes in /etc/wvdial.conf. All was fine then.>>John>>Thanks for that tip.  I'll try that.  I like to have as many back-ups as
I can get.  If it were not for bad luck, I would have no luck at all.Well, there is the exception of my girlfriend.  She is the best thing,person, to happen yet.Dale:-)--To err is human, I'm most certainly human.
--gentoo-user@gentoo.org mailing list




Re: [gentoo-user] wvdial: dialup for users

2005-11-28 Thread Alan E. Davis
I've been plunking around with this.  I tried what may be a brute
force method: change the permissions of /dev/ttyS14.  But
/dev/ttyS14 is a link to /dev/tts/14.  I now see that is a devfs
rendering?  I thought I do not have support for devfs, and I am
trying to use something  else.

Anyway, is it possible my problems are related to this issue? 

I see that the "Cannot open /dev/ttyS14: device or resource busy"
message is a common one.  And there are almost as many proposed
solutions as there are instances.  There surely would be an easy
way to do such a simple thing?   Nothing works for me.

Alan Davis

On 11/28/05, Dale <[EMAIL PROTECTED]> wrote:
John J. Foster wrote:>On Sat, Nov 26, 2005 at 10:20:15PM -0600, Dale wrote:Now wvdial, it dials out, then sits for a minute, then disconnects with>>the error that my password is wrong, which is crap because it is
>>correct.  I only got wvdial to work once on another rig.  It has never>>worked on this one though.  Anybody have a clue on that one?  I just>>like to have options in case it pours instead of just a little shower.
>>Hi Dale - I had the same problem until I set>>Stupid Mode=yes in /etc/wvdial.conf. All was fine then.>>John>>Thanks for that tip.  I'll try that.  I like to have as many back-ups as
I can get.  If it were not for bad luck, I would have no luck at all.Well, there is the exception of my girlfriend.  She is the best thing,person, to happen yet.Dale:-)--To err is human, I'm most certainly human.
--gentoo-user@gentoo.org mailing list


Re: [gentoo-user] wvdial: dialup for users

2005-11-27 Thread Dale
John J. Foster wrote:

>On Sat, Nov 26, 2005 at 10:20:15PM -0600, Dale wrote:
>  
>
>>Now wvdial, it dials out, then sits for a minute, then disconnects with
>>the error that my password is wrong, which is crap because it is
>>correct.  I only got wvdial to work once on another rig.  It has never
>>worked on this one though.  Anybody have a clue on that one?  I just
>>like to have options in case it pours instead of just a little shower.
>>
>>
>
>Hi Dale - I had the same problem until I set
>
>Stupid Mode=yes in /etc/wvdial.conf. All was fine then.
>
>John
>  
>
Thanks for that tip.  I'll try that.  I like to have as many back-ups as
I can get.  If it were not for bad luck, I would have no luck at all. 
Well, there is the exception of my girlfriend.  She is the best thing,
person, to happen yet.

Dale
:-)

-- 
To err is human, I'm most certainly human.

 

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] wvdial: dialup for users

2005-11-27 Thread Alan E. Davis
I haven't tried setuid for the wvdial binary.  I have joined the
users to the groups "dialout" and "uucp".  I have also changed the
owner of various binaries to include users, including "wvdial".  I
followed someone's advice on the Inet and set pppd setuid for the group
"ppp" which I also joined all users to.  

I don't want my wife to have to "sudo yada yada."  I want to grant
her permissions.  I have used pppconfig for years.  It won't
find /dev/ttyS14, while wvdial did, uniquely among all dialup clients I
have tried.  kppp didn't.  I had to make the tty's with
MAKEDEV.   Maybe I can use pppconfig now that I have found
out the dev file.  Wvdial works well.

I would ideally like my wife to be able to click on a modem icon /
applet to dial in and to quit.  I understand why in a server
environment, one would be paranoid.  I WANT to grant this
permission to users at my discretion.

Thank you for the ideas, everyone.  I will follow them up.

Alan DavisOn 11/28/05, Nick Rout <[EMAIL PROTECTED]> wrote:
On Sun, 27 Nov 2005 14:33:09 +"b.n." <[EMAIL PROTECTED]> wrote:> Alan E. Davis wrote:> > I have tried alot of approaches.  Wvdial is superior for detecting
> > hardware: it found my modem on ttyS14, where other approaches hadn't> > found it.> >> > What I cannot seem to do is set up for my family to dial in from their> > accounts.  I have tried changing permissions of various kinds, adding
> > user to dialout, etc.>> suid the wvdial binary.> m.Don't do that! Just set the user in the correct groups per theinstructions in the ebuild!suid is very rarely the correct answer. If it was the ebuild would do
it for you.> --> gentoo-user@gentoo.org mailing list>--gentoo-user@gentoo.org mailing list



Re: [gentoo-user] wvdial: dialup for users

2005-11-27 Thread Nick Rout
On Sun, 27 Nov 2005 14:33:09 +
"b.n." <[EMAIL PROTECTED]> wrote:

> Alan E. Davis wrote:
> > I have tried alot of approaches.  Wvdial is superior for detecting 
> > hardware: it found my modem on ttyS14, where other approaches hadn't 
> > found it. 
> > 
> > What I cannot seem to do is set up for my family to dial in from their 
> > accounts.  I have tried changing permissions of various kinds, adding 
> > user to dialout, etc. 
> 
> suid the wvdial binary.
> m.

Don't do that! Just set the user in the correct groups per the
instructions in the ebuild!

suid is very rarely the correct answer. If it was the ebuild would do
it for you.


> -- 
> gentoo-user@gentoo.org mailing list
> 
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] wvdial: dialup for users

2005-11-27 Thread maxim wexler
> 
> Well, I use ppp and the comand pon and poff.  It
> works pretty well. 
> emerge ppp and then config with pppconfig.  To
> connect, pon, to
> disconnect, poff.  That would be as root, there
> should be a way to make
> users do it though.  I'm not sure how.

$sudo /usr/sbin/pon(poff) 

> 
> Now wvdial, it dials out, then sits for a minute,
> then disconnects with
> the error that my password is wrong, which is crap
> because it is
> correct.  I only got wvdial to work once on another
> rig.  It has never
> worked on this one though.  Anybody have a clue on
> that one?  I just
> like to have options in case it pours instead of
> just a little shower.
> 
> My $.02 and a question as well.

I also found pppconfig superior to wvdial




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] wvdial: dialup for users

2005-11-27 Thread b.n.

Alan E. Davis wrote:
I have tried alot of approaches.  Wvdial is superior for detecting 
hardware: it found my modem on ttyS14, where other approaches hadn't 
found it. 

What I cannot seem to do is set up for my family to dial in from their 
accounts.  I have tried changing permissions of various kinds, adding 
user to dialout, etc. 


suid the wvdial binary.
m.
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] wvdial: dialup for users

2005-11-27 Thread John J. Foster
On Sat, Nov 26, 2005 at 10:20:15PM -0600, Dale wrote:
> 
> Now wvdial, it dials out, then sits for a minute, then disconnects with
> the error that my password is wrong, which is crap because it is
> correct.  I only got wvdial to work once on another rig.  It has never
> worked on this one though.  Anybody have a clue on that one?  I just
> like to have options in case it pours instead of just a little shower.

Hi Dale - I had the same problem until I set

Stupid Mode=yes in /etc/wvdial.conf. All was fine then.

John


pgpecgNDnLri5.pgp
Description: PGP signature


Re: [gentoo-user] wvdial: dialup for users

2005-11-26 Thread Robert Crawford
On Sat November 26 2005 9:15 pm, Alan E. Davis wrote:
> I have tried alot of approaches.  Wvdial is superior for detecting
> hardware: it found my modem on ttyS14, where other approaches hadn't found
> it.
>
> What I cannot seem to do is set up for my family to dial in from their
> accounts.  I have tried changing permissions of various kinds, adding user
> to dialout, etc.
>
> UNCLE!
>
> Alan Davis

Try these thread on the forums- I posted my experience with wvdial- it should 
fix your problems.

http://forums.gentoo.org/viewtopic.php?t=112214&highlight=

or:

http://forums.gentoo.org/viewtopic-t-160597-highlight-wvdial+wrc1944.html


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] wvdial: dialup for users

2005-11-26 Thread Nick Rout
There are a couple of groups that you need to add your users to. -
"dialout" and "uucp".

Reading the message at the end of emerging wvdial tells you this. Also
reading the ebuild gives you the same information.

I am not criticising you, thiose messages flash by very quickly, and
reading the ebuild is not everyone's first port of call, but if I
educate one person to read the documentation and save one query to the
list i guess my job is done :-)

PS don't forget you have to log in again after you have been added to a
group. and "id" is a good command to see what groups you are in.



On Sun, 27 Nov 2005 12:15:15 +1000
"Alan E. Davis" <[EMAIL PROTECTED]> wrote:

> I have tried alot of approaches.  Wvdial is superior for detecting hardware:
> it found my modem on ttyS14, where other approaches hadn't found it.
> 
> What I cannot seem to do is set up for my family to dial in from their
> accounts.  I have tried changing permissions of various kinds, adding user
> to dialout, etc.
> 
> UNCLE!
> 
> Alan Davis
> 
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] wvdial: dialup for users

2005-11-26 Thread Norberto Bensa
Alan E. Davis wrote:
> I have tried changing permissions of various kinds, adding user
> to dialout, etc.

Add them to "tty" group ;)

-- 
Norberto Bensa
4544-9692
Ciudad de Buenos Aires, Argentina
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] wvdial: dialup for users

2005-11-26 Thread Dale
Alan E. Davis wrote:

> I have tried alot of approaches.  Wvdial is superior for detecting
> hardware: it found my modem on ttyS14, where other approaches hadn't
> found it. 
>
> What I cannot seem to do is set up for my family to dial in from their
> accounts.  I have tried changing permissions of various kinds, adding
> user to dialout, etc. 
>
> UNCLE!
>
> Alan Davis

Well, I use ppp and the comand pon and poff.  It works pretty well. 
emerge ppp and then config with pppconfig.  To connect, pon, to
disconnect, poff.  That would be as root, there should be a way to make
users do it though.  I'm not sure how.

Now wvdial, it dials out, then sits for a minute, then disconnects with
the error that my password is wrong, which is crap because it is
correct.  I only got wvdial to work once on another rig.  It has never
worked on this one though.  Anybody have a clue on that one?  I just
like to have options in case it pours instead of just a little shower.

My $.02 and a question as well.

Dale
:-)

-- 
To err is human, I'm most certainly human.

 

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] wvdial: dialup for users

2005-11-26 Thread Alan E. Davis
I have tried alot of approaches.  Wvdial is superior for detecting
hardware: it found my modem on ttyS14, where other approaches hadn't
found it.  

What I cannot seem to do is set up for my family to dial in from their
accounts.  I have tried changing permissions of various kinds,
adding user to dialout, etc.  

UNCLE!

Alan Davis