LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Permission Denied, but I think I should have rights (https://www.linuxquestions.org/questions/linux-server-73/permission-denied-but-i-think-i-should-have-rights-4175441987/)

steinz 12-18-2012 10:52 AM

Permission Denied, but I think I should have rights
 
I am trying to change directories to a directory I think I have rights to, but getting Permission Denied:

oracle@srv4:[/u01/app/oracle/product/11.2.0.3/db_1/network] #id
uid=500(oracle) gid=501(oinstall) groups=501(oinstall),502(dba),506(asmdba)

oracle@srv4:[/u01/app/oracle/product/11.2.0.3/db_1/network] #ls -al
drw-r----- 2 oracle dba 4096 Aug 6 15:07 log

oracle@srv4:[/u01/app/oracle/product/11.2.0.3/db_1/network] #cd log
-bash: cd: log: Permission denied



thanks
Randy

vahab 12-18-2012 10:56 AM

Hi,

You need x (Execute permission) as well :
It should be :
drwxr-x---

You may do this as below :
chmod ug+x log

steinz 12-18-2012 11:22 AM

nice
 
thats very much, that did it.


All times are GMT -5. The time now is 01:12 AM.