this post was submitted on 04 May 2025
292 points (98.0% liked)

linuxmemes

25164 readers
426 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS
     

    Explanation for newbies: setuid is a special permission bit that makes an executable run with the permissions of its owner rather than the user executing it. This is often used to let a user run a specific program as root without having sudo access.

    If this sounds like a security nightmare, that's because it is.

    In linux, setuid is slowly being phased out by Capabilities. An example of this is the ping command which used to need setuid in order to create raw sockets, but now just needs the cap_net_raw capability. More info: https://unix.stackexchange.com/questions/382771/why-does-ping-need-setuid-permission. Nevertheless, many linux distros still ship with setuid executables, for example passwd from the shadow-utils package.

    you are viewing a single comment's thread
    view the rest of the comments
    [–] [email protected] 35 points 4 weeks ago (1 children)

    I would describe need to proactively go out of your way to ensure a program is simple, minimal, and carefully constructed to avoid interactions potentially outside of a restricted security scope as a "security nightmare".

    Being possible to do right or being necessary in some cases at the moment doesn't erase the downsides.

    It's the opposite of secure by default. It throws the door wide open and leaves it to the developer and distro maintainer to make sure there's nothing dangerous in the room and that only the right doors are opened. Since these are usually not coordinated, it's entirely possible for a change or oversight by the developer to open a hole in multiple distros.
    In a less nightmarish system a program starting to do something it wasn't before that should be restricted is for the user to get denied, not for it to fail open.

    https://www.cve.org/CVERecord/SearchResults?query=Setuid

    It may be possible, but it's got the hallmarks of a nightmare too.

    [–] [email protected] 13 points 4 weeks ago* (last edited 4 weeks ago) (1 children)

    Hard agree. This is why rust is getting so much attention, and the c/c++ crowd are so mad. They're happy just blaming it on a "skill issue" while losing their shit over [the rust crowd] saying "how about we don't let you in the first place."

    [–] [email protected] -2 points 3 weeks ago (1 children)

    Or maybe I just think that Rust has crappy design, just like JavaScript. The suid question is of a different kind: capabilities is better because they are an expression of least-required-permission principle, and going this way can't be argued as a skill issue

    [–] [email protected] 0 points 3 weeks ago (1 children)

    It's OK, you don't have to use so many words to tell us you work with c.

    [–] [email protected] 1 points 3 weeks ago (1 children)

    wrong guess. I work mainly in PHP

    [–] [email protected] 1 points 3 weeks ago (1 children)

    And you're complaining about rust?

    [–] [email protected] 2 points 3 weeks ago (1 children)

    Complaining? No, I counter your evangelistic attitude that whoever does not like Rust is just self-important elitist. That kind of people does exist, but not liking Rust is not a sign. Cheers

    [–] [email protected] 1 points 3 weeks ago (1 children)

    Sure, but that was a strong response for a comment on the situation. Sounds like you care. I do not. 😊

    [–] [email protected] 1 points 3 weeks ago (1 children)

    Lol. Changing shoes in the air? Your root comment literally starts with word "hard"

    [–] [email protected] 1 points 3 weeks ago (1 children)

    Hard agree to setuid being a problem. And that it is a problem because any of these tools written in c can be a security hole, because c is hard to get right. And I find it funny that c devs are butthurt over how rust won't let them write obviously bad code.

    But it's OK, words are difficult. 😊

    [–] [email protected] 2 points 3 weeks ago (1 children)

    And now you do not care so much that this comment tree is already hilariously long, and also has two of your emojis used to hide your true emotions. As much as I would love to discuss how c devs are "butthurt" and Rust is so damn good (sarcasm, of course), I just won't do it with someone so full of themselves and insecure. Have a good day

    [–] [email protected] 1 points 3 weeks ago

    You continue responding. You are as complicit in this thread as I am. 😊