LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-23-2003, 11:04 PM   #1
DregelJon
LQ Newbie
 
Registered: Feb 2003
Location: Avesta, Sweden
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
Question Fluxbox DialUp Menu


I have made a menu in FluxBox to Connect and Disconnect to my ISP.
The menu looks like this:
http://w1.226.telia.com/~u22610336/menu.jpg

Now to the actual problem:
I know I am not allowed to use the commands "ppp-on" and "ppp-off" as a normal user. I have to be root to use them.

I know I must edit my sudoers file so that it makes it possible for a normal user to use "ppp-on" and "ppp-off". But how I do this I don't know.

I have tried this in the sudoers file:
http://w1.226.telia.com/~u22610336/sudoers.jpg
But that doesn't work.

I have also tried to do it without a Alias. Like:
dregeljon ALL=NOPASSWORD:/usr/sbin/ppp-on
dregeljon ALL=NOPASSWORD:/usr/sbin/ppp-off
And that doesn't work either.

Now, please help me!

What should my sudoers file look like EXACTLY, and what should my fluxbox "menu" file look like?

Thank's in advance
/DregelJon

*off to bed*
 
Old 02-24-2003, 07:38 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
This may be completely off base, but why are you using Eterm in your fluxbox command? My experience is that if you have the proper command in the curly braces, you don't need to have Eterm running. So the menu entry would look like:

[exec] (connect) {ppp -on}
[exec] (disconnect) {ppp -off}
 
Old 02-24-2003, 08:36 AM   #3
DregelJon
LQ Newbie
 
Registered: Feb 2003
Location: Avesta, Sweden
Distribution: Slackware
Posts: 2

Original Poster
Rep: Reputation: 0
Well as I said, the menu is not *THE* problem, but the sudoers is. My menu will work fine if i could only get the commands to work in a normal user mode.
 
Old 02-24-2003, 12:31 PM   #4
nakkaya
LQ Guru
 
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Rep: Reputation: 45
another option can be to set file permission to 7755 on the file and then u can use them it worked for shutdown but you have to use the full path like

shutdown -h now wont work but

/sbin/shutdown -h now works not the one you asked but this should do the job
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fluxbox Menu Sk8trf69 Linux - Newbie 4 07-07-2005 09:03 PM
Fluxbox menu kirth Linux - Software 1 05-23-2005 02:44 AM
fluxbox menu help cs-cam Linux - Software 3 11-13-2004 08:05 PM
FluxBox not in menu Darkseid Linux - Software 2 12-15-2003 07:16 PM
fluxbox in the menu rvijay17 Linux - Newbie 2 06-11-2003 04:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:16 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