Operating System - HP-UX
1753365 Members
5424 Online
108792 Solutions
New Discussion

Can't cd into a dir; I have to specify full path; how can I correct it?

 
SOLVED
Go to solution
NavyYard
Valued Contributor

Can't cd into a dir; I have to specify full path; how can I correct it?

Hi!

 

When I specify full path it work as oracle; Only oracle owned files/dir are the problems. root & oracle, both have same access problems.

 

# cd product

/app/oracle/product

 

 

# ls

OracleHomes software

 

 

# cd software

sh: software: not found.

 

 

# cd /app/oracle/product/software

 

# pwd

/app/oracle/product

 

# ls -l

total 0

drwxrwxr-x   3 oracle     dba             96 Jun 5 2013 OracleHomes

drwxrwxr-x   3 oracle     dba             96 Aug 7 12:13 software

 

# cd software

sh: software: not found.

 

# cd ..

# ls -l

total 0

drwxrwxr-x   3 oracle     dba             96 Jun 5 2013 OracleHomes

drwxrwxr-x   3 oracle     dba             96 Aug 7 12:13 software

# cd ..

# ls -l

total 1

drwxrwxr-x   4 oracle     dba             96 Aug 7 12:12 product

#

 

Thos perm error is happening with all IDs including root. When I specify full path it works but cascading thru Oracle owned directories is the problem.

 

I can correctly navigate thru other directories.

 

$ cd /var/adm

/var/adm

[oracle]$ ls

OLDsulog      

conslog.opts      

kc.cache          

 snmpd.log....

/var/adm

 

[oracle]$ cd diag

/app/oracle/diag

/app/oracle/diag

[oracle]$ ls

asm       clients   crs       diagtool lsnrctl   netcman   ofm       rdbms     tnslsnr

/app/oracle/diag

 

[oracle]$ cd rdbms

/app/oracle/product/OracleHomes/db11g/rdbms

/app/oracle/product/OracleHomes/db11g/rdbms

[oracle]$

3 REPLIES 3
Dennis Handly
Acclaimed Contributor

Re: Can't cd into a dir; I have to specify full path; how can I correct it?

Have you set CDPATH?  It needs to have ".".

Otherwise what does this show?

ll -d /app/oracle/product

NavyYard
Valued Contributor
Solution

Re: Can't cd into a dir; I have to specify full path; how can I correct it?

Thanks Dennis!

 

I deleted the profile and re-created to fix the problem.

 

Regards,

Dennis Handly
Acclaimed Contributor

Re: Can't cd into a dir; I have to specify full path; how can I correct it?

>Thanks Dennis!

 

If you're happy with the answers given, please click on the Kudos star for each helpful answer.