Hi

 
 Arun has suggested very right way of doing it. But if you want kppp style
behaviour, take a look at binary called as 'userhelper'. It asks for root
password and then passes control to actual binary. However I have no idea
how to do configure it for any program.

 While looking for bypassing kppp authentication, I searched for kppp. It
turned out to be to kppps. One that asked for root password was actually a
link to userhelper and other in /usr/sbin ran without asking for password.
So it's easily bypassable authentication that way. Tweaking with it might
yield result you want..

 Bye
  Shridhar

On Thu, 18 May 2000, Arun Sharma wrote:

> 
> You have the wrong idea about setuid programs.
> 
> >From chmod(1) on a FreeBSD box:
> 
>            4000    (the set-user-ID-on-execution bit) Executable files with
>                    this bit set will run with effective uid set to the uid of
>                    the file owner.  Directories with the set-user-id bit set
>                    will force all files and sub-directories created in them to
>                    be owned by the directory owner and not by the uid of the
>                    creating process, if the underlying file system supports
>                    this feature: see chmod(2) and the suiddir option to
>                    mount(8).
> 
> What you can do however is:
> 
> su root -c <your command>
> 
>       -Arun


-----------------------------------------------------------------------
For information on this and other Linux India mailing lists check out
http://lists.linux-india.org/

Reply via email to