Re: Programmatic authentication...
- From: Josef Moellers <josef.moellers@xxxxxxxxxxxxxxxxxxx>
- Date: Mon, 04 Jun 2007 16:50:07 +0200
werasm wrote:
Hi all,
We are developing programs under the Suse 10.1 distribution. These
programs fail when they try to reschedule thread priorities to pre-
emptive (a requirement for our applications).
We want to be able to develop without logging in as root users. The
applications being developed should acquire rights in order to perform
some root tasks, such as rescheduling of priorities. Any ideas
indicating to us how our applications can obtain the rights to do so
whilst being executed from non-root user would be appreciated. We want
to achieve this programmatically without having to change the files
via shell.
You cannot acquire rights without authentication, but you can drop rights without authentication.
So, make your application SUID root (be careful, this is dangerous), do the root stuff, then change to the invoker's id for the non-privileged tasks.
--
These are my personal views and not those of Fujitsu Siemens Computers!
Josef Möllers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize (T. Pratchett)
Company Details: http://www.fujitsu-siemens.com/imprint.html
.
- Follow-Ups:
- Re: Programmatic authentication...
- From: werasm
- Re: Programmatic authentication...
- References:
- Programmatic authentication...
- From: werasm
- Programmatic authentication...
- Prev by Date: Programmatic authentication...
- Next by Date: Re: Programmatic authentication...
- Previous by thread: Programmatic authentication...
- Next by thread: Re: Programmatic authentication...
- Index(es):
Relevant Pages
|