J
J
juffinhalli2013-05-21 22:03:12
linux
juffinhalli, 2013-05-21 22:03:12

Root ignores acl?

Good night habrazhiteli!
Given:
Partition with ext4, mounted with acl option
Shared folder via samba
ACL rights assigned to the folder:
# owner: nobody
# group: nogroup
user::rwx
user:nobody:rwx
group::rx
mask::rwx
other::rx
default :user::rwx
default:user:nobody:rwx
default:group::rwx
default:mask::rwx
default:other::rx
In theory, any file created by anyone in this folder should always be writable by user nobody
But after copied using Midnight Commander as root, the new copied file has the following rights
# owner: root
# group: root
user::rw-
user:nobody:rwx #effective:r--
group::rwx #effective:r--
mask::r--
other::r--
Enable/disable the "Keep attributes" option in the Midnight copy dialog Commander has no effect.
As a crutch, the problem is treated with the setfacl -R -mm:rwx /path-to-folder command.
Please help with advice - how to make ACL work for the root user as well.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
gaelpa, 2013-05-22
@gaelpa

Perhaps the problem is in the umask of the root (0022 by default). I don’t remember the nuances now (and there are no nixes at hand), but it’s worth google how ACL interacts with umask.
Try setting umask 0002 before copying and compare the results.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question