This question already has answers here: How to check if running as root in a bash script (21 answers) Closed 23 days ago. How can I check whether a user is root or not within a BASH script? I know I can use or but if the script was invoked via fakeroot, UID and EUID are both 0 (of course,
Tag: privileges
Connect to sqlplus with another linux user than oracle
I installed Oracle with sqlplus with user oracle (linux – CentOS). If I try to connect to database being oracle everything goes as expected (sqlplus / as sysdba for example), but I need to do the same thing (maybe not as sysdba, but as a user from database) being another linux user. I added this second user to group “dba”,