File access/ Never seen problem!

Dear Guru's,

I am being facing strange issue in UNIX.

My user name is shah and one more user name is appstest

I have a directory created by appstest user i.e.

/home/appstest/work

ls -ld /home/appstest/work
drwxrwxr-x  10 appstest  apps   12288 Aug 06 23:41 /home/appstest/work

Now I logged in to my user name i.e. shah
and the switch user

su appstest

I tried to copy any file from any directory to this directory i.e. /home/appstest/work

it say like

cp: /home/appstest/work/workprod.dat: The file access permissions do not allow the specified action.

I am able to create any file in this direcory i.e /home/appstest/work

and one more intersting thing is , I am able to copy any file inside
/home/appstest/work/appln directory

df -k
/dev/a_hect    47185920   6196332   87%     3780     1% /home

Can somebody help me in this?

Thanks,
Shahnaz.

Hi Shahnaz,

The directory permissions only affect your ability to list the directory contents (r), change into the directory and attempt to access files and directories below it (x) and create and delete files within the directory (w).

The same applies to any directory further up the tree (eg /home/appstest)

To get to the bottom of this, I suggest the following diagnostics be performed:

  • id -a
  • ls -l <file you are attempting to copy>
  • ls -ald /home/appstest
  • ls -al /home/appstest/work

With luck the answer will be self evident, but if not, post your findings back here and we'll have a look :slight_smile: