LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   ls command (http://www.linuxquestions.org/questions/linux-general-1/ls-command-4175456412/)

teunis 04-01-2013 03:44 PM

ls command
 
OpenSUSE 12.1 ext4 fie system
Here is a part of the output of the ls -l command
Code:

-rw------T  1 teunis users      328 Feb  6  2012 .gtkrc-2.0-kde4
d?????????  ? ?      ?            ?            ? .gvfs
drwx-----T  2 teunis users      4096 Apr  1 09:50 .hplip

logged in as root I can't rm or chown the .gvfs directory
Any suggestions how to repair? Thanks

Emerson 04-01-2013 05:24 PM

Umont the filesystem and run fsck?

TobiSGD 04-01-2013 05:39 PM

IIRC, GVFS is a virtual file-system used by Gnome and XFCE, so a rm or chmod wouldn't make much sense anyways, unless it is your intention to crash your DE (or at least the file-manager).
More info here: https://en.wikipedia.org/wiki/Gvfs

teunis 04-02-2013 08:53 AM

I don't know where home is situated
So I did a fsck on /dev/sda2 (the biggest partition)
It did not help. I like to chown to myname:users
Anyway those ?? are showing trouble.
Any suggestion is welcome!

TobiSGD 04-02-2013 09:09 AM

As I stated before, GVFS is a virtual filesystem, fsck will not help here. As long as there are no problems besides the weird ls output I would just not care about it.

Nbiser 04-02-2013 05:51 PM

Quote:

Originally Posted by TobiSGD (Post 4923456)
As I stated before, GVFS is a virtual filesystem, fsck will not help here. As long as there are no problems besides the weird ls output I would just not care about it.

Quite right!!

As long as it isn't interfering with the operation of your system, don't bother it.

teunis 04-04-2013 10:07 AM

I am surprised about the answers: No problem - Don't worry.
The feature, that I like about Linux is that I understand / know what is going on.
Is there nobody among the linux users that knows how to get rid of the ???
If there is someone, Please, try to formulate an answer. Thanks

GazL 04-04-2013 10:25 AM

d????? on a directory like that usually signifies that you're missing +x permissions on its parent directory.

rknichols 04-04-2013 11:07 AM

The filesystem mounted on .gvfs is a highly specialized virtual filesystem that has meaning only to programs connected to the current Gnome session. Programs outside of that session, even when run by root, are denied access and cannot even do a stat(2) system call to get the metadata for the directory. Your ls command is displaying question marks for the data it could not obtain.

If you tried to run "ls -ld ~teunis/.gvfs" you would see the "Permission denied" message that you probably overlooked somewhere in your longer ls listing.

teunis 04-04-2013 07:36 PM

No I did not overlook the "Permission denied"
I am surprised that if I am logged-in as root I STILL get that message.
I can accept warnings and advices but not a "denied" answer from the OS

rknichols 04-04-2013 09:02 PM

I suppose that EPERM ("Operation not permitted") might be a more suitable setting for errno in this situation rather than EACCESS ("Permission denied"). If you were to suggest that on the Linux kernel mailing list, it might actually get a positive reception.

Nbiser 04-05-2013 10:10 AM

You could always contact the maker of your distro............


All times are GMT -5. The time now is 03:59 PM.