LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 06-27-2013, 03:59 PM   #1
omegazafer
LQ Newbie
 
Registered: Jun 2013
Posts: 8

Rep: Reputation: Disabled
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.
 
Old 06-27-2013, 08:03 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
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."
 
1 members found this post helpful.
Old 06-28-2013, 04:14 AM   #3
omegazafer
LQ Newbie
 
Registered: Jun 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
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 )
 
Old 06-28-2013, 04:17 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,503

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
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?
 
1 members found this post helpful.
Old 06-28-2013, 05:44 PM   #5
omegazafer
LQ Newbie
 
Registered: Jun 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks yancek,
Your answer is very helpful for me included what I absolutely asked.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert directory structure from long file names in Linux to DOS 8.3 structure? manorina Linux - Software 5 09-12-2009 09:18 AM
Linux file structure go_sooner Linux - Newbie 3 06-05-2005 01:46 AM
Linux general structure woranl Linux - Newbie 4 05-26-2005 05:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 08:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration