[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 12:17:24 EDT 2007
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
> 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