Letting user to dialout
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Debian support > Linux Debian support > Letting user to dialout




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Letting user to dialout  
jamiil


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-05-07 06:13 PM

Hi,
I want to let non-root users have the ability to dial out, thus if the
internet connection is down any of the user can just dial it, how do I
do that?

Thanks!






[ Post a follow-up to this message ]



    Re: Letting user to dialout  
Hans van Zijst


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-05-07 06:13 PM

jamiil wrote:
> Hi,
> I want to let non-root users have the ability to dial out, thus if the
> internet connection is down any of the user can just dial it, how do I
> do that?
>
> Thanks!
>

Probably the easiest way is to make a script that does the dial-in stuff
and then make it setuid root, i.e. let it always execute as root. You
would do this with the command

chmod 4755 dialin.sh


This way everybody will be able to execute the script and it will always
run as root. Of course this means you'll have to be careful about what
you put in the script.

Cheers,

Hans





[ Post a follow-up to this message ]



    Re: Letting user to dialout  
John Hasler


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-05-07 06:13 PM

Jamiil writes:
> I want to let non-root users have the ability to dial out, thus if the
> internet connection is down any of the user can just dial it, how do I do
> that?

Add them to the 'dip' group.  If you are using Debian run pppconfig, and do
Change->provider->Advanced->Add-User and follow instructions ("provider" is
whatever name you gave your ISP at installation).
--
John Hasler





[ Post a follow-up to this message ]



    Re: Letting user to dialout  
John Hasler


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-05-07 06:13 PM

Hans van Zijst writes:
> Probably the easiest way is to make a script that does the dial-in stuff
> and then make it setuid root, i.e. let it always execute as root.

You cannot make a script setuid root.
--
John Hasler





[ Post a follow-up to this message ]



    Re: Letting user to dialout  
Hans van Zijst


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-05-07 06:13 PM

John Hasler wrote:
> Hans van Zijst writes: 
>
> You cannot make a script setuid root.

Erm, you're right. Should have done a little more thinking before I
posted that 





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:08 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register