Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't see files

Status
Not open for further replies.

craig322

MIS
Apr 19, 2001
108
US
I have a directory that contain 225,921 files. When I log in as root, I can do an ls on the files. If I log in as another user, when I do an ls, it appears the directory is empty.

I'm sure it has something to do with the large number of files, but what setting affects how may files a user can view.

TIA
 
check the owner and group of these files also.
 
I suspect that the permissions on the directory containing the files is the cause of the problem.

For correct operation, a directory should have read and execute permissions, the latter is sometimes known as the "list" permission, without it files can be listed with the name only, ll will not work but ls should, as you say this is what you tried I'm a little confused.

It could be worth checking this anyway.

I would have to look into if there are any issues with viewing files if the dir. contains alarge no. Off the top of my head I can't think of an issue.

Martin
 
A directory with large numbers of files causes problems when the shell tries to expand wildcards. ls -l *.txt will have troubles if will return more than a certain number of files (256 I think). This shows up in an error message though - the problem reported here looks like a permissions issue.

Mike

"Deliver me from the bane of civilised life; teddy bear envy."

Want to get great answers to your Tek-Tips questions? Have a look at faq219-2884

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top