betterdeadthanreddit @lemmy.world Real pros shuffle across the carpet to build a static charge and do their system administration by electrical fault injection.
91 0 ReplyNegativeNull @lemmy.world REAL pros use butterflies!
49 0 Replykamen @lemmy.world Dammit, emacs.
17 0 Reply
lemmyng @lemmy.ca Still not as bad as
chmod -R 777
.56 0 ReplyDhs92 @programming.dev Once had a friend run
sudo chmod -R 777 /
on a (public) Minecraft server we were running back in highschool. It made me die a bit on the inside.29 0 ReplyRikudou_Sage @lemmings.world Doesn't it break a lot of things? Half the stuff refuses to work when some specific files have too permissive chmod.
24 0 ReplyAngryPancake @sh.itjust.works Goodbye ssh access
8 0 Reply
masterofn001 @lemmy.ca As a one time noob I may have done this once or more.
To get one thing working I borked everything.
Understanding permissions is pretty basic. But understanding permission requirements for system and user apps and their config and dirs can be a bit overwhelming at first.
Thinking a little change to make your life simpler will break something else doesn't always register immediately.
Shit, even recently, wondering why my SSH keys were being refused and realising that somehow i set my private keys world readable.
Thank god SSH checks file and dir permission.
25 0 ReplyInverseParallax @lemmy.world Jesus, every time I have to run glx or vaapi under a container I end up having to do this then cringe.
6 0 Replycorsicanguppy @lemmy.ca from the chmod or from the containers?
1 0 ReplyPossibly linux @lemmy.zip You don't need to
1 0 Reply
HubertManne @moist.catsweat.com just worked a job where I did not have privlages to sudo commands. except su. had to sudo su so I could run a script.
37 0 Replyflashgnash @lemm.ee Could you not just use root to give your user sudo? Seems like a pretty dumb restriction
8 0 ReplyHubertManne @moist.catsweat.com Possibly but my role was such Im really only supposed to be working on my project and not monkey with the server which is used by other projects. I don't think it was a restriction I think it was just laziness by whoever set it up.
2 0 Reply
BigDanishGuy @sh.itjust.works Come on! I've stopped logging on as root, can't we just leave it at that?
37 0 Reply0x4E4F @sh.itjust.works OP Stopped being fun after you destroyed the system a few times... am I right 😏.
2 0 Reply
therealjcdenton @lemmy.zip sudo steam
36 0 Replydatelmd5sum @lemmy.world then at first day of work:
just use sudo su, we don't have all day here.
35 0 Reply0x4E4F @sh.itjust.works OP And you give them the look and they shut up.
2 0 ReplyLaurel Raven @lemmy.zip "You're absolutely right, we wouldn't want to take too long to break the network or open god rights vulnerabilities"
2 0 Reply
veni_vedi_veni @lemmy.world I'm in jail because I was not in the sudoer file
34 0 Replynebulaone @lemmy.world This incident was, in fact, reported.
9 0 Reply0x4E4F @sh.itjust.works OP Well, you were warned 🤷.
5 0 Reply
bruhduh @lemmy.world Sometimes your package manager asks you for root password every minute while doing few hours long update and cancelling process if you don't enter anything for few minutes, "yay" aur manager looking at you, and you got to do other things than sit and look in the monitor all day long, things like cleaning house or touching grass for example
34 0 Replyikidd @lemmy.world sudo visudo
At the end:
Defaults:USER timestamp_timeout=30
USER is obviously changed to your username.
9 0 Replybruhduh @lemmy.world Thank you
4 0 Reply
SavvyBeardedFish @reddthat.com If I remember correctly the default sudo timeout is set to 5 minutes on Yay, you should be able to increase it to something more reasonable
7 0 Replybruhduh @lemmy.world Thank you
2 0 Replybruhduh @lemmy.world How
1 0 Reply
0x4E4F @sh.itjust.works OP See, this is why I love xbps. Does everything in one blow, no bullshit.
2 0 ReplyJustAnotherKay @lemmy.world Man if only there was an option like --sudoloop to ensure that doesn't happen
2 0 Reply
Possibly linux @lemmy.zip Reminds me of all of those vendors that require Windows Admin for no reason.
26 0 ReplyLandless2029 @lemmy.world Looking at you quickbooks network shares...
7 0 ReplyPossibly linux @lemmy.zip Its not like QuickBooks are sensitive data or anything
2 0 ReplyZiglin @lemmy.world Then encrypt it…
0 1 Reply
unalivejoy @lemm.ee sudo -s
for auditability18 0 Replymlg @lemmy.world Our crappy vendor software will only function if IPv6 is disabled network wide. Even if one machine has it enabled, the whole thing breaks
Lol our former crappy vendor solution required to be run directly from AD Administrator. Pure luck the entire business didn't collapse before we replaced it.
A thread I read a long time ago on r/sysadmin
14 1 ReplyPossibly linux @lemmy.zip That's at least once a week
5 0 Reply
corsicanguppy @lemmy.ca Wasn't it 2017 where they had the race condition in
sudo su
as the command elevates up to root and drops back down?Every other year,
sudo su
was not unsafe but merely ghetto. 'sudo su' is the dutch-rudder of 'sudo'.13 0 Replybarsquid @lemmy.world Reminds me of software saying to put your docker socket into the docker container you are starting for convenience.
13 0 Reply0x4E4F @sh.itjust.works OP Oh yeah, I'm docking the shit ot of that container!
3 0 Reply
SuperIce @lemmy.world run0
is the newsudo su
12 1 Replylemmyng @lemmy.ca You're going to start a fight with the
doas
people.10 0 Reply0x4E4F @sh.itjust.works OP And the people that don't use systemd.
6 0 Reply
PerogiBoi @lemmy.ca chmod 777 /directory go brrrrrrrrrrrr
9 0 Replymvirts @lemmy.world You mean sudo chmod -R 777 /that/path/I'm/trying/to/share ?
2 0 ReplyPerogiBoi @lemmy.ca Ya probably. I’m dumb enough to type that in and just see what happens 😎
2 0 Reply
YTG123 @sopuli.xyz Why does
sudo su
exist?sudo -i
does exactly what you want.9 0 Replymvirts @lemmy.world It's much easier to type sudo su 😅
1 0 Reply
helenslunch @feddit.nl Permanently Deleted
9 0 ReplyLunchMoneyThief @links.hackliberty.org helenslunch doesn't know about
sudo !!
46 0 ReplyManzas @lemdro.id Not even arrow keys
8 0 Reply
tabularasa @lemmy.ca Guilty as charged, officer.
9 0 Reply0x4E4F @sh.itjust.works OP I bet you distro hop a lot.
2 0 Reply
TuEstUnePommeDeTerre @midwest.social sudo vi
8 0 ReplyMajorHavoc @programming.dev Yeah. After that everything can be done with
!sh
.(Edit: This is a joke. There's a lot of reasons not to do this.)
7 0 ReplyTuEstUnePommeDeTerre @midwest.social sudoedit is what you're looking for. Don't elevate the text editor.
12 0 Reply
masterofn001 @lemmy.ca sudo -s vi &
3 0 Reply
THCDenton @lemmy.world sudo !!
:p
8 0 Replyfmstrat @lemmy.nowsci.com Tell me you use Ubuntu without telling me you use Ubuntu.
Wait till you try this on Debian or non Ubuntu variants.
10 2 ReplyMrPoopbutt @lemmy.world I ask out of ignorance - why would it be different?
1 0 ReplyLaurel Raven @lemmy.zip Debian doesn't have sudo by default, you have to install it manually
Not sure what they mean by "non Ubuntu variants" though since most other distros add it even when they aren't Ubuntu based
3 0 Reply0x4E4F @sh.itjust.works OP Ubuntu uses Snaps for a lot of the software, thus, when you write
sudo apt install firefox
that is actually an alias for "install firefox from snap". Snaps get installed locally, not on the system (globally, for all users), but as a user, so you really can't do much damage when you actually didn't do anything to the system in the first place.Do
sudo
shit on any other distro that doesn't have a company behind it, see what happens.1 3 Reply
dohpaz42 @lemmy.world sudo -u root bash
ftw8 1 Replylemmyng @lemmy.ca Missing the
-i
.3 0 Replydohpaz42 @lemmy.world The
-i
is not required.2 0 Reply
Possibly linux @lemmy.zip Or sudo bash
2 0 Reply
🧟♂️ Cadaver @lemmy.world sudo -i ?
7 0 ReplyRicky Rigatoni @lemm.ee sudo su -c "man man"
6 0 ReplyKairos @lemmy.today Can't programs steal sudo access if the timeout isn't 0?
4 0 Reply0x4E4F @sh.itjust.works OP If on a brand new rig, it's allowed.
1 0 ReplyKairos @lemmy.today What?
1 0 Reply
dunz @feddit.nu Use Sudo -i instead. Sudo su is like cat file | grep pattern vs grep pattern file. You're wasting resources.
3 0 Replymvirts @lemmy.world I'm partial to sudo bash myself 👌
3 0 Replycplusplus @programming.dev sudo rm -rf /* what could go wrong? (don't try it)
2 0 Replykekmacska @lemmy.zip sudo chmod +x * can solve it sometimes
2 0 ReplyUnyieldingly @lemmy.world sudo su - ?
1 0 Reply