Windows moment
Not necessarily. Linux can have files that are r---r---r--- too
sudo chown -R 1000:1000 /* && sudo chmod -R 777 /*
alias iownyou='sudo chown -R 1000:1000 /* && sudo chmod -R 777 /*'
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.
Create one command "iownyou" that does tbe following: Change the owner of every file on the computer to the default user and make every file readable, writeable, an executable by anyone or anything on the computer. It may not be secure, but on the bright side, you'll never have permission issues again!
Until you realize you just screwed up whatever services you may be running that require specific permissions on specific files. Certificates specifically come to mind for my environment.
You don’t have to use the cli. But it’s nice to have the option if you want to.
This isn't all that different from using CMD on windows. Except that it works better, obviously.
I use:
alias thisfolderismine='sudo chown -R $USER'
alias thisfileismine='sudo chown $USER'
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.
Me, realizing I can't delete Edge because the OS assumes it's installed
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.)
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.
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!
Me trying to uninstall edge
Edge is the best browser for downloading much better browsers lol
Edge is literally the first program I use on a fresh install.
You can install firefox via cli like powershell.
winget install Mozilla.Firefox
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.
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.
What the hell are you talking about? Permissions issues in Windows have absolutely nothing to do with Microsoft owning your files.
EZ fix i learnt from hunter2
chmod 777 -R /
sudo ufw allow 22
hunter2 ALL=(ALL) NOPASSWD: ALL
sudo chown <username> <file>
chmod 700 <file>
Don’t see a problem ;) /s
Think about this: let’s say you run a program. Do you want that program to be able to take over the computer and read all your files from now on and send the data to a remote third party?
Probably not.
Permissions were created to stop programs from doing that. By running most software without admin permissions you limit the scope of the damage the software can cause. Software you trust even less should be run with even fewer permissions than a normal user account.
The system is imperfect though. A capability-based system is better. It allows the user to control which specific features of the operating system a running program is allowed to access. For example, a program may request access to location services in order to access your GPS coordinates. You can deny this to prevent the program from tracking you without otherwise preventing the software from running.
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?
Some do. I'm sure it is possible with terminal programs. In KDE, you do get authenticator pop-ups.
Ah ah ah! You didn’t say the magic word!
sudo edit the file!
…
Ah ah ah! You didn’t say the secret word right after!
This fuckin line
Childhood me: "Whats he mean by that?"
My parents: "[explains slavery]"
Me: ...
Them: ...
Thanks, Disney!
I still love the soundtrack.
sudo stinking effer!
"TakeOwnership Registry Hack" PSA. It just werks.
"takeown /f c: icacls c:" changed my life. Windows literally has trusted installer listed as owning most of your hard drive on every fresh install, but that is negotiable. at least for the stuff you need.
Visual representation of the first time I ever saw "owner: nobody"
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
memes
Community rules
1. Be civil
No trolling, bigotry or other insulting / annoying behaviour
2. No politics
This is non-politics community. For political memes please go to !politicalmemes@lemmy.world
3. No recent reposts
Check for reposts when posting a meme, you can only repost after 1 month
4. No bots
No bots without the express approval of the mods or the admins
5. No Spam/Ads/AI Slop
No advertisements or spam. This is an instance rule and the only way to live. We also consider AI slop to be spam in this community and is subject to removal.
A collection of some classic Lemmy memes for your enjoyment
Sister communities
- !tenforward@lemmy.world : Star Trek memes, chat and shitposts
- !lemmyshitpost@lemmy.world : Lemmy Shitposts, anything and everything goes.
- !linuxmemes@lemmy.world : Linux themed memes
- !comicstrips@lemmy.world : for those who love comic stories.