I have an application user, "user_a", which is a role in my Solaris 11.1 OS. The new request is that this user need to sftp/rsync some files from other servers.
so I thought that's OK, let me just create a normal user and the transfer will be done through this user, "user_b". When I tested, I realized that when user_a tries to run the command through user_b, it always prompts for password.
is there a way for a role to run such commands? interactively commands, like sftp or rsync. I could use a batch mode have "user_b" to transfer the files periodically, but that would be my last resort.
If the user has the role then pfexec will execute the command without prompting for a password.