DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 3rd June 2008
radcapricorn radcapricorn is offline
Port Guard
 
Join Date: Jun 2008
Posts: 15
Default pppd on FreeBSD 7.0-RELEASE

Hi to all!

I have a trouble setting up pppd connection on FreeBSD 7.0-RELEASE.
I'm using external USR 56k Faxmodem connected to COM1 (/dev/cuad0). While user-ppp works alright and I can connect to my ISP (both automatically and in interactive mode) and use its services, pppd fails posting this into log:

// chat script logs cut out...
Serial connection established.
Connected: ppp0 <--> cuad0
ioctl(PPPIOCSFLAGS): Inappropriate ioctl for device
Exit.

So it not just breaks the connection, but the daemon itself exits.

I've set up dial-on-demand (and it actually does dial and all, just drops out at the moment the modems had their handshake and PAP/CHAP authentication was about to start).

Setting/resetting setuid bit for pppd doesn't make any difference, as does not running as 'pure' root or user su'd to root.

Can anybody give some clues on how to manage this?

(initially I have posted this at bsd forums org but for obvious reasons I decided to move here :-) )

Thanks in advance for any advice.
Reply With Quote
  #2   (View Single Post)  
Old 5th June 2008
radcapricorn radcapricorn is offline
Port Guard
 
Join Date: Jun 2008
Posts: 15
Default

Has no one ever met such behaviour? I assume this has something to do with (user) rights, as the only code piece where PPPCSIOFLAGS are tested for if_ppp ioctl in system source issues a priv_check() call there (/usr/src/sys/dev/if_ppp.c). But in that case I don't get it why I get "inappropriate ioctl" message and not the message that has something to do with priviledges.

Please, if anyone has any guesses/opinions I'd be thankful to hear.

PS. Can I rebuild if_ppp only without rebuilding kernel/modules/world and if I can, how?
Reply With Quote
  #3   (View Single Post)  
Old 6th June 2008
radcapricorn radcapricorn is offline
Port Guard
 
Join Date: Jun 2008
Posts: 15
Default

Cool,the problem seems unique...
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PPPD issue. Tom NetBSD General 4 26th August 2009 03:59 PM
FreeBSD ACPI Power Management, 7.2-release Mantazz FreeBSD Ports and Packages 4 17th August 2009 09:08 PM
FreeBSD 7.2-RELEASE vermaden FreeBSD General 6 12th May 2009 08:33 PM
FreeBSD 7.1-RELEASE is out ... finally ;) vermaden FreeBSD General 20 6th January 2009 04:32 PM
FreeBSD 6.2-RELEASE > 7.0-RELEASE Upgrade Marci FreeBSD Installation and Upgrading 2 23rd July 2008 02:10 PM


All times are GMT. The time now is 09:34 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick