Results 1 to 3 of 3

Thread: File permission problem

  1. #1
    Join Date
    Apr 2009
    Beans
    Hidden!
    Distro
    Ubuntu

    File permission problem

    Hi,

    I tried a bunch of google results, but I couldn't find an answer for this.
    I have a folder and it's chmodded g+s, so it inherits the group on file creation.
    But for some reason, the system decides to grant only read permissions for the group on new files, even though the folder has rwx for the group.

    Any idea what I'm missing?

    Update:
    In the meantime I tried installing the ACL (as suggested here: https://help.ubuntu.com/community/FilePermissions ) but that also didn't work on newly created files.
    Last edited by new_tolinux; May 28th, 2014 at 09:28 PM.

  2. #2
    Join Date
    Jul 2009
    Beans
    516
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: File permission problem

    Setting chmod g+s only affects the group ownership, nothing to do with the permissions of the newly created file. See 'man chmod'

    What's your 'umask' set to? I think it should be 'umask 0002' for what you want, http://www.cyberciti.biz/tips/unders...lue-usage.html
    Mark your thread as [SOLVED], use Thread Tools on forum page.

  3. #3
    Join Date
    Apr 2009
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: File permission problem

    I don't really know what did the trick, but I started to set the umask to 007.
    Next thing, I configured samba with "force create mode = 660"
    At least the group has write permission now, I'm still not sure though why newly created files get rw-rw-r--, since both the 007 (even tried 0007) and the samba configuration are set to grant no rights to "others"
    Last edited by new_tolinux; May 28th, 2014 at 10:14 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
  •