[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: "setuid(UID)" and "chmod 4550" misbehaving



On Tue, Jun 22 at 08:41AM +0800, John Summerfield wrote:
> Will Trillich wrote:
> 
> >TASK:     allow USER1 to run a program AS USER2.
> >SOLUTION: setuid bit (in theory, right?)
> >PROBLEM:  theory not matching execution...
> >
> >we've got a little C program that must be RUN AS a certain user
> >(cyrus) BY another user (www-data) so we figured turning on the
> >SETUID bit would work:

> Why would you not use sudo?

you mean, have apache use sudo to change a user's email (sasl)
password? the purpose of this gizmo is to have the web server
set up to allow users to change their own passwords via a web
interface.

but it's not working -- not from apache, and not from the
command line. the "setuid" function is being ignored for some
reason. any ideas?

-- 
I use Debian/GNU Linux version 3.0;
Linux boss 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i586 unknown
 
DEBIAN NEWBIE TIP #84 from USM Bish <bish@nde.vsnl.net.in>
:
Wondering if you could change the bindings of CTRL+ALT+DEL, so
that it did a shutdown instead of a reboot? Sure! As root,
edit /etc/inittab. The line to edit looks like this:
	ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
Just change "-r" to "-h".

Also see http://newbieDoc.sourceForge.net/ ...



Reply to: