I'm having trouble getting scp to transfer files from one machine to
another when invoked from a user other than the one that has the keys,
even though I'm switching into the correct account by setting the
effective uid.

It seems ssh is doing an additional check to get the real uid, ignorning
the effective uid.

I've tried setting the HOME, USER, LOGNAME environment variables and
additionally I set the wrapper script with chmod g+s so that it uses the
correct user.

I'm trying this on SunOS 5.7 with OpenSSH 2.2.0p1. I wasn't able to even
set the script setuid root and then 'su - user' to the correct user from
the script -- it prompts for a password.

Whats the right way to do this?

The intent here is to drop files to a remote machine using non-root
accounts, and doing so on the sending machine from an account
thats different from the accounts set up for the specific task of 
doing the drop transfer.


Reply via email to