Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: same group permission for 2 different users in /home/folder1

  1. #11
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: same group permission for 2 different users in /home/folder1

    Quote Originally Posted by AfrikaDietmar View Post
    I actually achieve this in another way with Samba.
    In the smb.conf file i use force user function to achieve it.
    bindfs works in a similar way. It allows you to remount (bind) a file/directory with different permissions, e.g.:
    Code:
    sudo bindfs -o perms=0700,mirror=user1:user2 path/to/dir path/to/dir
    user1 & user2 will see themselves as the owner of the dir and they will have read/write/execute access for all the directories and subdirectories and read/write access for all the files from dir.

  2. #12
    Join Date
    Feb 2007
    Beans
    4,045
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: same group permission for 2 different users in /home/folder1

    Note that for acls to work, the filesystem must be mounted with the acl option.

    So add the acl option to the relevant filesystem in /etc/fstab
    Code:
    UUID=...  /home ext4 relatime,acl 0 2
    Then reboot or remount it.
    Code:
    sudo mount -o remount /home

Page 2 of 2 FirstFirst 12

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
  •