mina86

joined 3 months ago
[–] mina86@lemmy.wtf 8 points 1 month ago (5 children)

It was in fact a microscopic deal. Linus overreacted. Lemmy and Reddit milked the drama.

[–] mina86@lemmy.wtf 1 points 1 month ago
find -type f -exec chmod 644 -- {} +
find -type d -exec chmod 755 -- {} +

will only affect regular files and directories. There are other type of files (specifically block and character devices, named pipes and sockets) which those two commands would leave unaffected. In practice, I suspect you don’t have any of those to worry about so you can use -find f.

[–] mina86@lemmy.wtf 3 points 1 month ago

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?

Indeed. If possible, it is typically what you want (as opposed to find ... -exec ... {} \; which runs command for each found file) since it will run faster. You want find ... -exec ... {} \; if the command you’re executing can run on single file only or you’re dealing with legacy system without -exec ... {} + support.

[–] mina86@lemmy.wtf 3 points 1 month ago

But I need x on directory, because that’s required to enter/read the directory. If I understand properly.

That’s why bacon listed find ${path} -type d exec chmod 750 {}; as first command. See also my reply.

[–] mina86@lemmy.wtf 2 points 1 month ago (3 children)

X applies to directories and executable files. Presumably, OP wants to clear the executable bits from any files and +X won’t do that.

[–] mina86@lemmy.wtf 7 points 1 month ago* (last edited 1 month ago) (8 children)

As root:

cd /filesystem/in/question
chown myuser:media -R /filesystem/in/question
find -exec chacl -B -- {} +
find -exec chmod 644 -- {} +
find -type d -exec chmod 755 -- {} +
[–] mina86@lemmy.wtf 13 points 1 month ago (1 children)

This is not a legitimate issue. It’s like complaining that wget reads proxy settings from /etc/wgetrc. It’s absolutely proper for programs to read system- or user-level configuration if the configuration is not specified via environment variables or command line options.

The typical setting hierarchy goes something like:

  • command line options,
  • environment variables,
  • user-level configuration files and finally
  • system-level configuration files.
[–] mina86@lemmy.wtf 2 points 2 months ago (1 children)

uBlock Origin and mouse copy and paste works perfectly well in Firefox.

[–] mina86@lemmy.wtf 7 points 2 months ago* (last edited 2 months ago) (3 children)

He made an edgy/abhorrent¹ joke years ago for which he apologised and Lemmy is even worse than Reddit so people still lach onto that.

¹ Whether it was just edgy or much worse than that I leave to the reader to decide. The joke was that he paid some guys in Africa to make a sign saying ‘Hitler did nothing wrong’ or something to that effect. This one of the things that likely contributed to adpocalypse on YouTube.

[–] mina86@lemmy.wtf -4 points 2 months ago (3 children)

Switch to a non-buggy browser.

[–] mina86@lemmy.wtf 2 points 2 months ago

Yes. I’m just keeping the symbols file in home directory so that I don’t have to edit the system files. To change backspace you’d have something like the following I believe:

    key <BKSP> {    [ BackSpace, Delete ] };
[–] mina86@lemmy.wtf 3 points 2 months ago (2 children)

My approach is to define custom keymap and enable it in xinitrc. Might be worth a try though I’ve no idea how that interacts with Wayland.

view more: ‹ prev next ›