[root@oracledb app]# cd /u01/app/oraInventory/
[root@oracledb oraInventory]# ls -ltr
total 12
drwxrwx---. 2 oracle oinstall   21 Nov 19 18:17 oui
drwxrwx---. 2 oracle oinstall   57 Nov 19 18:25 ContentsXML
-rwxrwx--x. 1 oracle oinstall 1620 Nov 19 18:25 orainstRoot.sh
-rw-rw----. 1 oracle oinstall   56 Nov 19 18:25 oraInst.loc
drwxrwx---. 2 oracle oinstall 4096 Nov 19 19:12 logs
[root@oracledb oraInventory]# cat /etc/group | grep dba
dba:x:54322:oracle
[root@oracledb oraInventory]# chmod +x orainstRoot.sh
[root@oracledb oraInventory]# ./orainstRoot.sh
-bash: ./orainstRoot.sh: Permission denied

Problém je, že já měl roota přes SUDO
[solart@oracledb ~]$ sudo -u root -i
[root@oracledb ~]#
Jakmile se připojíte rovnou pod rootem, tak scriptz spustíte bez problémů


Komentáře