[Samba] permission problems (ACL)

June 28th, 2012 - 07:50 am ET by Elfish | Report spam
Hi,

i got a problem with a samba share...
let's say i have 2 folders. the first folder is only accessible by 1 group
(sharepriv), which has r/w access.

getfacl output:
Code: # file: complete/
# owner: elfish
# group: elfish
user::rwx
group::rwx
group:sharepriv:rwx
mask::rwx
other::
default:user::rwx
default:group::rwx
default:group:sharepriv:rwx
default:mask::rwx
default:other::

the 2nd folder is accessible by 2 groups and 1 user.
1 group has rw access (same group as on the first folder)
the 2nd group only has read permissions

getfacl output
Code:# file: Sonstiges/
# owner: elfish
# group: elfish
user::rwx
user:shareguest:r-x
group::rwx
group:sharepub:r-x
group:sharepriv:rwx
mask::rwx
other::
default:user::rwx
default:user:shareguest:r-x
default:group::rwx
default:group:sharepub:r-x
default:group:sharepriv:rwx
default:mask::rwx
default:other::

if i move a file from the first folder to the second folder by cutting it
out in windows (the share is mounted there) and inserting it in the 2nd
folder
the 2nd group (sharepub) has no access to it. So basicly the first folder
keeps it's permissions.

i thought that the parent dir permissions are set to sub folders/files.

oh and i enabled honor existing acls and enable permission inheritence,
which i think should be correct.

anyone got an idea whats wrong?

regards
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
email Follow the discussionReplies 4 repliesReplies Make a reply

Similar topics

Replies

#1 Miguel Medalha
June 28th, 2012 - 08:40 am ET | Report spam
if i move a file from the first folder to the second folder by cutting it
out in windows (the share is mounted there) and inserting it in the 2nd
folder the 2nd group (sharepub) has no access to it. So basicly the first folder
keeps it's permissions.

i thought that the parent dir permissions are set to sub folders/files.

oh and i enabled honor existing acls and enable permission inheritence,
which i think should be correct.

anyone got an idea whats wrong?



Nothing is wrong. This is the default behavior of Windows itself.

When you move a file, it keeps its permissions, as it should. When you
copy a file, it acquires the permissions of the destination folder.

With Windows 7 there has been some modification to this default
behavior. Please consult the Microsoft technical pages about this.
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Replies Reply to this message
#2 Miguel Medalha
June 28th, 2012 - 09:40 am ET | Report spam

Good to know that it's a OS problem and not a samba problem.
I finnally know what to look for.



It is not a problem, it's a feature! If you think about it carefully,
you will see that this is a correct way to behave.

To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Replies Reply to this message
#3 Elfish
July 02nd, 2012 - 02:10 am ET | Report spam
Hello,

thanks for your reply!
Good to know that it's a OS problem and not a samba problem.
I finnally know what to look for.

And I'm using Windows 7.

Regards.

2012/6/28 Miguel Medalha


Nothing is wrong. This is the default behavior of Windows itself.

When you move a file, it keeps its permissions, as it should. When you
copy a file, it acquires the permissions of the destination folder.

With Windows 7 there has been some modification to this default behavior.
Please consult the Microsoft technical pages about this.



To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Replies Reply to this message
#4 Elfish
July 04th, 2012 - 10:20 am ET | Report spam
Hi,

i tried various search strings, with no success.
Any idea what i should look for exactly?

regards

2012/6/28 Elfish

Hello,

thanks for your reply!
Good to know that it's a OS problem and not a samba problem.
I finnally know what to look for.

And I'm using Windows 7.

Regards.


2012/6/28 Miguel Medalha


Nothing is wrong. This is the default behavior of Windows itself.

When you move a file, it keeps its permissions, as it should. When you
copy a file, it acquires the permissions of the destination folder.

With Windows 7 there has been some modification to this default behavior.
Please consult the Microsoft technical pages about this.







To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
email Follow the discussion Replies Reply to this message
Help Create a new topicReplies Make a reply
Search Make your own search