UNIX file permissions (can't see files)
Hi,
I am currently logged in as user2, and i was able to navigate to a directory x. In this directory, user1 has files which have the following permissions: -rw-r--r-- user1 user1 Given that I am not with the same group as user1, I expect that I could at least see the file when I list directory contents. Is this always true to Unix? Or are there some other way that the owner (user1) hides the files from other users (such as user2)? Thanks in advance, Lester. |
Btw, the problem is that, I can't see the files when I list directory contents. However, user2 has sent me a screenshot that shows the files in the said directory, with the above permissions.
|
Do you just want to see the directory/files or also be able to modify/write?
|
Hi thesullster,
I want to verify that the files are really in that directory, and based on those permissions that I had from a screenshot, I expect to see those files when I list the directory contents. Thanks. |
Quote:
|
so if user1 change the permission like this you can see the files inside the directory x
Quote:
|
Quote:
That applies to directories, but I dont thinks the same applies to files. My issue is not with directory x since I was able to navigate inside it, obviously it has execute permissions for other users. My concern here are the files inside the directory x. Thanks. ---------- Post added 10-10-12 at 02:39 PM ---------- Quote:
Thanks. |
You cant even view other directory/files unless you are a SU / root
|
Quote:
|
In Debian, I sometimes do this (change home directory to the directory I want to monitor/access) :
sudo usermod -d <path to the directory you want to view> <your username> |
All times are GMT -5. The time now is 07:01 PM. |