I'm using Sun Solaris and I find that if I cd to one particular directory and do an ls, no files are listed. It doesn't matter what options I use on the ls command (I've tried -l, -f, -a). Adding an argument like a filename or directory makes no difference.
However, if I do cd .. and then list the directory using "ls dirname", I can see all the files. Likewise, if I cd to a subdirectory and do ls .., it's fine. The ID I'm using owns the directory but not most of the files in it. If I log in to the account which does own the files, the ls works correctly.
Protections on the directory seem reasonable. It's drwxrwxr-x and the fles are mostly -rwxrwxr-x. The two IDs are in the same group, so should be able to see each other's files. I suppose it must be a problem with protections but it's odd that I seem to be able to list the contents from outside the directory but not when I'm in it.
However, if I do cd .. and then list the directory using "ls dirname", I can see all the files. Likewise, if I cd to a subdirectory and do ls .., it's fine. The ID I'm using owns the directory but not most of the files in it. If I log in to the account which does own the files, the ls works correctly.
Protections on the directory seem reasonable. It's drwxrwxr-x and the fles are mostly -rwxrwxr-x. The two IDs are in the same group, so should be able to see each other's files. I suppose it must be a problem with protections but it's odd that I seem to be able to list the contents from outside the directory but not when I'm in it.