Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.
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.
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.