Re: Programmatic authentication...



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

.



Relevant Pages

  • Programmatic authentication...
    ... We are developing programs under the Suse 10.1 distribution. ... programs fail when they try to reschedule thread priorities to pre- ... emptive (a requirement for our applications). ... applications being developed should acquire rights in order to perform ...
    (comp.os.linux.development.apps)
  • Re: Rights on a FAT32 partition. Accesing it from Windows XP and Suse 9.2
    ... then i see the owner is root. ... > The owner has rw rights all others have ro rights. ... Registered Linux User #267976 ...
    (comp.os.linux.misc)
  • Re: [SLE] Error on virusscanning
    ... > The risk isn't huge (unless you do everything as root all the ... That is what I enjoy with Linux. ... I never have to work as root (can, ... work properly as a normal user; it requires Administrator rights, ...
    (SuSE)
  • Re: Folders
    ... What I did was break the inheritance of all rights from the ... Then I started from the root to give rights again ... so now if I create a folder the folder is not automatically shared, ...
    (microsoft.public.security)
  • Re: how to set up no need for ability to handle multiple users on machine
    ... am running always, not as admin, but as user having admin rights. ... Which is lesser rights than root. ... SUSE is Linux and for many Linux applications default document folder is ...
    (alt.os.linux.suse)