CentOS 5.6
There are two users; user A and user B. I have permissions for both and can log in as either.
I would like to be able to log in as user B, and somehow run commands as user A without knowing the password for user B.
I know this could be achieved in the sudoers file, but neither user has the ability to edit that. This is for a larger experiment, and for the sake of this question I do not have access to root (otherwise I could just log in as root and change the sudoers file accordingly).
Any ideas?