LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-09-2003, 10:47 PM   #1
shepper
Member
 
Registered: Mar 2003
Location: Dry, Dusty and Conservative
Distribution: OpenBSD, Debian Wheezy/Jessie
Posts: 449

Rep: Reputation: 33
Gnome 2.4 modem light (ppp-on) as user


I have transtioned my desktop from KDE to Gnome 2.4 and am very happy with the change. I would like to use Gnome 2.4 on my laptop which I use on the road via the built in modem.. I have the modem and the tighter/lighter Gnome dialer: modem-lights installed. Under preferences as root I changed the commands to ppp-on and ppp-off and modem-lights works fine Doing the same thing as a user states I do not have permssions. These commands even with the full path (/usr/sbin/ppp-on) do not work as user. Has anybody set this up for user? My google searches mainly bring up debian users who appear to have a slightly different setup.

There seems to be at least 6, maybe more, files involved.

lrwxrwxrwx /usr/sbin/ppp-on linked to rwxr_xr_x /usr/sbin/ppp-go
lrwxrwxrwx /usr/sbin/ppp-stop linded to rwxr_xr_x /usr/sbin/ppp-off

/dev/modem linked to /dev/ttyLT0 (Lucent LTmodem driver)
There is also a /var/modem "lock" file which I have no clue as to what it does.

I am the only user on the laptop but I also have a built in nic which I occasionally use for large downloads. I hate to blindly chmod 777 every file that I think may be involved to get it working. Is there an elegant way to give users modem permissions?

Thanks in advance.

Last edited by shepper; 10-09-2003 at 11:01 PM.
 
Old 10-10-2003, 03:14 PM   #2
minio
Member
 
Registered: Sep 2003
Location: Czech Republic - Prague
Distribution: Slackware 9.1
Posts: 61

Rep: Reputation: 15
You need permission to read files 'options' and 'pppscript' in /etc/ppp and permission to execute 'ppp-go', 'ppp-off' and 'pppd' in /usr/sbin (these last three files have premissions set to 6750, but i'm not sure if that 6 is necessary) .
 
Old 10-10-2003, 04:35 PM   #3
shepper
Member
 
Registered: Mar 2003
Location: Dry, Dusty and Conservative
Distribution: OpenBSD, Debian Wheezy/Jessie
Posts: 449

Original Poster
Rep: Reputation: 33
Thanks for the reply. I made the changes but now when it try /usr/sbin/ppp-on from a terminal I get the message: must be root to run /usr/sbin/pppd, since it is not setuid-root.

The permissions for /usr/sbin/pppd are -rwxr-xr-x which I think means it can be read and executed by owner, group and others. Does the forth digit, when used with chmod, have something to do with setting roots uid which is zero?
 
Old 10-10-2003, 05:02 PM   #4
minio
Member
 
Registered: Sep 2003
Location: Czech Republic - Prague
Distribution: Slackware 9.1
Posts: 61

Rep: Reputation: 15
I'm not sure what digit 6 means (it's called setuid bit). But when you use it (chmod 6755 fliename) you will get -rwsr-sr-s and then it will work. As i figured few minutes ago it's necessary.
 
Old 10-10-2003, 06:52 PM   #5
shepper
Member
 
Registered: Mar 2003
Location: Dry, Dusty and Conservative
Distribution: OpenBSD, Debian Wheezy/Jessie
Posts: 449

Original Poster
Rep: Reputation: 33
Thanks. It is working for users

In summary
chmod 6755 /usr/sbin/ppp-on
chmod 6755 /usr/sbin/ppp-stop
chmod 6755 /usr/sbin/pppd

chmod 644 /etc/ppp/options
chmod 644 /etc/ppp/pppscript
 
Old 11-11-2003, 06:59 PM   #6
e1000
Member
 
Registered: Oct 2003
Location: California
Distribution: Ubuntu
Posts: 582

Rep: Reputation: 30
thanks for the advice, i am now able to start my dialup as a user!!!

but how can i start dial up w/o having to type "$/usr/sbin/ppp-on" im thinking it might involve me making a symlink of it somewhere, but i dont know where i should put that link.

does anyone have any ideas of what i should do to run it without typing the full path?
 
Old 11-11-2003, 07:44 PM   #7
shepper
Member
 
Registered: Mar 2003
Location: Dry, Dusty and Conservative
Distribution: OpenBSD, Debian Wheezy/Jessie
Posts: 449

Original Poster
Rep: Reputation: 33
What are you using for a desktop?

KDE -> kppp
Gnome -> modem-lights (configurable and brought up by right clicking on the applications toolbar
ICE, XFce, etc I would install X-ISP as the old favorite wvdial is tough to install in gcc 3.2 based systems.

X-ISP
 
Old 11-11-2003, 08:38 PM   #8
e1000
Member
 
Registered: Oct 2003
Location: California
Distribution: Ubuntu
Posts: 582

Rep: Reputation: 30
i dont have, nor am i interested in having a graphical modem operation program. all im interested in are the command line utilites ppp-on, and ppp-off, if you have slackware 9.1 you can find them in /usr/sbin/ (i dont know about other versons, i havnt used them)

thats what this whole string of posts is about.
 
Old 11-11-2003, 08:57 PM   #9
shepper
Member
 
Registered: Mar 2003
Location: Dry, Dusty and Conservative
Distribution: OpenBSD, Debian Wheezy/Jessie
Posts: 449

Original Poster
Rep: Reputation: 33
Funny, I started this thread a while ago and it clearly states on the first entry of the thread "GNOME 2.4 modem light (ppp-on) as user". Not only that but I replied in an effort to help you and you have the nerve to tell me what the whole string of posts is about. Perhaps you should RTFThread.

To answer your question you can use any directory that is in your path environment to make a link.
 
Old 06-27-2004, 02:32 PM   #10
FreakboY
Member
 
Registered: Jun 2002
Location: TX, USA
Distribution: Slackware
Posts: 385

Rep: Reputation: 32
where can i get:
/usr/sbin/ppp-on
/usr/sbin/ppp-go
/usr/sbin/ppp-stop
/usr/sbin/ppp-off

do they come with FC2 distro!??
do i need to download them!??

i want to have Modem Lights working
/sbin/ifup ppp0
/sbin/ifdown ppp0

but i don't know how to config the ifup or ifdown!!!

do you know how to config so it works with this commands!??


thanks
 
  


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
internet connexion with GNOME PPP through PCMCIA modem xinelo Linux - Networking 1 10-27-2004 05:16 PM
X Windows User Seeing the light? Maybe? ikenbonnie Linux - Newbie 10 05-18-2004 04:49 PM
using ppp in gnome as user elp5 Linux - Newbie 0 02-13-2004 05:30 PM
Modem Light RedHat 9.0 R2RO Linux - General 6 11-06-2003 02:46 AM
TR light on modem, can't dial out Bartman1234567 Linux - Networking 1 08-17-2003 02:00 AM

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

All times are GMT -5. The time now is 04:03 PM.

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