sudo chown <username> <file>
chmod 700 <file>
Don’t see a problem ;) /s
sudo chown -R <user> /
Never have a permission issue again! Lmao
nobody was expecting linux users sucking eachothers cocks in the comment section
I was, and so was c/unixsocks
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
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.
POOF
Wish 1: Delete your self (the genie deletes your sense of self)
Would the genie get stuck in an endless loop, trying to find the owner of the three wishes for wish 2?
Fortunately the wisher is indistinguishable from a behavioral perspective of a P-Zombie, so they can still make wishes
Windows moment
Not necessarily. Linux can have files that are r—r—r— too
sudo chown -R 1000:1000 /* && sudo chmod -R 777 /*
I use:
alias thisfolderismine='sudo chown -R $USER' alias thisfileismine='sudo chown $USER'
Great way to get your computer pwnt.
/*
What’s
*
doing here? Operate only on the nonhidden top-level files?
Then you sudo chmod. Windows I have to do weird shit with the properties context menu. And even that sometimes doesn’t work. I run commands in powershell as Administrator. Still doesn’t work.
Fuck Windows.
That’s just because Linux is designed for end users so everything is intuitive and easy. Windows is designed for tech nerds that like digging through pages to make anything work
Did you accidentally switch those? Windows is clearly for protecting end users so us tech nerds need to jump through bullshit.
As someone who has used both; Linux is infinitely easier for an idiot
It is also possible to make a file “immutable” such that even
sudo rm -f
will fail
Me, realizing I can’t delete Edge because the OS assumes it’s installed
But webview constantly reinstalls itself.
Only if you don’t know how to use Windows.
Which I am starting to suspect a ton of Linux users on here are incapable of.
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.
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.
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.
Not true. The only valid option to deal with Windows at all is to yeet it and go to Linux.
That isn’t the reason to yeet Windows. If you were talking years ago about 7 or XP, things were different. 10 is not that great comparably, and 11 is a mess. But keep your Windows, if it’s what works for you. Until it doesn’t.
Dual boot for the best of both worlds (although I’m finding myself more and more on the Linux side because it’s better for me.)
Even Windows 11 still has all the options Windows 7 had, and plenty more. Stop swallowing the Linux propaganda.
It’s the constant war on end users that chased me away from windows.
You can’t say no to their relentless advertising. It’s “maybe later”. The pushing to require a Microsoft account. Ads in the start menu. Windows Recall.
The list goes on. You get as much agency as Microsoft allows, or you violate your eula and modify the os to remove things you don’t want.
We didn’t know it at the time, but windows 7 was peak windows.
100% valid choice. I’d argue that it’s even the correct one.
That said, those specific examples are all “solved”. My issue is that the overwhelming amount of Linux pushers here tend to act as though those issues are literally unsolvable.
The ads are nearly all controlled from a single yes/no switch a single level deep into the settings menu. And that switch has not been reset by updates in at least four years. Since I’ve joined lemmy, every single “Microsoft is pushing more ads into Windows” article I’ve seen has been talking about ads controlled by this same singular switch.
Things like the pushing of the Microsoft account and Recall are mostly avoided by using their Professional SKU/License/OS version and using GPO to disable those features. Or to take specific steps during install. You have to use the tools they have for corporate customers that have specific legal guidelines that prevent them from being able to use whatever MS’s new revenue extraction trick is.
Bullshit? Yes. Should anyone have to do this shit to have a decent OS? No.
But if you’re savvy enough to navigate Linux, you’re more than capable of navigating this shit on Windows. It’s not impossible.
It’s not propaganda if anyone can try things out for themselves, and even use them both if they want. Stop trying to keep your MS stock high.
I just riced my work computer, let me fucken tell ya about tricking out a windows machine: its fucking embarrassing. Not that its fundamentally different than customizing Linux, for both you download apps (or packages). But its a clumsy ass mess on windows that has to overlay the existing shit, on Linux the only shit that exists is what I want. I dont have to deal with an onery built in taskbar, or trick a built in window manager to be tiling. The one I pick does what I want.
Sounds like a bad excuse for having a shitty product.
I work in this space profressionally. Systems administrarion, architecture, design, and integration. Please take your single sentence “hot takes” elsewhere.
Windows is far from “a shitty product” or “broken”. It is developed by horrid anti-consumer motherfuckers out to extract as much profit as possible from their least profitable user base: home users. Evil as hell, sure, but so is nearly every large corporation that makes shit that fills your personal hovel you call home. If that makes them untouchable for you, that is a great choice. But that does not factually impact the usability or usefulness of the product.
Linux is awesome and necessary. Open source is the only way this whole mess keeps working far into the future, and I am no stranger to compiling shit from source and submitting pull requests.
My problems with the Linux community, specifically on Lemmy, are these: Linux is not “just easier” and depressingly still not ready for the average consumer unwilling to tinker. The overwhelming majority of complaints about Windows so frequently posted here are solved problems that people pretend are entirely unfixable, or refuse to learn how to fix. For many people venting about their computer, it would be easier to direct them how to fix what they have rather than try to use it as an opportunity to push your
religionOS of choice.If you can manage Linux, I promise that “fixing” a Windows install is well within your reach. Plenty of problems with it, but “broken”? “Unusable”? Take a look outside at the majority of the world, or even the fucking Steam user statistics and get back to me on that. More than good enough for the overwhelming majority.
Oh jeez… you’re right. Sorry for expressing a view you disagree with. I feel firmly told off now.
Except when you want to customize it to stop it from updating against your will. Then fuck you, secret code to change your settings and settings that simply do nothing.
You should keep your software updated.
In the basic case you go to settings and change permissions.
In the more typical case for os modifications, you go to that tab, open advanced properties, change the owner account by typing in “everyone” or your account name by hand, saving, closing reopening the advanced security settings, probably disable inheritance then create a new permission entry.
In the most extreme case, where you change files belonging to something critical like windows defender or edge, you can’t.
The only way I am aware of is booting into an older windows install iso, or a live linux iso, then performing the modifications there.Disclaimer: I have not done this on windows 11 yet, but I can’t imagine the process got simplified.
Windows has a lot of systems that allow some more complicated modifications. Those are often unnecessarily obfuscated, the registry for example doesn’t have to be a weird custom database, it could have been part of the filesystem or at least a more standard database format. Windows will sometimes bite you with weird sketchy systems breaking expectations, and this tends to become inevitable when you try to change stuff Microsoft has decided to remove consumer choice on.
If Edge and the account push were as easy to avoid as learning how to take basic file ownership, we might not be where we are now (i.e. on Linux).
I am Root!
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
One time Windows told me I needed admin privileges to edit s file. I had admin privileges.
You needed permission from the SYSTEM or TrustedInstaller account.
Which you can give to yourself if you are admin.
Last time I did that it didn’t work so I figured I will restart and it will recognize then. Windows got a 30 minute update.
When I logged back in my account was gone and still asked for a password. My old password didn’t work.
Recovery option also fucked my grub. (Probably just the EFI now that I think about it.)
That last bit about GRUB is why I never put Windows on the same drive as my Arch, btw install. If they both have their own EFI partitions, Windows doesn’t mess with Linux.
Just because you have admin rights doesn’t mean the process you’ve invoked does. Unless you specifically elevate it or the process asks to elevate, it’ll run unprivileged.
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.
Did it work after that?
No, but this time the owner knows why it doesn’t work. Big difference in IT.
Is the power cable connected? No? Okay plug it in, then turn it off and back on again.
ROFL
no but he had a second drive and installed xp on it.
vista was at the bottom of the lake.
goes to show how old the story is lol.
In a way, percussive maintenance was successful.
EZ fix i learnt from hunter2
chmod 777 -R /
sudo ufw allow 22
hunter2 ALL=(ALL) NOPASSWD: ALL
Can’t shutdown there is a running program
/Me finger immediately goes to the power switch
I still remember the biggest brainfart moment as a child. I was playing video games on my computer, and kinda just looked around. On the pc was a turbo button, so i pressed it, turbo makes games faster. I looked again and one button said power. I wonder what that doe… I’m dumb.
Ah, the turbo button. Where we first learned our devices can lie to us.
To own something is to control it.
You clearly don’t have control, therefore you don’t own it, microsoft does. You can fix that by seizing the means of computation and install linux.
Just to have linux be even more ruthless with its permission schemes.
When you switch to an admin account on Windows, there are still files owned by “TrustedInstaller” that you can’t touch, and processes owned by “System” that you can’t terminate.
Linux doesn’t have that. When you switch to root, you can kill any process. You can modify or delete any file.
Sometimes (often?) at your own peril!
To anyone else following, if you’re mucking around with “I am Root/Admin. OBEY ME!!” you had better have important data backed up!
I once thought an unlisted BTRFS snapshot was an orphan folder taking up space. No permission? Nonsense! Obey my commands!
Suddenly not even terminal commands worked. (“Command ‘cd’/‘ls’/whatever not found”)
. . . it was the “writable snapshot” currently mounted, and the system was so borked it couldn’t rollback, and I needed to completely reinstall.
Fortunately I had things backed up on another drive. Live and learn! But that could have been TRAGIC.
sudo edit this file!
Or just … right click to change ownership…
You don’t have to change your whole OS because you can’t access a file. I thought you Linux users knew how to use technology properly. But it seems you are “power users” instead.
Like I said to /u/entwine413 I am talking more generally, not just about literal files.
God that is great mascot. It sears itself into your brain.
sudo chown…
Wrong root password, this incident will be reported