1307
Who's in charge? (lemmy.world)
submitted 2 days ago by [email protected] to c/[email protected]
top 50 comments
sorted by: hot top new old
[-] [email protected] 3 points 16 hours ago

nobody was expecting linux users sucking eachothers cocks in the comment section

[-] [email protected] 0 points 15 hours ago

I was, and so was c/unixsocks

[-] [email protected] 4 points 1 day ago

idk tf chown does, use sudo instead. im not going to read man chown either.

sudo su
# do shenanigans in the cli/tui. gui is for noobs
# nvim, ls, touch, stroke, tease, rm
[-] [email protected] 2 points 1 day ago

So I'm not the best at this, but this is my best guess (I have no experience in sysadmin, as I've only ever been the sole user of my PC and prefer not to network anything).

Owner #1, smackyboi, has ownership of a file called smutgame.AppImage. This means they can choose who accesses smutgame, if it can execute, if it can be read or written by certain groups, etc.

Owner #2, luvurealgood, on the system via their own account (or networked computer in the case of server storage) can't change these settings unless smackyboi says they could, because they're the owner and can add luvurealgood to the admin group for the file if they want. Smackyboi suddenly writes, sudo chown luvurealgood smutgame.AppImage.

Now luvurealgood owns that file and can make every change they want to it, including removing smackyboi from accessing it, as they're no longer the owner. They can lock down the file and forbid it from being executed, etc etc. I believe anyone who is in the admin group of that file can do anything to it as well, except change it's ownership if its already owned.

This is just from pieces of info and my tiny experience in Windows sysadmin shenanigans. Someone swoop in and correct me if I got anything wrong.

[-] [email protected] 11 points 1 day ago
sudo chown <username> <file>
chmod 700 <file>

Don’t see a problem ;) /s

[-] [email protected] 3 points 18 hours ago
 sudo chown -R <user> /

Never have a permission issue again! Lmao

[-] [email protected] 119 points 2 days ago
load more comments (3 replies)
[-] [email protected] 33 points 2 days ago

Me trying to uninstall edge

[-] [email protected] 19 points 2 days ago

Edge is the best browser for downloading much better browsers lol

[-] [email protected] 1 points 1 day ago

Best Chromium browser*

[-] [email protected] 16 points 2 days ago

Edge is literally the first program I use on a fresh install.

[-] [email protected] 15 points 1 day ago* (last edited 1 day ago)

You can install firefox via cli like powershell.

winget install Mozilla.Firefox
[-] [email protected] 5 points 1 day ago

First command I run on any new Windows install

load more comments (7 replies)
[-] [email protected] 77 points 2 days ago
[-] [email protected] 45 points 2 days ago* (last edited 2 days ago)

Not necessarily. Linux can have files that are r---r---r--- too

[-] [email protected] 33 points 2 days ago

