Linux user paermissions

Discussion in 'Site & Server Administration' started by nikywm, Aug 7, 2011.

  1. #1
    Hi all ;)

    I am trying to setup permissions for a group of linux users..

    /home/user1 - owned by user1
    /home/user2 - owned by user2
    ..
    /home/www - owned by www-data

    Obviously the www/ folder will contain the www files, so I need all users to be able to access and write inside.
    For that, both users are added to the www-data group, and they can do it at some point.

    The problem is, when a user1 creates a file into www/, it is not writable to the other users (rw-r-r).
    How can I correct that? I need when a user creates a file into the /home/www folder, to be created with permissions rw for the group.
     
    nikywm, Aug 7, 2011 IP