Copying files from between Linux hosts
Hello,
I have a scenario where the user is being authenticated by Active Directory to login to the Linux hosts.
The user can copy files between Linux hosts by his user ID, but I am looking for a solution to copy the files using a service account. For security reasons the service account is not allowed to log in using SSH.
The user has sudo privileges with specific to the service account and I've tried a method from Windows host using WinSCP where I have mentioned SFTP server,
SFTP Server: sudo -u oracle /usr/libexec/openssh/sftp-server
Now, whenever the user copies the files, these files are stored with "oracle" user id, which helps us to maintain the ownership of files.