I have users that log in directly to a user account (Oracle) when they know should log in with their account and then su to the Oracle account.

I've set that account's shell to /sbin/nologin as I'm forcing them to log in from their Windows 10 Desktop via PuTTY to a RHEL VM, with their own user account and then su to Oracle.

My question is since Oracle's shell is set to /sbin/nologin, how would this affect ssh keys? We want to use ssh keys between RHEL VMs that host Oracle Databases so scripts can be ran as Oracle. But if the account Oracle doesn't have a shell, will this cause issues?

  • 1
    You seems to be granting acces to do nothing. you are aware that 1) authorized_keys can be owned by root in a place not writable by user, 2) you can bind a command to a key (e.g. su - oracle), /bin/rsh (r as in rescricted) was build for your purpose ? – Archemar Apr 18 at 15:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.