default group for file creation

default group for file creation

Post by Marshall Lev » Wed, 26 Oct 1994 00:38:01



Hi,

I need to know if there is a way of setting default file creation op[tions
dependent on what directory I am in.  For example, if I am in /home/blah-blah,
a file I create will automatically be 664 and in group blah, while if I am in
/home/hum-dum and create a file it will be 644 and in group hum.  I know how
to set default chmod options in general, but don't know how to make this
directory dependent and also toospecify a group upon creation.

Thanks,
Marshall

 
 
 

1. Default File Creation Permissions

I apologize if this is a "routine" question but I can't find the damned
anwser.

Files uploaded via FTP to my server have default permissions set at 640.
There is an entry in my auth.config file of umask 022 but it doesn't seem to
matter.  The entry in my inetd.conf file for ftp is:

    ftp     blah blah blah...       ftpd

If I change it to this:

    ftp     blah blah blah...       ftpd -u022

will it force the default file creation permissions to 644?

I tried to find the answer in several FAQ's and I think that this is what
they're telling me to do.  Does anyone know for sure?  I want to know this
will work before I take my server offline to reboot.

2. How to directly read a file (ex. /etc/XXX) in driver code?

3. Default file permission problems during creation.

4. SOS: ORACLE fbsd40 HELP PLEASE

5. HOW DO I SET USER DEFAULT FILE CREATION RIGHTS

6. Module trouble with 2.3.99-pre3

7. I want FTP default to be -rwxrwxrwx files, NOT system default like -rw-rw-rw- files !

8. Linux setup ATI Pro LT Graphics card Drivers

9. Creating Files In Default Group

10. way to make all files created in a dir default to that dir's group?

11. make all files written to a dir default to that dir's group???

12. Dnews group creation question