Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-08-2005, 09:20 AM   #1
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
LQ Guru
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,311

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
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:34 PM.

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