LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-08-2005, 09:20 AM   #1
AlistairH
LQ Newbie
 
Registered: Nov 2005
Location: Scotland
Posts: 1

Rep: Reputation: 0
Clarification of Linux File Permissions


Hi folks, this newbie's first question (though no doubt not my last)

I've been trying to get Samba to work correctly in Fedora Core 4 but having great problems writing anything across the network.

The past two hours have seen me go back to basics and look at the Linux file permissions. I confess I cannot see how they work. More specifically how a sub-folder/file inherits its permissions when it is created.

For example:

Logged on as root I create a folder called 'datafiles' with the owner as 'root' and the group as 'bms' (a group containing the users, 'alistair' and 'louise'). The permissions are set to rwxrwx---.

If I log on as 'alistair' (a member of the 'bms' group) I expect the permission to remain the same except for the ownership being in my name - which is does. However, the group changes to the primary group of 'alistair', namely 'users' in my case. The permissions also change to rwxr-xr-x. Why?

Thinking that the 'Sticky' flag may solve the problem, I repeated the process. This had no effect - the permissions remain the same as described in the preceeding paragraph.

Turning the 'Group ID' flag on results in ensures that the group setting stays the same as previously, i.e. 'bms' which is what I want, but the access permissions change to rwxr-xr-x and not the rwxrwx--- of the parent folder. How can I stop this happening?

Clearly, I can log into the console as Ive done with this exercise and change the permissions as desired, but users won't be able to do that. Indeed, they'll be creating folders and files via their Windows pcs so they can't change them even if the know how. All sub-folder and file access permissions must be governed by the parent folder that I set up for them.

Now whether or not this is the cause of my access problems via Samba as described above I don't know. However, I need to get this sorted before I can investigate any issues with network access. I've found lots of references on the web regarding Linux file permission but none that explain to me how the inheritence works.

Cheers (with apologies for rambling on so much)
 
Old 11-08-2005, 01:37 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
This is not what you think. Things are a little more complicated, or maybe simplier... depending how you look at it
I'd recommend searching Google for something like this.
And one may always read Samba manual. Can't say I know someone who has studied all of Samba documentation though.
 
Old 11-08-2005, 04:03 PM   #3
LinuxSeeker
Member
 
Registered: Feb 2004
Location: Linuxland
Distribution: Ubuntu 5.10, KUbuntu 5.10, Mandrake 10.1 - Ubuntu 5.04 (Hoary)
Posts: 346

Rep: Reputation: 30
Check this out. It is for SuSE, however, you should be able to find ways to skip the steps that involve Yast.
 
  


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
DISCUSSION: Quick and Dirty Guide to Linux File Permissions bulliver LinuxAnswers Discussion 32 12-19-2011 10:36 PM
Linux file permissions soccertux Linux - General 3 03-18-2005 01:51 PM
Linux File Permissions - Need some help. richcom23 Linux - Networking 6 02-24-2004 01:51 PM
Linux file permissions jamrock Linux - Networking 3 05-19-2003 12:24 PM
samba and linux file permissions? gene12 Linux - Networking 1 08-05-2002 02:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:41 PM.

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