1834249 Members
2170 Online
110066 Solutions
New Discussion

directory access problem

 
SOLVED
Go to solution
Kurtkarl
Frequent Advisor

directory access problem

Hi,

I login as my ordinary user account. Now, when I'm at my own home directory ex. /home/user1 then run the command "man pwd" it works. But if I moved to a different dir, let say /www which is owned by me also and the permission is widely open I always got this error.

user1/www $man pwd
"Cannot access current directory."

and this is the permission of this directory.

drwxr-xr-x 4 user1 user 96 Feb 27 10:11 /www

It shows the correct path when I run "pwd" from /www directory. I could also "touch" or create a file under this directory.

Would appreciate if someone could help me on this.

Thanks in advance
Joey
Just starting to learn thru this forum
6 REPLIES 6
Sam Nicholls
Trusted Contributor

Re: directory access problem

Joey,

What is your MANPATH env var set to?

$ echo $MANPATH

I don't really know what the problem could be. But maybe a weird MANPATH could be the cause.

-sam
Kurtkarl
Frequent Advisor

Re: directory access problem

Hi,

Thanks for the quick response, here's my MANPATH set to:

home/user1$ echo $MANPATH
/usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/contrib/man:/usr/local/man/%L:/usr/local/man:/opt/pd/share/man/%L:/opt/pd/sha
re/man:/opt/hparray/share/man:/opt/ignite/share/man/%L:/opt/ignite/share/man:/opt/resmon/share/man:/opt/pred/share/man/%L:/opt/pred/sha
re/man:/opt/graphics/PEX5/share/man:/opt/graphics/starbase/share/man:/opt/socks/man:/opt/softbench/man:/opt/perl5/man:/opt/softbench/sh
are/man:/opt/medusa/share/man:/opt/audio/share/man:/opt/blinklink/share/man:/opt/ansic/share/man/%L:/opt/ansic/share/man:/opt/langtools
/share/man/%L:/opt/langtools/share/man:/opt/CC/share/man:/opt/video/share/man:/opt/videoout/share/man:/opt/perf/man/%L:/opt/perf/man:/o
pt/prm/man/%L:/opt/prm/man:/opt/imake/man:/opt/pwplus/share/man:/opt/omni/lib/man:/opt/fcms/bin:/opt/aCC/share/man/%L:/opt/aCC/share/ma
n

I don't have any MANPATH set on my .profile file.

Thanks
Joey
Just starting to learn thru this forum
Andy Monks
Honored Contributor

Re: directory access problem

does it just not work in the /www (or it's sub directories) or do you get the problem in /tmp too?
Kurtkarl
Frequent Advisor

Re: directory access problem

it works on any system default filesystem such as /tmp, /opt, /stand and etc. But when I run this on /www which is separated LV and a mounted filesystem it wont work. To think I could create directory or touch a file.
Just starting to learn thru this forum
Andy Monks
Honored Contributor
Solution

Re: directory access problem

Ok, I think I know what's occuring.

Can you umount /www and then check/change the permissions of the /www directory (remembering of course that there was a directory before you mounted something over it).

I believe you'll find that you don't have permissions on that directory. Once check/changed, mount the directory again and all should be well.
Kurtkarl
Frequent Advisor

Re: directory access problem

Andy,

Thanks it works. I unmounted the /www fileystem and found out it's being owned by someone else.

It also help me resolved my problem that I posted earlier here at IT resource about "Softbench mapping problem". Again thanks.. Also this goes for all who reply on my message.

Thanks
Joey
Just starting to learn thru this forum