sudo chown -R 1000:1000 /* && sudo chmod -R 777 /*

[-] [email protected] 41 points 2 days ago

alias iownyou='sudo chown -R 1000:1000 /* && sudo chmod -R 777 /*'

[-] [email protected] 32 points 2 days ago

Now I've learned enough to know that I can easily learn what all that apparent gibberish does with the "man" command, but you have no idea how unbelievably unapproachable this makes Linux look to the uninitiated.

load more comments (5 replies)
load more comments (2 replies)
load more comments (5 replies)
load more comments (4 replies)
[-] [email protected] 12 points 1 day ago* (last edited 1 day ago)

Is there a technical reason that Linux apps can't/don't just pop up an authenticator thing asking for more privileges like Windows apps can do? Why does nano just say that the file is unwriteable instead of letting me increase the privileges?

[-] [email protected] 2 points 1 day ago

Linux apps follow simplicity principles. If you don't have permission to delete a file, why assume you may know the password of the user who has permission?

You can preface sudo to any command to execute it with root privileges, which would be similar to running as admin in windows.

Graphical apps do tend to ask for authentication if it makes sense. No userland apps should need more permissions than the current user's in order to run.

[-] [email protected] 2 points 17 hours ago

Small pedantic correction, but you can’t preface every command with sudo; only executables can be invoked with sudo as it can’t elevate your current shell. Naturally, the way to execute non-executables such as builtin routines as root is to just spawn into a root shell with sudo su.

[-] [email protected] 1 points 1 day ago

The GUI apps do (depends on your DE). Terminal apps like nano are designed to work without fancy desktop stuff, like Polkit. Any sort of graphical text editor should prompt you for your password.

systemctl still asks for a password, though. Because it's systemd, and it's part of everything.

[-] [email protected] 11 points 1 day ago

Some do. I'm sure it is possible with terminal programs. In KDE, you do get authenticator pop-ups.

[-] [email protected] 1 points 1 day ago* (last edited 1 day ago)

Hmm I just tried editing some systemd service with Kate and it did actually give me an authenticator popup when I tried to save it

Although then the prompt expired and now it does nothing when I try to save it. Restarted Kate and now it works again...

I haven't tried that before

When I try to go into the sudoers.d folder tho it just says I can't, and the same thing happens when I try to open the sudoers file in Kate. If I try to copy and paste a systemd service in dolphin tho it just says I don't have permission and doesn't give a prompt.

lol if I open it with nano through sudo it says 'sudoers is meant to be read only'

load more comments (3 replies)
load more comments (1 replies)
[-] [email protected] 42 points 2 days ago

If you're on windows this means you don't own the file. Go to properties security and take ownership.

The default windows configuration is aimed at old people who will call tech support when they fuck up their PC.

You can take ownership of pretty much the entire filesystem.

Windows is actually hugely customizable people just don't.

[-] [email protected] 22 points 2 days ago

Glad to see another voice of sanity regarding Windows.

If you haven't learned by now, on Lemmy the only valid option for dealing with Windows configuration and basic Windows admin tasks is to yeet Windows and go to Linux.

[-] [email protected] 3 points 1 day ago

Sometimes one wants to access a file without making changes though. Escalating privileges is the answer in this scenario and windows doesn't make that as easy,as it doesn't really want to you act as SYSTEM

[-] [email protected] 1 points 1 day ago

100% true, and a great counterpoint.

Copium/denialThat's well beyond even power user (imo) and into the forensic analysis realm though, where you should probably be using dedicated tools. I'm pretty sure there are still ways around this, ways to back up and restore the ACLs, but I haven't ran into a need to not touch the modified timestamp in the decade or so I've been doing tech work professionally nor in the decade before as simply a young enthusiast. There's still ways around that timestamp too, and arguments to be made that adjusting the ACL is touching metadata rather than the file itself.

I do what I can to stay out of ACLs at my workplace.

Windows ACLs are far more complicated than they have any right to be, and file perms are generally far simpler on Linux.

load more comments (11 replies)
load more comments (3 replies)
[-] [email protected] 36 points 2 days ago
[-] [email protected] 24 points 2 days ago

My work laptop had a pop-up from an application that basically said "we couldn't restart last time, so you e got 15 minutes until we reboot your computer" with no way to cancel or prevent the reboot.

Me: the fuck you are

* proceeds to kill the service and process from admin command line*

Get fucked fortinet, I'll reboot when I'm gods damned ready

[-] [email protected] 21 points 2 days ago

had a friend that was having problems with his PC and windows kept bitching about he didn't have permissions. he ripped out the harddrive with it still powered on and threw it off his balcony into the lake screaming, "I fucking own you!"

epic moment in my life to witness such an event.

load more comments (6 replies)
[-] [email protected] 11 points 2 days ago* (last edited 2 days ago)

I own you!
take ownership & full access of all resources
threat actor exploits a vulnerable application that is (1) running as you to (2) access resources it doesn't need: they commandeer your system

how did that happen?

🤔

[-] [email protected] 23 points 2 days ago
[-] [email protected] 22 points 2 days ago

One time Windows told me I needed admin privileges to edit s file. I had admin privileges.

load more comments (4 replies)
load more comments
view more: next ›
this post was submitted on 27 Jun 2025
1307 points (99.2% liked)

memes

15844 readers
3126 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to [email protected]

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/AdsNo advertisements or spam. This is an instance rule and the only way to live.

A collection of some classic Lemmy memes for your enjoyment

Sister communities

founded 2 years ago
MODERATORS