How 'chmod 777' looks at me when I get a permission error while trying to wrap things up at 2 a.m

2 days ago by Mustachius_Grumpius to c/programmerhumor

LifeInMultipleChoice 80 points 2 days ago

Why yes I would like it to be recursive because I'm truly done with this shit lol

path: 0 26270115, hotness: undefined, score: 80, children: 24
victorz 14 points 2 days ago

What on earth are y'all trying to do lol

path: 0 26270115 26270403, hotness: undefined, score: 14, children: 23
CMDR_Horn 58 points 2 days ago

Sleep

path: 0 26270115 26270403 26270552, hotness: undefined, score: 58, children: 1
Nalivai 2 points 3 hours ago

systemctl sleep what's the problem?

path: 0 26270115 26270403 26270552 26292346, hotness: undefined, score: 2, children: 0
kayzeekayzee 34 points 2 days ago

whatever it takes

path: 0 26270115 26270403 26270875, hotness: undefined, score: 34, children: 20
victorz 1 point a day ago

What end goal though

path: 0 26270115 26270403 26270875 26275815, hotness: undefined, score: 1, children: 19
Zarobi 7 points a day ago

Jellyfin is going to have access to this directory one way or another

path: 0 26270115 26270403 26270875 26275815 26276677, hotness: undefined, score: 7, children: 18
bitchkat 37 points 2 days ago

We had a moron that ran "sudo chmod -R 777 /" once. Sudo privileges were greatly reigned in.

path: 0 26270776, hotness: undefined, score: 37, children: 15
mycodesucks 18 points a day ago

That's completely insecure.

Fix it with complete security using "sudo chmod -R 0 /"

path: 0 26270776 26272804, hotness: undefined, score: 18, children: 0
horse 5 points a day ago

What happens if you do that? I know what the command does and that running it is a terrible idea, but what actually happens to a system if you do this?

path: 0 26270776 26277650, hotness: undefined, score: 5, children: 4
bitchkat 6 points 19 hours ago

It's worse than even what others have said. There are bits set in inodes other than the rwx for owner, group and other. Most notably when it hits /dev it will completely fuck up your devices.

path: 0 26270776 26277650 26282108, hotness: undefined, score: 6, children: 0
purplemonkeymad 5 points a day ago

Well one of the things is you can no longer sudo, since it checks the permissions on the sudors file. Good news is you can now edit the shadow file and set a new root password.

path: 0 26270776 26277650 26277741, hotness: undefined, score: 5, children: 2
bitchkat 4 points 19 hours ago

I'd be surprised if you can do much if anything after clears all those bits in /dev

path: 0 26270776 26277650 26277741 26282128, hotness: undefined, score: 4, children: 0
mycodesucks 3 points a day ago

SSH also checks file permissions, so SSH will stop working as well.

path: 0 26270776 26277650 26277741 26278463, hotness: undefined, score: 3, children: 0
rounding_error 4 points 2 days ago

Your passwords are MINE

path: 0 26270776 26271544, hotness: undefined, score: 4, children: 1
bitchkat 3 points 2 days ago

And fun was had once it got to /dev

path: 0 26270776 26271544 26271711, hotness: undefined, score: 3, children: 0
hornedfiend 2 points 2 days ago

True story. About the moron. I guess it could genuinely happen to a moron.

path: 0 26270776 26271131, hotness: undefined, score: 2, children: 0
ByteJunk 2 points a day ago

I assume he wanted " ./ " but missed the dot?

path: 0 26270776 26275820, hotness: undefined, score: 2, children: 4
bitchkat 5 points a day ago

I did that with an "rm - rf" once. It was back in the olden days where we mounted all systems root via nfs. Oh abd nfs use to transfer root privileges.

Took out 1.5 machines before I thought, this is taking a while.

path: 0 26270776 26275820 26277189, hotness: undefined, score: 5, children: 2
wonderingwanderer 1 point 8 hours ago

Do you people not get super paranoid and check your syntax half a dozen times before running commands like these?

path: 0 26270776 26275820 26277189 26289662, hotness: undefined, score: 1, children: 1
bitchkat 1 point 8 hours ago

You'd be surprised how many don't. Or it may be that they meant to run what they ran. The old, too busy asking if they could but not if they should.

path: 0 26270776 26275820 26277189 26289662 26289739, hotness: undefined, score: 1, children: 0
Trincapinones 2 points a day ago

Why would you want the slash in that case? Wouldn't the dot be enough?

path: 0 26270776 26275820 26276530, hotness: undefined, score: 2, children: 0
Zozano 1 point an hour ago

