Getcwd


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Getcwd
# 1  
Old 12-13-2012
Getcwd

Hi,

I constantly get this error as a script is run:

getcwd failed (Unix's errno 13; Permission denied)

Can anyone point at the location of this function by default in AIX?

Thanks!
# 2  
Old 12-13-2012
It's a shell builtin and a library call, not a shell command.

If getcwd is failing, that may mean the user cannot access their current directory for some reason. Perhaps they had permissions to cd to it, but not to read it?
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Solaris

Getcwd performance issues

Hello everyone, recently we have been experiencing performance issues with chmod. We managed to narrow it down to getcwd. The following folder exists: /Folder1/subfol1/subfol2/subfol3 cd /Folder1/subfol1/subfol2/subfol3 truss -D pwd 2>&1 | grep getcwd 0.0001... (4 Replies)
Discussion started by: KotekBury
4 Replies

2. Shell Programming and Scripting

getcwd problem.

hi all. i need your help. this is my problem. shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory i do not know how to solve this problem.:confused: thanks (3 Replies)
Discussion started by: annetote
3 Replies

3. Solaris

shell-init: could not get current directory: getcwd: cannot access parent directories

Hello root@ne-ocadev-1:/root/scripts>su espos -c find /a35vol100/ESPOS/oracle/db/9.2.0/oradata/ESPOS/archive -type f -atime +10 -exec ls {} shell-init: could not get current directory: getcwd: cannot access parent directories: Permission denied find: insufficient number of... (6 Replies)
Discussion started by: babu.knb
6 Replies

4. UNIX for Advanced & Expert Users

getcwd: permission denied error

When I do a 'cd /appl' and issue 'ls -al' command, I get the following error for .. directory. ./..: Permission denied But still I get a listing of other directories under /appl. Also, if I give 'man' for any command under this /appl folder, I get the following error: ... (3 Replies)
Discussion started by: Deepa
3 Replies
Login or Register to Ask a Question