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 no idea how to use umask. I am trying to make it so when someone (anyone) writes/creates anything in a certain directory the permissions are set to user read write group read write and everyone read. Do I have to change this per user or can I do it by individual directory and how do I do it.
I did chmod already, but the problem is with FTPing. When I create a webpage on my machine and upload via FTP it does not take on the permissions of the directory. I then have to physically go to the server and re-chmod the directory.
If this was something as simple as a 'cp', you could just make a script that saves the original umask, changes it, copies the file, and then changes the umask back. But I don't know how to get this working over ftp (and I don't know of a way to get the directory to enforce permissions). If know one comes with some help, I guess all you're left with is to edit your behavior somewhere in the creation process - ie. lets say you use 'touch' to create the file, then make a little alias to replace it with ftouch (or something) which automatically changes the permission. This will give you some less typing, but comes no where near of solving your problem (esp. if different people upload to this server). I haven't done much with ftp, but maybe you can create a script to chmod the directory everytime something is uploaded...
The user (ftp_user) I have using ftp is a member of the www group. I can create a file and ftp it and the owner can stay the same(ftp_user) the group is already the same as the group that owns the directory (www), but I just need to take off the everyone write,execute permission and add group write. Is there no easy way to change the default permissions a user assigns to the files they create?
Okay I got the ftp figured out (you can just change the values in the config file), but what about when a user creates a file, saves it to their desktop and then moves it to a restricted shared drive. I have users that do this and are members of a group (opla) but when it gets stored on the shared drive the person that created the document is the only one that can do anything with it, other group members are denied access. I want the group to have full access to the files created by other members of their group.