This is why god invented NixOS

path: 0 26270776 26293410, hotness: undefined, score: 1, children: 0
shininghero 15 points 2 days ago

And then you get hit with another permissions error because the file was labeled as unconfined_u:object_r:httpd_sys_content_t:s0, and it really needed to be unconfined_u:object_r:httpd_sys_rw_content_t:s0.

path: 0 26271037, hotness: undefined, score: 15, children: 3
Kazumara 6 points 20 hours ago

We need a third panel with

How "edit /etc/selinux/config and set SELINUX=permissive" looks at me at 2:30 a.m. once chmod is done with me.

path: 0 26271037 26281627, hotness: undefined, score: 6, children: 1
Damage 5 points 17 hours ago

SELINUX=fuckoff

path: 0 26271037 26281627 26284115, hotness: undefined, score: 5, children: 0
StabbingSky 2 points a day ago

Or Fapolicy on RHEL. That shit was the bane of my existence at my last job.

path: 0 26271037 26273829, hotness: undefined, score: 2, children: 0
mlg 13 points 18 hours ago

SELinux after you chmod:

path: 0 26283037, hotness: undefined, score: 13, children: 0
mavu 10 points 2 days ago

One of those moments... you know you're autistic, but think you know how/what people think when you look at them, .. then some meme comes along and you just got reminded that, yeah, it's sometimes a problem.

Assuming it's just me, and most people have a specific read what the woman in the picture is (probably?) thinking..

path: 0 26271746, hotness: undefined, score: 10, children: 6
jqubed 17 points a day ago

It took me a bit because I was trying to figure out what the scene might be or the context. Then I realized it’s Ana de Armas and I think the meme is just saying that chmod 777 looks really attractive when it’s 2 AM and you just want to be done.

path: 0 26271746 26274879, hotness: undefined, score: 17, children: 2
poweruser 4 points a day ago

THANK YOU

path: 0 26271746 26274879 26275690, hotness: undefined, score: 4, children: 0
wonderingwanderer 1 point 8 hours ago

Do you smile to tempt a lover, Mona Lisa?
Or is it just a way to hide a broken heart?

Many dreams have been brought to your doorstep.
They just lie there, and they die there.

Are you warm, are you real, Mona Lisa?
Or just a cold and lonely, lovely work of art?

path: 0 26271746 26274879 26289709, hotness: undefined, score: 1, children: 0
nightofmichelinstars 10 points a day ago

It's just that she's attractive

path: 0 26271746 26273812, hotness: undefined, score: 10, children: 0
TrickDacy 3 points a day ago

Nah, I actually think a lot of people post things like this where there is absolutely no way for anyone to have a clue what the person in the photo is thinking. Imo this is one like that. No clue what this woman is thinking and I don't think there is any indication whatsoever.

path: 0 26271746 26276155, hotness: undefined, score: 3, children: 0
baines 2 points a day ago

i wouldnt worry too much she’s an actor in a photo shoot

path: 0 26271746 26272613, hotness: undefined, score: 2, children: 0
beejboytyson 8 points a day ago

Oh, your definitely gonna stay and get fucked.

path: 0 26277274, hotness: undefined, score: 8, children: 4
M137 8 points 18 hours ago

You're*

How is it so fucking hard to get right?

path: 0 26277274 26283337, hotness: undefined, score: 8, children: 3
isles 1 point 17 hours ago

How is it so fucking hard to let inconsequential things go? The world's grammar isn't your responsibility.

path: 0 26277274 26283337 26283922, hotness: undefined, score: 1, children: 2
v4ld1z 4 points 16 hours ago

*world's' *grandma

😌

path: 0 26277274 26283337 26283922 26284705, hotness: undefined, score: 4, children: 0
dream_weasel 2 points 10 hours ago

It is all of our responsibility, bro. We make the third graders learn it, I have faith in you.

path: 0 26277274 26283337 26283922 26288832, hotness: undefined, score: 2, children: 0
captain_aggravated 2 points 2 days ago

...present but unappealing through it's own manifest disinterest and vacancy?

path: 0 26271872, hotness: undefined, score: 2, children: 1
Zarobi 0 points a day ago

She's like fully zoned out lol

path: 0 26271872 26276690, hotness: undefined, score: 0, children: 0
toynbee 1 point 9 hours ago

It's just upset that you're going with octal instead of modal.

path: 0 26289103, hotness: undefined, score: 1, children: 0
programmerhumor
programmerhumor

@lemmy.world

login for more options
1893
80
720

go to feed...