all 45 comments

sorted by: hot top controversial new old
[–] 53 points 3 months ago (5 children)

What it is actually saying is if you don't know how to gain access to edit this file you should not be editing this file.

  • source
  • hideshow 5 child comments
  • [–] 33 points 3 months ago (2 children)

    When I was a kid I deleted the system32.dll file on my grandfather’s computer because it showed up in some error message. It did in fact not solve the error 😅

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 3 months ago (1 child)

    I remember trying to mod a game from the xbox app, and couldn't edit even with trustedinstaller/takeown shenanigans. Turns out the files are encrypted so you can't even edit it from Linux. And if you disable encryption the game doesn't run :D

  • source
  • parent
  • hideshow 1 child comment
  • [–] 24 points 3 months ago (3 children)
  • [–] 6 points 3 months ago (2 children)

    Today I tried to wrestle my way with trusted installer... Went so far as to use psexec to make myself nt-authority\system and was still denied permission. ಥ_ಥ

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 3 months ago (1 child)

    I've done that, did nt authority not work for you? It did for me on server 2008.

    You might need to kill any processes with handles to it using process hacker.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 19 points 3 months ago (13 children)

    Linux users: "I don't have such weaknesses."

  • source
  • hideshow 13 child comments
  • [–] 11 points 3 months ago (3 children)

    I wish. I spent 4 hours trying to get both I and docker to have permission to see my other drive. I finally gave up entirely and made a puid:guid that had access to everything short of root and put myself on that. It's still dubious as to whether that will work...

  • source
  • parent
  • hideshow 3 child comments
  • [–] 6 points 3 months ago (2 children)

    "You fool, I could sudo rm the whole drive right now. It's only out of my exuberant benevolence that I don't."

    Later: me pressing the up key 38 times rather than type sudo apt update && upgrade

  • source
  • parent
  • hideshow 2 child comments
  • [–] 4 points 3 months ago (3 children)

    Immutable Distros joined the chat

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 3 months ago (2 children)

    Well, you can technically remove the immutable flag from files.. but I wouldn't

  • source
  • parent
  • hideshow 2 child comments
  • [–] 10 points 3 months ago (2 children)

    This is what made me switch to Linux

  • source
  • hideshow 2 child comments
  • [–] 2 points 3 months ago*

    Actually Linux is far more well known than for example Windows for access denied stuff. Though bypassing it is a matter of putting sudo at the beginning of the command and putting your password in. In Windows you have to traverse through a bunch of dialogues... which isn't that hard but not as easy as the *nix approach.

  • source
  • parent
  • [–] 9 points 3 months ago

    *when you run Windows:

  • source
  • [–] 8 points 3 months ago (3 children)
  • [–] 7 points 3 months ago

    That's what chown is for

  • source
  • [–] 5 points 3 months ago (8 children)

    Mastering file permissions is a big part of becoming Linux capable. And it essential to the "everything is a file" ethos. Wanna lock down an important file or program? chmod is a powerful ally.

    Microslop has tried to adopt a half-ass elevated permissions scheme, but with lame-ass UAC and users who've no idea why Explorer doesn't have administrator rights on their administrator account.

  • source
  • hideshow 8 child comments
  • [–] 2 points 3 months ago* (7 children)

    Windows' way is more convenient for me, than chmod:
    windows allows you to regulate file access more granularly, more flexible - per any particular user , particular group.
    Chmod can't do that.

  • source
  • parent
  • hideshow 7 child comments
  • [–] 3 points 3 months ago (4 children)

    Either I don't understand your comment, or you don't understand chmod. What you describe ins't beyond chmod; it's the basic functionality of chmod.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 4 points 3 months ago (2 children)

    OP meant ACLs.
    Which arent exactly straight forward in CLI in either Windows nor Linux.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 3 months ago* (last edited 3 months ago)

    setfacl can do.
    It's just that some *NIX users want the stupid POSIX model and authenticating with user-ids (+ private keys) instead of proper usernames and password (and private keys).
    Go figure /shrug

  • source
  • parent
  • [–] 1 point 3 months ago

    chmod can do 95% of everything I've ever needed, just with the "user" and "other" category. Private files, public-readable files, public read-write files, programs I compile but anyone can run... all that is just in the "user" and "other" category of chmod.

    It gets 99% if you add the sticky bit (used on /tmp) and the "group" category. Serial ports are owned by root:dialout, and mode 660. To get serial port access, just add the user to the dialout group. For group assignments in college, each partner pairing had their own group they could use. Group work files were mode 660 so groups could edit each others' work, but other groups couldn't peek.

    For the last 1%, use setfacl. It does everything that explorer.exe's security tab can do.

  • source
  • parent
  • [–] 1 point 3 months ago

    Marc Uwe Kling would agree

  • source
  • [–] -1 points 3 months ago (1 child)

    So? How the hell is it supposed to know that when you're trying to do things wrong? Would you rather it let any one do anything, so long as they control the mouse?

  • source
  • hideshow 1 child comment