setuid() problem ?

setuid() problem ?

Post by Matus Uhla » Mon, 02 Feb 1998 04:00:00



Hello,

I have solaris 2.4 and run squid-1.1.20 and apache-1.2.5 there
when i am logged as squid, i see squid daemon running under squid user but I
can't kill it; when I am logged as apache I don't see http daemon running
(it runs under root) but I can kill it. Any comments ? looks strange to
me...

I'd like to kill squid as squid and see httpd as httpd :)

--
 Matus "fantomas" Uhlar, network manager at NETLAB+ Kosice, Slovakia

 
 
 

1. Need help with setuid() problems on 386/ix with setuid root program.

I have a program that needs to be able to do the following under ISC 386/ix
(System V R3.2):

        setuid to one of about 3 different accounts ("Account X")
        do some work under that ID.
(*)     setuid back to the ID of the person that originally ran it.
        send some mail to Account X saying what was done.

The program needs to be able to change to one of the 3 or so different
accounts, so It's made setuid root. It doesn't actually want to do its
work under uid root, so it setuid's to whichever account it needs immediately.
[ It can't setuid to ANY account, only to one of the 3 or so ].

The problem is that when the program send the mail to X, I want it to come
addressed from the person that ran the program, not from X.

According to the manual, you can setuid() to the saved-uid from exec();
but I can't get the setuid back to the persons ID to work. (*)

        Can anyone shed some insight on my problem?

                                        thanks
                                                Greyham.
--
/*  Greyham Stoney:                            Australia: (02) 428 6476  *

 *          "BUT THAT'S JUST A BUTTON ON A STRING, BASICLY!!!"           */

2. File I/O vs. Piping

3. mysterious shared library problem (setuid problem?)

4. LPR question

5. Linux C-news relaynews setuid problem

6. Mapping physical to virtual address

7. Setuid Problem

8. is this a bug in ld.so or gcc?

9. Setuid problems & OpenSSH X-forwarding

10. setuid problem?

11. setuid problems

12. setuid problem on Solaris 2.4x86?

13. SETUID problem/question?