I am having wierd situation. I am using ubuntu 14.10. I can open all directories in
nautilus but when I try to list files in terminal, only one directory get listed. I can traverse through the directory and open subdirectories in that in nautilus. But ls output of terminal shows no files! And I observed that the total count is correct incuding the . and .. dirs. Also the permissions of the parent folder changed to drwsrwsrwt. The ls output is shown below
me@linuxbox:/media/me/workspace$ ls
docker
me@linuxbox:ls -al
total 12
drwsrwsr-x 3 me me 4096 Apr 4 11:25 .
drwxr-x---+ 8 root root 4096 Apr 4 20:48 ..
drwsrwsr-x 2 me me 4096 Apr 4 11:25 docker
This is my private docker registry and along with that there are several other folders. They get listed in nautilus without any problems but is not shown in terminal.
the ls output of parent directory is as below
me@linuxbox:/media/me$ ls -al
total 32
drwxr-x---+ 8 root root 4096 Apr 4 20:48 .
drwxr-xr-x 3 root root 4096 Apr 4 20:09 ..
drwxr-xr-x 24 root root 4096 Apr 2 23:11 1c2bb1cb-19b3-4fb6-8298-15cf50fa7257
drwxr-xr-x 4 root root 4096 Apr 2 23:08 312ca6a5-7909-475c-bcff-54fdcde364d7
drwsrwsrwt 4 me me 4096 Apr 1 23:33 drive
drwxr-xr-x 7 me me 4096 Apr 2 21:47 media
drwsrwsr-x 3 me me 4096 Apr 4 11:25 workspace
drwsrwsrwt 11 me me 4096 Apr 2 23:51 workspace1
The directory workspace1 was not manually created. Is this a rootkit? . If I log in to debian and list file in terminal using ls, all the folders get displayed and permissions on the directories are same as ubuntu. I tried restarting, but it didnt help.
Also, ls -alq,find . -ls and getfacl inside workspace directory are as shown below
me@linuxbox:/media/me/workspace$ ls -alq
total 12
drwsrwsr-x 3 me me 4096 Apr 4 11:25 .
drwxr-x---+ 4 root root 4096 Apr 4 22:18 ..
drwsrwsr-x 2 me me 4096 Apr 4 11:25 docker
me@linuxbox:/media/me/workspace$ find . -ls
786435 4 drwsrwsr-x 3 me me 4096 Apr 4 11:25 .
786436 4 drwsrwsr-x 2 me me 4096 Apr 4 11:25 ./docker
me@linuxbox:/media/me/workspace$ getfacl ..
# file: ..
# owner: root
# group: root
user::rwx
user:me:r-x
group::---
mask::r-x
other::---
The most recent changes in my system are docker installation and debian installation. Can anyone help me out?
sudo lsandsudo ls -al;) – Rinzwind Apr 4 '15 at 16:17fooinworkspacethat's not shown bylsandfind(replacefoowith a name of an actual such folder, of course), can you view its metadata withlsby runningls -ld fooand its contents withls -l foo? (You can also tryfind foo -maxdepth 1 -lsto attempt listing both it and its contents, or with-maxdepth 0to try to list it only.) I wonder also, considering how the folder became7777(rwsrwsrwt), if it's a problem with how/media/meis mounted. What's the full output ofmount? – Eliah Kagan Apr 4 '15 at 17:50drwxr-x---+ 8 root root 4096 Apr 4 20:48 .., the parent directory (/media/me) belongs to root. Might be the issue , perhaps ? trysudo chown me:me /media/me. Also, notice in the second outputdrwxr-x---+ 8 root root 4096 Apr 4 20:48 ., says root group and root owner can read it, but others don't have any permissions. Nautilus is launched at startup by init, right ? so it belongs to root, which may explain why you can see stuffs there – Sergiy Kolodyazhnyy Apr 4 '15 at 18:05nautilusstarted byinit? It's supposed to be part of a user session. – David Foerster Apr 4 '15 at 19:11