3 ms·
su -u $otherUser Wouldn't that mess it up?
by sethammons 5y ago
su -u $otherUser
Wouldn't that mess it up?
- seiferteric 5y agoYou need the other users password to do that, or be root, so it is not a problem. Also, in our system, non admin users don't have linux shell access anyway, they get a custom shell that uses the rest server as the backend. The admin user can get linux shell and run commands as other users or do whatever they want but that is expected.