47
submitted 8 months ago* (last edited 8 months ago) by 0_0j@lemmy.world to c/asklemmy@lemmy.ml

sudo's Hall of pain

you are viewing a single comment's thread
view the rest of the comments
[-] Dirk@lemmy.ml 10 points 8 months ago

Some time ago I wanted to clean up home directory files permissions to be not readable by group or others. Instead of just removing group/other permissions I hard-set all directories to 700 and all files to 600.

Took quite some time to repair not working scripts and "application containers".

[-] 0_0j@lemmy.world 4 points 8 months ago* (last edited 8 months ago)

Well I nuked myself with chmod -R on my home directory this morning... My day is now dedicated to reinstalling nixos on my laptop... Glad I didn't do this on a production server...

Will be extra cautious now with the -R commands

PS: I now see the need of timeshift despite of using nixos... I could have backed up my home dir... And restore the prev state

[-] Dirk@lemmy.ml 2 points 8 months ago

Imagine accidentally running it on / instead ...

But wasn't NixOS not specifically design to be protected against such issues?

[-] 8565@lemmy.techtriage.guru 2 points 8 months ago

I just did this to both Ubuntu and Arch in a matter of days.

load more comments (5 replies)
load more comments (6 replies)
load more comments (6 replies)
this post was submitted on 18 Mar 2024
47 points (94.3% liked)

Asklemmy

43905 readers
1158 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 5 years ago
MODERATORS