View Single Post

   
  #2 (permalink)  
Old 01-19-2008, 08:15 AM
Hans van Zijst
 
Posts: n/a
Default Re: Letting user to dialout

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
Reply With Quote