LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 10-09-2005, 05:07 PM   #1
Rodolfo Medina
Member
 
Registered: Nov 2004
Posts: 61

Rep: Reputation: 15
'pon' and 'poff' not working with mandrivalinux


Hi.

I know that debian users start and close a ppp connection with the commands
'pon' and 'poff' respectively.
With Mandriva these commands do not seem to work:
in fact, in my Mandrake 10.1 ppp is regularly installed, but 'pon' and 'poff' are
'not found' by the system.
Does anybody know what should I use in their place?

Thanks,
Rodolfo
 
Old 10-10-2005, 01:25 PM   #2
CragStar
Senior Member
 
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081

Rep: Reputation: 47
I take it that you are only using the command line?

If not, then kppp will manage your dial-up settings, or Mandrake Control Centre should also.

You may be able to add an alias to the config file that starts and stops the interface, probably in /etc/sysconfig/network-scripts and called ppp0 or something like that. Don't know for certain as I don't use ppp.

HTH
 
Old 10-10-2005, 11:46 PM   #3
handydan
Member
 
Registered: Mar 2005
Location: palmdale, california
Distribution: MEPIS 8; Debian (stable/testing)
Posts: 83

Rep: Reputation: 23
poff the magic pathname?

I had some issues with other network utilities in mandrake 10.1, like ping, traceroute, etc. Seems like the issue was that the directory (/etc/sbin?) wasn't in my path.
I don't rmember the specifics now, but perhaps one of the gurus can advise....
 
Old 10-11-2005, 12:26 AM   #4
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Quote:
I had some issues with other network utilities in mandrake 10.1, like ping, traceroute, etc. Seems like the issue was that the directory (/etc/sbin?) wasn't in my path.
I don't rmember the specifics now, but perhaps one of the gurus can advise....
Its /usr/sbin and /sbin, not /etc/sbin

The sbin directories are only in the root user's PATH on any properly setup distro because the programs in sbin directories are root-only commands. On Mandrake ping is /bin/ping (so that it can be run by typing the command 'ping' by any user) whereas traceroute, which must be run as root, is in /usr/sbin/traceroute, so you can either su - into root and run traceroute or just do 'sudo traceroute'. This is the correct setup - there's no point having sbin directories in user's PATHs because they can't run any of the programs in there.

See: http://www.pathname.com/fhs/pub/fhs-...SYSTEMBINARIES
 
Old 10-11-2005, 06:26 AM   #5
CragStar
Senior Member
 
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081

Rep: Reputation: 47
Re: poff the magic pathname?

Quote:
Originally posted by handydan
I had some issues with other network utilities in mandrake 10.1, like ping, traceroute, etc. Seems like the issue was that the directory (/etc/sbin?) wasn't in my path.
I don't rmember the specifics now, but perhaps one of the gurus can advise....
That's a good place to start looking handydan (well, in /usr/sbin, not /etc/sbin) when you can't find a command at the terminal as a normal user.

I think though, after some googling, that pon and poff are Debian specific scripts. But like I mentioned before, you could easily write a script to emulate them.

http://annys.eines.info/cgi-bin/man/man2html?poff+1
 
Old 10-11-2005, 09:23 AM   #6
Rodolfo Medina
Member
 
Registered: Nov 2004
Posts: 61

Original Poster
Rep: Reputation: 15
cragstar wrote:

> I think though, after some googling, that pon and poff are Debian specific scripts. But like
> I mentioned before, you could easily write a script to emulate them.


Yes, but *how*?
Excuse me, I'm newbie, could you suggest how to do so?

Rodolfo
 
Old 10-11-2005, 05:57 PM   #7
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
I don't know much about dial-up in Linux but don't you just use normal ifup and ifdown commands on the ppp interface (ppp0?) to bring it up and down? Have you used the Mandrake Control Centre to configure your connection? Are there any files in /etc/sysconfig/network-scripts/ that relate to ppp?
 
Old 10-11-2005, 07:10 PM   #8
CragStar
Senior Member
 
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081

Rep: Reputation: 47
Lightbulb Try this

As long the ppp interface has a corrsponding config file you should be able to run
Code:
/etc/sysconfig/network-scripts/ifup-ppp
to start the dial-up interface with the default settings (the settings from the Mandriva Control Centre).

If it works, and you can run
Code:
/etc/sysconfig/network-scripts/ifdown-ppp
to disconnect, you can then create a link to each file like this (make sure you are the root user):
Code:
ln -sf /etc/sysconfig/network-scripts/ifup-ppp /usr/bin/pon
and
Code:
ln -sf /etc/sysconfig/network-scripts/ifdown-ppp /usr/bin/poff
Now as any user you should be able to run pon and poff to dial and disconnect.

Just an idea - should work in theory...
 
Old 10-11-2005, 08:18 PM   #9
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Quote:
/etc/sysconfig/network-scripts/ifup-ppp
You can just call it as
Code:
ifup ppp0
(as root of course). Either way you'd need to have an ifcfg-ppp0 or similar file in the /etc/sysconfig/networking-scripts directory, which the Networking section in the Mandrake Control Centre should configure for you.
 
Old 10-12-2005, 01:19 AM   #10
warpengi
Member
 
Registered: Nov 2003
Location: Vancouver BC
Distribution: Mandrake/Arch/Smoothwall/Suse
Posts: 30

Rep: Reputation: 15
"The sbin directories are only in the root user's PATH on any properly setup distro because the programs in sbin directories are root-only commands"

This is not always the case. I use ifconfig to find the IP address of my machine. As user I can type in /sbin/ifconfig and get a readout on my network adapters. Can't configure them of course unless I am root. I bet there are other examples of this.
 
Old 10-12-2005, 01:40 AM   #11
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Yeah that's true - traceroute often works even when run as a non-root user for example. But just about all distros default to not having sbin in the PATH because you can't properly use those programs as non-root, only some functions work.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Playing a DVD Share in Mandrivalinux Sloppyunderfoot Mandriva 2 11-22-2005 09:38 AM
Mandrivalinux 10.2 Install Guide P1 IanPappas Mandriva 2 08-06-2005 08:46 PM
pppd question about pon and poff Sammy2ooo Linux - Networking 0 12-29-2004 05:56 PM
Controlling Poff/Pon on a Debian 3.0r2 server from Win clients? spaceuser Debian 1 10-22-2004 12:44 PM
using pon and poff for regular users lobo78 Linux - Networking 1 02-27-2004 12:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 03:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration