[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?

because the gears were not engaged, that's why.

works like a charm! many thanks for the nudge.

so, the problem is solved, but the setuid mystery remains...

-- 
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 #48 from Will Trillich <will@serensoft.com>
:
To peruse your CURRENT VIM SETTINGS (there's LOTS of them)
from within Vim, simply do
	:options
You can change them there, on-the-fly, as well. Type
"ctrl-W ctrl-W" to switch "panes" or "ctrl-W q" to close one.
Try ":help" to learn more.

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



Reply to: