Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
File permissions upon creating the file
Results 1 to 3 of 3

Thread: File permissions upon creating the file

  1. #1
    Mentor
    Join Date
    Jun 2001
    Posts
    1,672

    File permissions upon creating the file

    This is the problem:

    I have a folder that has files shared by several users. All files need to be readable and writeable by all these users. I can change the permissions on already existing files for that, no problem. But when a user creates a new file let's say from OpenOffice, the new file will be writeable by that user and noone else. The question is how can I make the files writable for the group upon creation?

  2. #2

    Re:File permissions upon creating the file

    I believe you will be wanting to check out umask

    I haven't used it in quite some time and I am not in front of my box at the moment but I'm sure you can find plenty of info on it.

  3. #3

    Re:File permissions upon creating the file

    Quick Google search turned this up:

    Code:
           umask [-p] [-S] [mode]
                  The user file-creation mask is set to mode.  If mode begins with
                  a  digit,  it is interpreted as an octal number; otherwise it is
                  interpreted as a symbolic mode mask similar to that accepted  by
                  chmod(1).   If mode is omitted, the current value of the mask is
                  printed.  The -S option causes the mask to be  printed  in  sym-
                  bolic  form;  the  default output is an octal number.  If the -p
                  option is supplied, and mode is omitted, the output is in a form
                  that may be reused as input.  The return status is 0 if the mode
                  was successfully changed or if no mode  argument  was  supplied,
                  and false otherwise.

Similar Threads

  1. Ubuntu default file permissions
    By RickDev in forum Ubuntu / Debian
    Replies: 1
    Last Post: 01-02-2007, 06:59 PM
  2. file permissions
    By sentme_mail in forum Linux - General Topics
    Replies: 8
    Last Post: 11-20-2004, 04:39 AM
  3. Help with file permissions
    By boblucci in forum Linux - General Topics
    Replies: 3
    Last Post: 04-21-2003, 02:28 PM
  4. Confused on file system permissions
    By jayc in forum Linux - General Topics
    Replies: 2
    Last Post: 01-20-2003, 05:49 PM
  5. file permissions reset to 755
    By gomez alert in forum Mandriva
    Replies: 7
    Last Post: 05-15-2002, 10:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •