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.
I have recently installed ubuntu server on a new machine. I have added 3 users and I have assigned them to a group.
The three of us work together on a lot of stuff so what I would like to do is to have a specific folder made the groups folder. All files that are created or moved into this folder should automatically be owned by the group. I.e. all 3 of us should have the right to read and write to these files.
you could try changing your umask flags to '002' so that files will be created with default permission 0664. However, this will create all your files with this permissions even the ones you do not want to share with other group members.
Another possibility is to have a closer look at ACL, as already has been suggested. I am not very familiar with ACL.
I'm sorry. As a beginner I do not understand the meaning of this.
then you probably don't want umask. It would cause other issues that you would have to deal with. So just forget about umask.
You should check out the links for incrond I provided. Create a group, lets call it 'staff', and a directory /home/common. Add every user you want to share files in /home/common to 'staff'. change group and permissions of /home/common
Next install and configure incrond to monitor /home/common. Upon file creation in that directory have the demon change the group and permission of the newly created file. Post again if you have trouble configuring incrond.
If you change your default group to the same group that all three people are in, then the group will have access to all newly created files. Using the usermod or useradd command, there is a -g and -G argument that can be used. The -g argument will allow you to specify the default group that will take ownership of newly created files. You want this default group to match the group of your three members. The other option is to change the group ownership of a file after you create it using the chgrp command, but I'm guessing you would want to use the former. If you use ls -l, you can see what group the file being created is owned by, and what is currently set as your default group.