1825606 Members
2970 Online
109682 Solutions
New Discussion

.. not found

 
MUFTI Rachid
Frequent Advisor

.. not found

Hello,

I have a strange problem...
when I do ls -a whith a non-root user in a directory I don't see ".."
But, cd ".." works ??!!!....

Someone know this problem...

thanks !

12 REPLIES 12
Michael Tully
Honored Contributor

Re: .. not found

Hi,

This means that that particular userid does not have permission to read the contents of that directory.
Anyone for a Mutiny ?
Bill McNAMARA_1
Honored Contributor

Re: .. not found

as root
ls -la in the directory.

There is probably some wierd permission thing going on.

To change dir you need execute permission.
Read is possibly off.

A strange exmaple of permissions.
create a dir with write perms.
make the files in that dir read only.
rm the files from the dir.

The dir contains the files index. the index can be removed from the dir.

It works for me (tm)
Bill McNAMARA_1
Honored Contributor

Re: .. not found

rm the files from the dir as any user btw.

Later,
Bill
It works for me (tm)
MUFTI Rachid
Frequent Advisor

Re: .. not found

All of non-user root have the right permission.
especially the owner of the directory has the same problem.
Thierry Poels_1
Honored Contributor

Re: .. not found

hi,

"ls -A" shows all files, except "." and ".."

"ls -a" shows all files, including "." and ".."

probably nothing new to you, but anyway ;-)
regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Eugen Cocalea
Respected Contributor

Re: .. not found

Hi,

Do you see '.'? Or any other .* file? Maybe 'ls' is aliased to 'ls -A' which is default (see the man page, focus on -A).

E.
To Live Is To Learn
MUFTI Rachid
Frequent Advisor

Re: .. not found

hi eugen,

When I do ls -a I see "." ?!
Whith the user root, I put all the permission on the ".." files..

regards.
Bill McNAMARA_1
Honored Contributor

Re: .. not found

how's the filesystem mounted?

type mount -p

Is it nfs exported/mounted?

Later,
Bill
It works for me (tm)
MUFTI Rachid
Frequent Advisor

Re: .. not found

hi bill,

here is the output of mount -p
dev/vg01/lvol2 /DA/SAS/prod vxfs delaylog,nodatainlog 0 0

It's not a nfs file system..



MUFTI Rachid
Frequent Advisor

Re: .. not found

I found something can help u.
15:09:38 text-sz ov proc-sz ov inod-sz ov file-sz ov
15:09:40 N/A N/A 322/664 0 4000/4000 0 1517/12018 0

the inode table is full !!

MUFTI Rachid
Frequent Advisor

Re: .. not found

hello guys,

always the same problem even after a reboot

RM.
Bill Hassell
Honored Contributor

Re: .. not found

The inode table in sar will always look full shortly after a reboot. This table is a cache of current and recently opened files. Unfortunately, the kernel does not provide a simple way to determine reusable entries, thus the sar metric shows all inodes including files that were recently closed.

As mentioned, the ability to 'see' directories and files using ls/ll is solely dependent on the permissions of the parent directory. If you create a directory with 700 permissions, any attempt to use ls/ll on the directory will report: "unredable" for all but the owner.

And if you try to cd into the directory, you will get "Permission denied".


Bill Hassell, sysadmin