Linux Operating System (MOSC)

MOSC Banner

Copying files from between Linux hosts

edited Jan 28, 2025 10:34PM in Linux Operating System (MOSC) 1 commentAnswered

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.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center