|
Home > Archive > Linux Debian support > March 2007 > Letting user to dialout
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Letting user to dialout
|
|
| jamiil 2007-03-05, 1: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!
| |
| Hans van Zijst 2007-03-05, 1: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
| |
| John Hasler 2007-03-05, 1: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
| |
| John Hasler 2007-03-05, 1: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
| |
| Hans van Zijst 2007-03-05, 1: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 
|
|
|
|
|