ubuntu folder permission changed to drwsrwsrwt and nautilus shows files and terminal doesn't
Mia Lopez
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 dockerThis 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 workspace1The 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?
61 Answer
The directory /media/me/workspace1 contains all the files as per nautilus and is accessible without any issues. I have linked /tmp to /media/me/workspace/docker while setting up docker registry. After that permissions of tmp and /media/workspace/docker were the same(drwsrwsr-x). Also all the drives that were mounted while I linked tmp to /media/me/workspace/docker have the same permissions as of the workspace directory and all they have a renamed copy eg: drive1 for drive in /media/me directory. I can access these directories (eg:drive1) without any issues Thanks for the support :)