Hacker Newsnew | past | comments | ask | show | jobs | submit | BrotherBisquick's commentslogin

Does doas have equivalents to the -i and -E flags in sudo? I use both of those frequently.


I switched from sudo to doas when setting up my new laptop ~ two years ago, took some time to get accustomed, but it is really much simpler..

For `sudo -i` you can just use `doas -s`. https://manpages.debian.org/bookworm/opendoas/doas.1.en.html

Keeping the environment via `sudo -E` is slightly trickier. If you need that for a fixed set of commands you can enable keeping the environment for those explicitly via the configuration file using the `keepenv` option. You can also set specific variables for specific commands,

https://manpages.debian.org/bookworm/opendoas/doas.conf.5.en...

But you would need to use a workaround if you want to keep the environment for a command without always adding that to the configuration, one way would to add a wrapper executable and add a permanent rule for that, e.g. something like the following should work:

  # reuse the `env` tool, but use an explicit symlink to have clear boundaries
  ln -s /bin/env /bin/keep-env
  
  # add rule for keep-env to doas cfg, replace USER with your user name, or prefix with : for a group
  echo 'permit persist keepenv USER cmd /bin/keep-env' | tee -a /etc/doas.conf
  
  # run command
  doas keep-env THE-ACTUAL-COMMAND
Disclaimer, not deeply tested and there might be even better options, but FWIW, this workaround is at least quite simple in principle.


How exactly does Kagi bill you for going over your monthly limit?

Do they send you a bill at a later date, or are you meant to refill your balance before you can make more searches, or what?

I assume they don't keep your credit card on file and charge you for each individual extra search.


It will ask you if you want to upgrade your plan or to enable pay per use with customizable limits in place.

More info: https://help.kagi.com/kagi/settings/billing.html#billing-set...


Who is "Sweeney" and how is he hostile towards Linux?


Tim Sweeney.

https://en.m.wikipedia.org/wiki/Tim_Sweeney_(game_developer)

Founder and CEO of Epic games.

He has a history of whinging about Windows, and when suggestions of supporting Linux come up, since it's what Valve is doing to ensure they aren't trapped in a mono-system, Tim is argumentative in a bad faith way.

Previous discussions about Epics anti-Linux behaviour, but unfortunately the Tweets have since been deleted.

https://news.ycombinator.com/item?id=19844241


An exhaustive list of leftists who care about democracy:


There are legitimate reasons to dislike the man but it's so obvious that the mob is just grumpy that Musk allowed criticisms of the Democratic party line to exist on Twitter.


> It’s not a popular opinion on this site

Oh come on.


Why does a social media site need to enforce "safety?" What is "safety" anyway?

It's not "opinions I disagree with," I hope. Because labeling that "unsafe" is a new level of Orwellian.


Would you be amenable to a program like Keepass?

Your password store is a single file, it can be encrypted, backed up (or not), distributed/synchronized between your devices (or not). It belongs to you, not to a third party.

The inevitable rejoinder is, "what happens if someone gets that file?" Well, what happens if someone gets your piece of paper?


> Well, what happens if someone gets your piece of paper?

Considering it's in my house there is short list of suspects, unlike exposing it to the entire world VIA TCP/IP, but yeah i get your point.

> Will you ever use a password manager.

Not for personal matters and that is a personal choice. My way ain't broke and i ain't fixin it. A password manager smells like something that could break, get compromised, or go out of business at any time without any warning and i don't like the smell of it.

I also code with Notepad++ with none of that autofill suggestion crap and doesn't take 8 smoking cores to fucking type a sentence if that tells you anything about my personality. Get off my lawn!!!


There's malware on the iOS app store?

What's the point of all that garden-walling and 30% tax and hoops you have to jump through if there's still malware?


It happens sometimes [1] [2]. Reduced malware and quick removal is all you can hope for.

I have an app in the Play Store and received some unsolicited requests to install (and get paid for!) adding some extra jar file to my app and hosting someone else's apps in my account. Attackers put in a lot of effort to sneak in.

[1] https://www.wired.com/story/apple-app-store-malware-click-fr...

[2] https://www.reddit.com/r/KeePass/comments/13o0s0q/ioskeepass...


> What's the point (…) if there's still malware?

Having fewer malware would still be a worthy goal. That said, I’m not defending the App Store. It’s still riddled with junk, ads, casinos for children in the form of free-to-play games, and adult casinos disguised as children’s games.

https://soyacincau.com/2021/04/17/ios-app-games-for-children...


> Because while the naming is pretty bad, people do actually know it's the latest generation console.

Do they? I don't. At this moment, I couldn't tell you the name of Microsoft's newest console, because their naming convention is so convoluted. Meanwhile, I can tell from a glance that the PS5 is newer than the PS4.

Granted, I'm not a console gamer, but neither are (most) parents buying consoles for their children.

"Ehh, people will know what we're talking about" seems like a haphazard marketing strategy.


I work in the industry and mostly play on consoles (admittedly Sony’s) and even I’m not sure at first glance. I have to stop and think a bit every time.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: