The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ssh permission denied gefa AIX 3 8 Hours Ago 07:52 AM
permission denied error Anji Shell Programming and Scripting 2 01-08-2008 03:34 AM
Need help with Couldn't canonicalise: Permission denied error wilsontan UNIX for Advanced & Expert Users 8 02-06-2007 04:13 PM
xterm gives me permission denied error kymberm Shell Programming and Scripting 1 09-02-2004 03:10 AM
rm Permission Denied error Cech2002 UNIX for Dummies Questions & Answers 7 06-26-2002 03:24 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 02-07-2003
Registered User
 

Join Date: Apr 2002
Posts: 53
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:
getcwd: Permission denied

When I issued 'ls -ld /appl', I get the following output.

drwxrwxrwx 19 appmgr dp 1024 Feb 6 00:15 appl/


Is anything screwed up in the appl directory attributes?

Deepa
Forum Sponsor
  #2  
Old 02-07-2003
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
This seems to be an odd sequence of events. Post the result of:
uname -a
ls -lid /
cd /appl
df -n .
ls -ia . | grep "\.\."
ls -i . | grep "\.\."
Only one of the last two lines will produce output depending on whether or not you are root. To continue...
cd ..
/bin/pwd

Also what shell are you using? Is "ls" an alias?
  #3  
Old 02-09-2003
Registered User
 

Join Date: Apr 2002
Posts: 53
Here is the output:

-----------------------------------------------------------------------
$ uname -a
SunOS obiwan 5.7 Generic_106541-15 sun4u sparc SUNW,Ultra-Enterprise

$ ls -lid /
2 drwxr-xr-x 49 root root 1024 Feb 6 07:07 //

$ cd /appl
$ df -n .
/appl : vxfs

$ ls -ia . | grep "\.\."
./..: Permission denied

$ ls -i . | grep "\.\."
$ cd ..
$ /bin/pwd
/
$
---------------------------------------------------------------------------

We use ksh and there is no alias for 'ls' command.

Thanks
Deepa
  #4  
Old 02-10-2003
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
I've seen stuff like this before on SunOS and I believe that it is a bug in the SunOS kernel. The problem is that the permissions on the mountpoint are wrong. After a mount, this should not matter, but with SunOS it does.

To make the problem go away, you need to do:

umount /appl
chmod 755 /appl
mount /appl
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:15 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0