Find the answer to your Linux question:
Results 1 to 3 of 3
What is the command to fix the permissions for file creation? Thanks...
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    1

    Question Permission Settings

    What is the command to fix the permissions for file creation?

    Thanks

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568
    Have you looked into chmod ?
    try
    man chmod
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  3. #3
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    chmod will allow you to modify the permissions of an existing file.

    If you are looking for a way to modify the permissions given to brand new files that you create, you will want to look into umask. Basically, umask takes in a number, and will subtract that number from 777 to get the permissions to give to new files (so umask lists the permissions that you _don't_ want your new file to have). On a bit more technical level, it works like this:
    Code:
    permissions = 0777 & ~umask
    Does that help/make sense?
    DISTRO=Arch
    Registered Linux User #388732

Posting Permissions

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