[mdlug] How can I set up a process initiated by another user to execute as my user ID?

Aaron Kulkis akulkis3 at hotpop.com
Mon Apr 16 13:36:31 EDT 2007


Wojtak, Greg wrote:

> 
> On 4/16/07 12:17 PM, "Aaron Kulkis" <akulkis3 at hotpop.com> wrote:
> 
>> gib at juno.com wrote:
>>>  
>>>
>>> How can I set up a process initiated by another user to execute as my
>>> user ID?
>>>
>>> I have a process that logs into an ftp server with my user ID and my
>>> password but I don't want to provide my password to someone else.  How
>>> can I allow someone else to execute this process?
>>>
>> I'm assuming that it's compiled code, and not a shell script.
>>
>> If so, just make sure that YOU are the owner of the executable,
>> and then use chmod to set the "set User ID" (setuid) bit.
>>
>> chmod 1755 executable_file
>>

 > Actually, that's 4755... 1755 sets the sticky bit.
 >

Whoops... thanks ;-)


>>
>>
>>
>>> Alternatively, can I set up a process that will be able to read the
>>> password from a secure location without the user seeing it?
 >>
>> Yes, same way.
>>





More information about the mdlug mailing list