35
Screwed up permissions, ownership, attributes on large fs. How to reset?
(lemmy.dbzer0.com)
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
I'm not familiar with
chacl
("change the access control list of a file or directory"). Is is similar tosetfacl
("set file access control lists")? A matter of preference/habit?It seems like
-B
does "Remove all ACLs". Which I guess is what I am asking for? Files on linux are OK to have no ACLs?About the
find ... {} +
, I see{} +
So does it wait until it has found all the matches to run the command as a giant batch instead of running it as it finds matches?
almost. it runs the command in batches, if you have few enough files it may only run it once. this shouldn't make it slower, but actually faster.
and yes, linux does not use ACLs by default. ~~on ext4 usage of ACLs is not even enabled by default, but only if you set it up with the right mount option~~
Is that the case? One reason I included the information is because I found conflicting info and I am unsure. I specifically recall reading it is default on ext4 but not ext3.
archwiki:
This SE thread has a coment dated 2015:
I don't think I have read anywhere it is not default for ext4, only for earlier exts.
oh, that's right, sorry. it must have changed in recent years.
so I haven't either found a definitive answer to whether it is a default mount option, but the closest I found is almost it:
man mount
says to look inman ext4
, and there itsays the defaults are determined by the filesystem superblock.the superblock's settings can be viewed with
tune2fs -l /dev/your_blockdev
, and according to the "default mount options" line I indeed have acl enabled by default on all my ext4 filesystems.so in the end, the default is determined by the tool that makes the filesystem.
mkfs.ext4
reads them from/etc/mke2fs.conf
if not overridden with an argument. on my system tue acl option is right there in this file.and that also means that this depends not on your current system, but on the system where the filesystem was created.