Results 1 to 2 of 2

Thread: Shared disk with ACL, not working for copied files

  1. #1
    Join Date
    Jan 2006
    Location
    Örebro, Sweden
    Beans
    491

    Shared disk with ACL, not working for copied files

    I have two users on my system, and a shared drive (mounted at /mnt/shared) that should be read-writable for all users in the "locals" group. I have set up ACL so that everything works as it should for newly created files.

    However, when I copy a file from my home directory, with user/group myself/myself and permissions rw-r--r--, the copy in the shared directory is still not group writable, although it does get assigned the "locals" group.

    How can I change this behaviour, so that also copied files get rw-rw-r-- permissions, regardless of their original permissions?

  2. #2
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: Shared disk with ACL, not working for copied files

    Quote Originally Posted by jazzgossen View Post
    How can I change this behaviour, so that also copied files get rw-rw-r-- permissions, regardless of their original permissions?
    I don't think that's possible.

    But, you can use bindfs to (re)mount the partition/directory with different ownership and permissions. The ownership and permissions will apply to all files from the directory.

    e.g.:
    Code:
    sudo bindfs -o perms=0700,mirror-only=@locals /media/shared /media/shared
    HowTo: Create a shared directory for local users (with bindfs).

Tags for this Thread

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
  •