LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Linux's general file order structure. (http://www.linuxquestions.org/questions/linux-desktop-74/linuxs-general-file-order-structure-4175467631/)

omegazafer 06-27-2013 04:59 PM

Linux's general file order structure.
 
Hi friends,
Can you give me brief explanation about linux file structure because the situation that it is different than windows is causing a bit confusion to new linux users?

For example if there are two users in a same computer. how one user reach the other user's home directory thinking of windows(c/users/).The all files should be reachable easiliy like windows shoudn't they. First of all we accept not to use additional file manager installed to our system. Later yo can give an example to file manager programs.

thanks for your interest.

frankbell 06-27-2013 09:03 PM

Here is a good primer on the Linux file structure. http://www.thegeekstuff.com/2010/09/...tem-structure/

Here's an intro to the user security model: http://tldp.org/LDP/intro-linux/html/sect_03_04.html

I just tested on my Debian system, where I have a second user (for Samba purposes).

I can see and open the files in her home directory, and I am not allowed to modify them; they are set to read only for "others."

omegazafer 06-28-2013 05:14 AM

Thanks frankbell,
I read the writings that you advised now I am beginning to understand but there is a point which I have a difficulty to undertand. Is only home directory changing according to user? Are the other directories the same for all users in a one os? How can reach user2's home directory as user1 in user1's desktop without any additional file program?(We accept permissions are sufficient for user2's home directory )

yancek 06-28-2013 05:17 PM

Generally, each user will have his/her own sub-directory in the /home directory. Each user will have rwx permissions on his/her own directory.
The other directories will usually allow read or execute permissions (not always) and need root permission to do modify, write to or delete.
user1 should be able to access to read another users /home/user directory but not modify or write to. That is by design. If you want to give one user permission to write to or delete another users files you will have to change the permissions. That is generally what 'root' user is used for. Hope I understood your questions?

omegazafer 06-28-2013 06:44 PM

Thanks yancek,
Your answer is very helpful for me included what I absolutely asked.


All times are GMT -5. The time now is 11:32 PM.