LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 09-22-2009, 07:15 PM   #1
BCJapan
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Rep: Reputation: 0
Directory is invisible in listing but it is exist.


Hi ALL.

Can anyone help me.

Have you had a chance to experienced that when you list (ls) a directory from ordinary execution of command, you couldn't see the directory.
However, when you list it from the directory filename itself or even changing to directory (cd), it will show to you that there is an existing folder.

Sounds weird and interesting? Please see below sample or actual snapshot.....

No issues:
men:/nas> ls -ld FilterT*
drwxrwxr-x 2 user1 user1 1024 2009-03-14 16:36 FilterTools
men:/nas> ls -ld FilterTools
drwxrwxr-x 2 user1 user1 1024 2009-03-14 16:36 FilterTools

Here's the issue:
men:/nas> ls -ld CIM_SOLSUM*
/bin/ls: CIM_SOLSUM*: No such file or directory
men:/nas> ls -ld CIM_SOLSUMMARY
drwxrwxr-x 2 user1 user1 80 2009-09-19 17:46 CIM_SOLSUMMARY
men:/nas> cd CIM_SOLSUM*
-bash: cd: CIM_SOLSUM*: No such file or directory
men:/nas> cd CIM_SOLSUMMARY
men:/nas/CIM_SOLSUMMARY> ls -l
total 8
-rwxrwxr-x 1 user1 user1 130 2009-06-04 05:33 CIM_SOLSUMMARY.xml

men:/nas> uname -a
Linux sy1nas01 2.6.5-7.282-bigsmp #1 SMP Tue Aug 29 10:40:40 UTC 2006 i686 i686 i386 GNU/Linux

Also, do you think there's an issue or has effect from NAS server?

sy1nas01:/fs/R14
113141856 100473888 12667968 89% /nas

Many thanks in advance.
 
Old 09-23-2009, 03:21 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
The symptoms will happen if you have execute permission but not read permission on the directory
Code:
c@CW8:~$ mkdir nas
c@CW8:~$ chmod 300 nas
c@CW8:~$ mkdir nas/CIM_SOLSUMMARY
c@CW8:~$ cd nas
c@CW8:~/nas$ ls -ld CIM_SOLSUM*
ls: cannot access CIM_SOLSUM*: No such file or directory
c@CW8:~/nas$ ls -ld CIM_SOLSUMMARY
drwxr-xr-x 2 c c 4096 2009-09-23 13:48 CIM_SOLSUMMARY
c@CW8:~/nas$ cd CIM_SOLSUM*
bash: cd: CIM_SOLSUM*: No such file or directory
c@CW8:~/nas$ cd CIM_SOLSUMMARY
c@CW8:~/nas/CIM_SOLSUMMARY$
This explanation is not consistent with your "No issues" section.
 
Old 09-24-2009, 12:41 PM   #3
BCJapan
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by catkin View Post
The symptoms will happen if you have execute permission but not read permission on the directory
Code:
c@CW8:~$ mkdir nas
c@CW8:~$ chmod 300 nas
c@CW8:~$ mkdir nas/CIM_SOLSUMMARY
c@CW8:~$ cd nas
c@CW8:~/nas$ ls -ld CIM_SOLSUM*
ls: cannot access CIM_SOLSUM*: No such file or directory
c@CW8:~/nas$ ls -ld CIM_SOLSUMMARY
drwxr-xr-x 2 c c 4096 2009-09-23 13:48 CIM_SOLSUMMARY
c@CW8:~/nas$ cd CIM_SOLSUM*
bash: cd: CIM_SOLSUM*: No such file or directory
c@CW8:~/nas$ cd CIM_SOLSUMMARY
c@CW8:~/nas/CIM_SOLSUMMARY$
This explanation is not consistent with your "No issues" section.

Hello... thanks for the response....

the folder is a 775 permission as stated:
men:/nas> ls -ld CIM_SOLSUMMARY
drwxrwxr-x 2 user1 user1 80 2009-09-19 17:46 CIM_SOLSUMMARY

actually, other files/directories that has been uploaded including the CIM_SOLSUMMARY where visible but only that directory were not visible from the ordinary directory listing...

any help would be appreciated....

many thanks in advance....
 
Old 09-24-2009, 12:59 PM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by BCJapan View Post
the folder is a 775 permission as stated:
men:/nas> ls -ld CIM_SOLSUMMARY
drwxrwxr-x 2 user1 user1 80 2009-09-19 17:46 CIM_SOLSUMMARY
Not the CIM_SOLSUMMARY directory but its parent, as demonstarted by chmod 300 nas in my screen scrape.

But that explanation is inconsistent with this command of yours working
Code:
men:/nas> ls -ld FilterT*
 
Old 09-25-2009, 10:08 AM   #5
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 36
Do you have any particular attributes set for the parent directory or the contents inside ?
 
Old 09-25-2009, 01:06 PM   #6
BCJapan
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Hi ALL.

Many thanks for all the replies. FYI.

The issue has been resolve by trying to remount the NAS Server.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
invisible directory /usr/src/linux-2.6.21... PankajDS Linux - General 1 01-17-2008 01:28 PM
Directory with .htaccess is invisible?! Barca Linux - General 5 02-23-2005 12:28 PM
Invisible Directory 900i Mandriva 6 12-09-2004 03:26 PM
X11 directory invisible? astrowill Linux - Newbie 3 07-22-2004 12:46 PM
invisible directory prowlerxpla Linux - Software 1 09-11-2003 09:50 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 02:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration